🔱: [client] sync upgrade with 2 commits [trident-sync]

perf: 全部支持拖动调整列宽
client_sync
GitHub Actions Bot 2024-08-04 19:24:18 +00:00
parent f4a11ed328
commit d0c4dfca97
1 changed files with 16 additions and 0 deletions

View File

@ -336,6 +336,22 @@ function install(app: any, options: any = {}) {
return columnProps; return columnProps;
} }
}); });
//默认宽度,支持自动拖动调整列宽
registerMergeColumnPlugin({
name: "resize-column-plugin",
order: 2,
handle: (columnProps: ColumnCompositionProps) => {
if (!columnProps.column) {
columnProps.column = {};
}
columnProps.column.resizable = true;
if (!columnProps.column.width) {
columnProps.column.width = 100;
}
return columnProps;
}
});
} }
export default { export default {