20260802220544
This commit is contained in:
1 parent
c00329b5a4
commit
4fc9040a8a
60 files changed
+6273
-908
No files matched your search
@@ -158,5 +158,20 @@ export function resolveCustomCell(col, editingContext) {
|
||||
const customCell = createActionsCell(col.actions);
|
||||
if (customCell) return { ...col, customCell };
|
||||
}
|
||||
// 纯展示列(无 editor、无 actions):保持 mousedown 冒泡以支持点击激活行编辑,
|
||||
// 文字选中通过 CSS 层 user-select: text 保障
|
||||
if (col.dataIndex) {
|
||||
return {
|
||||
...col,
|
||||
customCell: ({ row }) => {
|
||||
const value = row[col.dataIndex];
|
||||
const content = value ?? "";
|
||||
return h("span", {
|
||||
class: "fms-cell-display",
|
||||
title: String(content),
|
||||
}, content);
|
||||
},
|
||||
};
|
||||
}
|
||||
return col;
|
||||
}
|
||||
Reference in new issue
Block a user