import type { PropertySetter } from "@/core/base/PropertyTypes.ts"; import { basicFieldsSetter } from "@/editor/widgets/property/PropertyPanelConstant.ts"; const propertySetter: PropertySetter = { flatten: { fields: [ ...basicFieldsSetter, { dataPath: 'dt.rackDepth', label: '货架深度', input: 'InputNumber', inputProps: {}, }, { dataPath: 'dt.levelCount', label: '总层数', input: 'InputNumber', inputProps: {}, }, { dataPath: 'dt.bayCount', label: '总列数', input: 'InputNumber', inputProps: {}, }, { dataPath: 'dt.hideFloor', label: '隐藏底板', input: 'InputNumber', inputProps: {}, }, { dataPath: 'dt.extendColumns', label: '扩展挡板', input: 'InputNumber', inputProps: {}, }, { dataPath: 'dt.columnSpacing', label: '支脚跨越', input: 'InputNumber', inputProps: {}, }, { dataPath: 'dt.bays', input: 'BayEditor', inputProps: { }, }, /** * dt.bays 5列3层货架示例 * { * dt: { * rackDepth: 1.1, // 货架深度 * levelCount: 3, // 总层数 * bayCount: 5, // 总列数 * hideFloor: false, // 隐藏底板 * extendColumns: true, // 扩展挡板 * columnSpacing: 1, // 支脚跨越 * bays: [ // 每列的配置 * { * bayWidth: 1.6, // 列的宽度 * offset: // 列偏移 * levelHeight: [ 1.4, 1.4, 1.4 ] // 每层的高度 * }, * {bayWidth: 1.6, levelHeight: [ 1.4, 1.4, 1.4 ]}, * {bayWidth: 1.6, levelHeight: [ 1.4, 1.4, 1.4 ]}, * {bayWidth: 1.6, levelHeight: [ 1.4, 1.4, 1.4 ]}, * {bayWidth: 1.6, levelHeight: [ 1.4, 1.4, 1.4 ]}, * ] * } * } */ ], }, }; export default propertySetter;