[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 currentTableName = screenTableName || propCurrentTableName;
|
||||||
|
|
||||||
const config: BomItemEditorConfig = useMemo(
|
const config: BomItemEditorConfig = useMemo(
|
||||||
() => ({
|
() => {
|
||||||
columns: [],
|
const { columns: propColumns, ...rest } = propConfig || {} as BomItemEditorConfig;
|
||||||
...propConfig,
|
return {
|
||||||
dataSource: { ...propConfig?.dataSource },
|
...rest,
|
||||||
features: {
|
columns: propColumns || [],
|
||||||
showAddButton: true,
|
dataSource: { ...propConfig?.dataSource },
|
||||||
showDeleteButton: true,
|
features: {
|
||||||
inlineEdit: false,
|
showAddButton: true,
|
||||||
showRowNumber: false,
|
showDeleteButton: true,
|
||||||
maxDepth: 3,
|
inlineEdit: false,
|
||||||
...propConfig?.features,
|
showRowNumber: false,
|
||||||
},
|
maxDepth: 3,
|
||||||
}),
|
...propConfig?.features,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
[propConfig],
|
[propConfig],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -134,18 +134,21 @@ export function V2BomTreeConfigPanel({
|
||||||
const currentTableName = screenTableName || propCurrentTableName;
|
const currentTableName = screenTableName || propCurrentTableName;
|
||||||
|
|
||||||
const config: BomTreeConfig = useMemo(
|
const config: BomTreeConfig = useMemo(
|
||||||
() => ({
|
() => {
|
||||||
columns: [],
|
const { columns: propColumns, ...rest } = propConfig || {} as BomTreeConfig;
|
||||||
...propConfig,
|
return {
|
||||||
dataSource: { ...propConfig?.dataSource },
|
...rest,
|
||||||
features: {
|
columns: propColumns || [],
|
||||||
showExpandAll: true,
|
dataSource: { ...propConfig?.dataSource },
|
||||||
showHeader: true,
|
features: {
|
||||||
showQuantity: true,
|
showExpandAll: true,
|
||||||
showLossRate: true,
|
showHeader: true,
|
||||||
...propConfig?.features,
|
showQuantity: true,
|
||||||
},
|
showLossRate: true,
|
||||||
}),
|
...propConfig?.features,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
[propConfig],
|
[propConfig],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue