JinZHouXiYiJi_DaPin2/resource/Decoration/Decoration1/config.ts

53 lines
1.1 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'
export const componentName = 'Decoration1'
class DecorationComponent extends CustomComponent {
constructor(id?: string, name?: string) {
super({
component: componentName,
group: ComponentGroup.DECORATION,
name: name ? name : '1#装饰',
id,
width: 200,
height: 60
})
}
_prop: MetaContainerItem[] = [
{
label: '基础配置',
prop: 'base',
children: [
{
prop: 'color1',
label: '颜色1',
type: FormType.COLOR,
props: {
defaultValue: '#fff'
}
},
{
prop: 'color2',
label: '颜色2',
type: FormType.COLOR,
props: {
defaultValue: '#0de7c2'
}
},
{
prop: 'pointSideLength',
label: '点大小',
type: FormType.NUMBER,
props: {
defaultValue: 5
}
}
]
}
]
_style: MetaContainerItem[] = []
}
export default DecorationComponent