From b6d197ce1de0f0b49f3d01bff3030734f8c8113c Mon Sep 17 00:00:00 2001 From: taehoon Date: Fri, 8 Feb 2019 22:00:03 -0500 Subject: [PATCH] Remove modal component --- src/components/modal/modal.js | 21 ------- src/components/modal/modal.vue | 101 --------------------------------- 2 files changed, 122 deletions(-) delete mode 100644 src/components/modal/modal.js delete mode 100644 src/components/modal/modal.vue 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 @@ - - - - -