JinZHouXiYiJi_DaPin2/resource/mdkw/config.ts

66 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2023-12-26 11:59:07 +08:00
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