aboutsummaryrefslogtreecommitdiff
path: root/src/components/modal/modal.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-10-18 11:53:38 -0400
committertaehoon <th.dev91@gmail.com>2019-10-18 11:53:38 -0400
commita41ffea146bf1a392de255f04bf64599de165269 (patch)
treefa7ff5ad52ee3fce2288ba7498bc85f19e738f3e /src/components/modal/modal.js
parentd502baaffc30d97a9c4f8f254bf1ff146844151b (diff)
render modals into the “modal” portal
Diffstat (limited to 'src/components/modal/modal.js')
-rw-r--r--src/components/modal/modal.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/components/modal/modal.js b/src/components/modal/modal.js
new file mode 100644
index 00000000..b9517445
--- /dev/null
+++ b/src/components/modal/modal.js
@@ -0,0 +1,20 @@
+import Vue from 'vue'
+
+const Modal = {
+ props: {
+ viewClass: {
+ type: String
+ },
+ isOpen: {
+ type: Boolean,
+ default: true
+ }
+ },
+ methods: {
+ closeModal () {
+ this.$emit('close')
+ }
+ }
+}
+
+export default Modal \ No newline at end of file