import type { MetaContainerItem } from 'open-data-v/base' import { ComponentGroup, CustomComponent, FormType } from 'open-data-v/base' import { h } from 'vue' export const componentName = 'MdKuWei' class SubTextComponent extends CustomComponent { constructor(id?: string, name?: string, icon?: string) { super({ component: componentName, group: ComponentGroup.OTHER, name: name ? 'CQMD库位' : 'CQMD库位', id, width: 100, height: 30, icon }) } _prop: MetaContainerItem[] = [ { label: '基础配置', prop: 'base', children: [ { prop: 'boxWidth', label: '盒子宽度', type: FormType.NUMBER, props: { defaultValue: 20, suffix: () => h('span', {}, 'px') } },{ prop: 'boxHeight', label: '盒子高度度', type: FormType.NUMBER, props: { defaultValue: 20, suffix: () => h('span', {}, 'px') } }, { prop: 'boxWidithGap', label: '盒子宽间距', type: FormType.NUMBER, props: { defaultValue: 20, suffix: () => h('span', {}, 'px') } }, { prop: 'boxHeightGap', label: '盒子高间距', type: FormType.NUMBER, props: { defaultValue: 20, suffix: () => h('span', {}, 'px') } } ] } ] } export default SubTextComponent