JinZHouXiYiJi_DaPin2/resource/kuwei/config.ts

66 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2023-12-05 13:23:01 +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 = 'KuWei'
class SubTextComponent extends CustomComponent {
constructor(id?: string, name?: string, icon?: string) {
super({
component: componentName,
group: ComponentGroup.OTHER,
name: name ? '库位图' : '库位图',
2023-12-05 13:23:01 +08:00
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