[agent-pipeline] pipe-20260311185722-je7c round-4

This commit is contained in:
DDD1542 2026-03-12 04:15:58 +09:00
parent 111023191e
commit 624ce6b046
2 changed files with 31 additions and 25 deletions

View File

@ -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],
);

View File

@ -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],
);