From a41ffea146bf1a392de255f04bf64599de165269 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Fri, 18 Oct 2019 11:53:38 -0400
Subject: render modals into the “modal” portal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/modal/modal.js | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 src/components/modal/modal.js
(limited to 'src/components/modal/modal.js')
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
--
cgit v1.2.3-70-g09d2