pull/436/head
xiaojunnuo 2025-06-10 18:44:32 +08:00
parent 12ed79ca60
commit add8efaba8
1 changed files with 15 additions and 15 deletions

View File

@ -335,21 +335,21 @@ function install(app: App, options: any = {}) {
},
});
// 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;
// },
// });
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 = ["green", "cyan", "blue", "purple", "geekblue"];
}
}
return columnProps;
},
});
}
export default {