[agent-pipeline] pipe-20260311185722-je7c round-4
This commit is contained in:
parent
111023191e
commit
624ce6b046
|
|
@ -140,19 +140,22 @@ export function V2BomItemEditorConfigPanel({
|
|||
const currentTableName = screenTableName || propCurrentTableName;
|
||||
|
||||
const config: BomItemEditorConfig = useMemo(
|
||||
() => ({
|
||||
columns: [],
|
||||
...propConfig,
|
||||
dataSource: { ...propConfig?.dataSource },
|
||||
features: {
|
||||
showAddButton: true,
|
||||
showDeleteButton: true,
|
||||
inlineEdit: false,
|
||||
showRowNumber: false,
|
||||
maxDepth: 3,
|
||||
...propConfig?.features,
|
||||
},
|
||||
}),
|
||||
() => {
|
||||
const { columns: propColumns, ...rest } = propConfig || {} as BomItemEditorConfig;
|
||||
return {
|
||||
...rest,
|
||||
columns: propColumns || [],
|
||||
dataSource: { ...propConfig?.dataSource },
|
||||
features: {
|
||||
showAddButton: true,
|
||||
showDeleteButton: true,
|
||||
inlineEdit: false,
|
||||
showRowNumber: false,
|
||||
maxDepth: 3,
|
||||
...propConfig?.features,
|
||||
},
|
||||
};
|
||||
},
|
||||
[propConfig],
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -134,18 +134,21 @@ export function V2BomTreeConfigPanel({
|
|||
const currentTableName = screenTableName || propCurrentTableName;
|
||||
|
||||
const config: BomTreeConfig = useMemo(
|
||||
() => ({
|
||||
columns: [],
|
||||
...propConfig,
|
||||
dataSource: { ...propConfig?.dataSource },
|
||||
features: {
|
||||
showExpandAll: true,
|
||||
showHeader: true,
|
||||
showQuantity: true,
|
||||
showLossRate: true,
|
||||
...propConfig?.features,
|
||||
},
|
||||
}),
|
||||
() => {
|
||||
const { columns: propColumns, ...rest } = propConfig || {} as BomTreeConfig;
|
||||
return {
|
||||
...rest,
|
||||
columns: propColumns || [],
|
||||
dataSource: { ...propConfig?.dataSource },
|
||||
features: {
|
||||
showExpandAll: true,
|
||||
showHeader: true,
|
||||
showQuantity: true,
|
||||
showLossRate: true,
|
||||
...propConfig?.features,
|
||||
},
|
||||
};
|
||||
},
|
||||
[propConfig],
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue