diff options
| author | taehoon <th.dev91@gmail.com> | 2019-02-08 22:00:03 -0500 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-02-15 13:34:33 -0500 |
| commit | b6d197ce1de0f0b49f3d01bff3030734f8c8113c (patch) | |
| tree | 28d5bc1b90f11a1ee2f1ed421ca25ef9a7d672a0 /src/components/modal/modal.js | |
| parent | b24db12e1cc318e862169355a22f051d3ea2e809 (diff) | |
Remove modal component
Diffstat (limited to 'src/components/modal/modal.js')
| -rw-r--r-- | src/components/modal/modal.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/components/modal/modal.js b/src/components/modal/modal.js deleted file mode 100644 index 963f4bcd..00000000 --- a/src/components/modal/modal.js +++ /dev/null @@ -1,21 +0,0 @@ -const Modal = { - props: ['show', 'title'], - methods: { - close: function () { - this.$emit('close') - }, - handleKeydown: function (e) { - if (this.show && e.keyCode === 27) { - this.close() - } - } - }, - mounted: function () { - document.addEventListener('keydown', this.handleKeydown) - }, - destroyed: function () { - document.removeEventListener('keydown', this.handleKeydown) - } -} - -export default Modal |
