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