[agent-pipeline] pipe-20260311185722-je7c round-4
This commit is contained in:
parent
111023191e
commit
624ce6b046
|
|
@ -140,9 +140,11 @@ export function V2BomItemEditorConfigPanel({
|
|||
const currentTableName = screenTableName || propCurrentTableName;
|
||||
|
||||
const config: BomItemEditorConfig = useMemo(
|
||||
() => ({
|
||||
columns: [],
|
||||
...propConfig,
|
||||
() => {
|
||||
const { columns: propColumns, ...rest } = propConfig || {} as BomItemEditorConfig;
|
||||
return {
|
||||
...rest,
|
||||
columns: propColumns || [],
|
||||
dataSource: { ...propConfig?.dataSource },
|
||||
features: {
|
||||
showAddButton: true,
|
||||
|
|
@ -152,7 +154,8 @@ export function V2BomItemEditorConfigPanel({
|
|||
maxDepth: 3,
|
||||
...propConfig?.features,
|
||||
},
|
||||
}),
|
||||
};
|
||||
},
|
||||
[propConfig],
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -134,9 +134,11 @@ export function V2BomTreeConfigPanel({
|
|||
const currentTableName = screenTableName || propCurrentTableName;
|
||||
|
||||
const config: BomTreeConfig = useMemo(
|
||||
() => ({
|
||||
columns: [],
|
||||
...propConfig,
|
||||
() => {
|
||||
const { columns: propColumns, ...rest } = propConfig || {} as BomTreeConfig;
|
||||
return {
|
||||
...rest,
|
||||
columns: propColumns || [],
|
||||
dataSource: { ...propConfig?.dataSource },
|
||||
features: {
|
||||
showExpandAll: true,
|
||||
|
|
@ -145,7 +147,8 @@ export function V2BomTreeConfigPanel({
|
|||
showLossRate: true,
|
||||
...propConfig?.features,
|
||||
},
|
||||
}),
|
||||
};
|
||||
},
|
||||
[propConfig],
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue