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 diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue deleted file mode 100644 index 2e3cbe75..00000000 --- a/src/components/modal/modal.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - - -