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