1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
|
| /** 图片展示属性 */
| export interface ImageBarProperty {
| // 图片链接
| imgUrl: string
| // 跳转链接
| url: string
| // 组件样式
| style: ComponentStyle
| }
|
| // 定义组件
| export const component = {
| id: 'ImageBar',
| name: '图片展示',
| icon: 'ep:picture',
| property: {
| imgUrl: '',
| url: '',
| style: {
| bgType: 'color',
| bgColor: '#fff',
| marginBottom: 8
| } as ComponentStyle
| }
| } as DiyComponent<ImageBarProperty>
|
|