fix trigger bug
parent
68f1bc65fc
commit
0df2d31eed
|
@ -33,6 +33,13 @@ export default {
|
||||||
this.$refs.alignInstance.forceAlign()
|
this.$refs.alignInstance.forceAlign()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
visible (val) {
|
||||||
|
if (val) {
|
||||||
|
this.destroyPopup = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onAlign (popupDomNode, align) {
|
onAlign (popupDomNode, align) {
|
||||||
const props = this.$props
|
const props = this.$props
|
||||||
|
|
|
@ -407,7 +407,6 @@ export default {
|
||||||
createTwoChains (event) {
|
createTwoChains (event) {
|
||||||
const child = this.$slots.default[0]
|
const child = this.$slots.default[0]
|
||||||
let fn = () => {
|
let fn = () => {
|
||||||
console.log('event', event)
|
|
||||||
}
|
}
|
||||||
child.data = child.data || {}
|
child.data = child.data || {}
|
||||||
child.data.on = child.data.on || {}
|
child.data.on = child.data.on || {}
|
||||||
|
@ -462,8 +461,7 @@ export default {
|
||||||
fireEvents (type, e) {
|
fireEvents (type, e) {
|
||||||
const child = this.$slots.default[0]
|
const child = this.$slots.default[0]
|
||||||
if (child && child.data && child.data.on && child.data.on[type]) {
|
if (child && child.data && child.data.on && child.data.on[type]) {
|
||||||
console.log(type, child.data.on[type])
|
child.data.on[type](e)
|
||||||
// child.data.on[type](e)
|
|
||||||
}
|
}
|
||||||
if (this.data && this.data.on && this.data.on[type]) {
|
if (this.data && this.data.on && this.data.on[type]) {
|
||||||
this.data.on[type](e)
|
this.data.on[type](e)
|
||||||
|
|
Loading…
Reference in New Issue