fix(render): 修复表格内点击无响应(Vue2 on:{click} → Vue3 onClick)

班级管理「班主任/副班主任/校区」三列、任教管理操作列用的是
h(..., { on: { click: fn } })。Vue3 不再识别 on 对象,事件根本没绑上,
所以点单元格毫无反应。改为顶层 onClick(含带 stopPropagation 的清空按钮),
treeMixin 的树节点点击同步修正。
This commit is contained in:
lijing
2026-10-20 15:16:55 +08:00
parent 45a758adea
commit 542002bb85
3 changed files with 12 additions and 44 deletions
+2 -4
View File
@@ -19,11 +19,9 @@ export default {
cursor: "pointer",
backgroundColor: node.node.selected ? "#e5e5e5" : ""
},
on: {
click: (e) => {
e.stopPropagation()
onClick: (e) => {
e.stopPropagation();
this.$emit("on-tree-change", node.node);
}
}
}, data.title)
]);