2.4版本更新后子表onlChange方法不生效 #2059

pull/2128/head
zhangdaiscott 2020-12-04 11:23:05 +08:00
parent ff45fe4858
commit 341830c5a0
2 changed files with 4 additions and 0 deletions

View File

@ -864,6 +864,8 @@ export default {
trigger(name, event = {}) { trigger(name, event = {}) {
event.$target = this event.$target = this
event.$table = this.$refs.vxe event.$table = this.$refs.vxe
//online增强参数兼容
event.target = this
this.$emit(name, event) this.$emit(name, event)
}, },

View File

@ -149,6 +149,8 @@ export default {
packageEvent(name, event = {}) { packageEvent(name, event = {}) {
event.row = this.row event.row = this.row
event.column = this.column event.column = this.column
//online增强参数兼容
event.column['key'] = this.column['property']
event.cellTarget = this event.cellTarget = this
if (!event.type) { if (!event.type) {
event.type = name event.type = name