[improvement] move overlay component (#2192)

This commit is contained in:
neverland
2018-11-30 16:40:50 +08:00
committed by GitHub
parent 996c67b4fc
commit 89ff50944c
11 changed files with 40 additions and 18 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import Vue from 'vue';
import Modal from './Modal';
import context from './context';
import Overlay from '../../overlay';
const defaultConfig = {
className: '',
@@ -35,7 +35,7 @@ export default {
let { modal } = context;
if (!modal) {
modal = new (Vue.extend(Modal))({
modal = new (Vue.extend(Overlay))({
el: document.createElement('div')
});
modal.$on('click', this.onClick);