diff options
| author | taehoon <th.dev91@gmail.com> | 2019-10-18 11:53:38 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-10-18 11:53:38 -0400 |
| commit | a41ffea146bf1a392de255f04bf64599de165269 (patch) | |
| tree | fa7ff5ad52ee3fce2288ba7498bc85f19e738f3e /src/components/modal/modal.js | |
| parent | d502baaffc30d97a9c4f8f254bf1ff146844151b (diff) | |
render modals into the “modal” portal
Diffstat (limited to 'src/components/modal/modal.js')
| -rw-r--r-- | src/components/modal/modal.js | 20 |
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 |
