提交 4ab07086 编写于 作者: zhujiamin's avatar zhujiamin

update:还原tag

上级 9c653a0a
......@@ -55,16 +55,16 @@ export class GridControl extends MDControl {
if (!rowEditState) {
selectedRowKeys.value = [record.srfkey];
if (!record.children) {
this.emit("ctrlEvent", { tag: 'grid', action: "selectionChange", data: [deepCopy(record)] })
this.emit("ctrlEvent", { tag: this.props.name, action: "selectionChange", data: [deepCopy(record)] })
if (Object.is(rowActiveMode, 1)) {
this.emit("ctrlEvent", { tag: 'grid', action: "rowClick", data: [deepCopy(record)] })
this.emit("ctrlEvent", { tag: this.props.name, action: "rowClick", data: [deepCopy(record)] })
}
}
}
},
onDblclick: () => {
if (!record.children && Object.is(rowActiveMode, 2)) {
this.emit("ctrlEvent", { tag: 'grid', action: "rowDbClick", data: [deepCopy(record)] })
this.emit("ctrlEvent", { tag: this.props.name, action: "rowDbClick", data: [deepCopy(record)] })
}
}
};
......@@ -87,7 +87,7 @@ export class GridControl extends MDControl {
selection.push(select);
}
})
this.emit("ctrlEvent", { tag: 'grid', action: "selectionChange", data: selection })
this.emit("ctrlEvent", { tag: this.props.name, action: "selectionChange", data: selection })
},
};
});
......@@ -191,7 +191,7 @@ export class GridControl extends MDControl {
} else if (selectFirstDefault) {
if (items && items.length > 0) {
this.emit("ctrlEvent", {
tag: 'grid',
tag: this.props.name,
action: "selectionChange",
data: [deepCopy(items[0])],
});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册