diff --git a/src/Modal.vue b/src/Modal.vue index 6d04e09..43d6a3e 100644 --- a/src/Modal.vue +++ b/src/Modal.vue @@ -215,7 +215,6 @@ } return Vue.util.extend(data, params || {}); -// return event }, adaptSize () { diff --git a/src/index.js b/src/index.js index 9d9d4c9..959f584 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,6 @@ import Modal from './Modal.vue' -const ModalPlugin = { +const Plugin = { install(Vue, options = {}) { if (!this.hasOwnProperty("event")) { this.event = new Vue() @@ -29,4 +29,4 @@ const ModalPlugin = { } } -export default ModalPlugin +export default Plugin