Kxc0822a
2022-04-11 ab2d50f1f69c9c1ab4e9f51d367837fb320f3eeb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Vue from 'vue'
import Undone from './undone.vue'
const UndoneBox = Vue.extend(Undone)
 
 
Undone.install = function (data) {
    let instance = new UndoneBox({
        data
    }).$mount()
 
    document.body.appendChild(instance.$el)
 
    Vue.nextTick(() => {
        instance.show = true
        // show 和弹窗组件里的show对应,用于控制显隐
    })
}
 
 
export default Undone