JinZHouXiYiJi_DaPin2/resource/Decoration/Decoration4/config.ts

45 lines
1000 B
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 = 'Decoration4'
class DecorationComponent extends CustomComponent {
constructor(id?: string, name?: string) {
super({
component: componentName,
group: ComponentGroup.DECORATION,
name: name ? name : '4#装饰',
id,
width: 200,
height: 10
})
}
_prop: MetaContainerItem[] = [
{
label: '基础配置',
prop: 'base',
children: [
{
prop: 'color1',
label: '颜色1',
type: FormType.COLOR,
props: {
defaultValue: '#00c2ff'
}
},
{
prop: 'color2',
label: '颜色2',
type: FormType.COLOR,
props: {
defaultValue: '#00C2FF42'
}
}
]
}
]
_style: MetaContainerItem[] = []
}
export default DecorationComponent