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

update:还原tag

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