JinZHouXiYiJi_DaPin2/resource/Basic/Image/config.ts

37 lines
831 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 = 'Image'
class ImageComponent extends CustomComponent {
constructor(id?: string, name?: string) {
super({
component: componentName,
group: ComponentGroup.BASIC,
name: name ? name : '图片',
id,
width: 200,
height: 200
})
}
_prop: MetaContainerItem[] = []
_style: MetaContainerItem[] = [
{
label: '背景设置',
prop: 'back',
children: [
{
prop: 'background',
label: '背景',
type: FormType.BACKGROUND,
props: {
defaultValue: { backgroundColor: '#14c9c9' }
}
}
]
}
]
}
export default ImageComponent