perf: 授权列表类型颜色优化

This commit is contained in:
xiaojunnuo
2025-06-10 18:40:23 +08:00
parent bad3504d4a
commit 1e863382d3
3 changed files with 85 additions and 69 deletions
@@ -334,6 +334,22 @@ function install(app: App, options: any = {}) {
return columnProps;
},
});
// registerMergeColumnPlugin({
// name: "reset-values-format-colors",
// order: 10,
// handle: (columnProps: ColumnCompositionProps) => {
// // 你可以在此处做你自己的处理
// // 比如你可以定义一个readonly的公共属性,处理该字段只读,不能编辑
// if (columnProps.column?.component?.name === "fs-values-format") {
// // 合并column配置
// if (!columnProps.column.component.autoColors) {
// columnProps.column.component.autoColors = ["pink", "green", "cyan", "blue", "purple", "volcano", "lime", "geekblue", "#2db7f5", "#87d068", "#108ee9"];
// }
// }
// return columnProps;
// },
// });
}
export default {