提交 | 用户 | 时间
|
314507
|
1 |
import { DiyComponent } from '@/components/DiyEditor/util' |
H |
2 |
|
|
3 |
/** 分割线属性 */ |
|
4 |
export interface DividerProperty { |
|
5 |
// 高度 |
|
6 |
height: number |
|
7 |
// 线宽 |
|
8 |
lineWidth: number |
|
9 |
// 边距类型 |
|
10 |
paddingType: 'none' | 'horizontal' |
|
11 |
// 颜色 |
|
12 |
lineColor: string |
|
13 |
// 类型 |
|
14 |
borderType: 'solid' | 'dashed' | 'dotted' | 'none' |
|
15 |
} |
|
16 |
|
|
17 |
// 定义组件 |
|
18 |
export const component = { |
|
19 |
id: 'Divider', |
|
20 |
name: '分割线', |
|
21 |
icon: 'tdesign:component-divider-vertical', |
|
22 |
property: { |
|
23 |
height: 30, |
|
24 |
lineWidth: 1, |
|
25 |
paddingType: 'none', |
|
26 |
lineColor: '#dcdfe6', |
|
27 |
borderType: 'solid' |
|
28 |
} |
|
29 |
} as DiyComponent<DividerProperty> |