forked from alibaba/lowcode-materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeta.ts
More file actions
78 lines (78 loc) · 1.53 KB
/
meta.ts
File metadata and controls
78 lines (78 loc) · 1.53 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
module.exports = {
group: '原子组件',
componentName: 'Divider',
title: '分隔符',
docUrl: '',
screenshot: '',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'Divider',
main: '',
destructuring: true,
subName: '',
},
props: [
{
name: 'style',
propType: 'object',
description: '自定义内敛样式',
},
{
name: 'children',
propType: 'string',
description: '文案',
defaultValue: '分隔符',
},
{
name: 'dashed',
title: {
label: {
type: 'i18n',
zh_CN: '是否虚线',
en_US: 'Dashed',
},
},
propType: {
type: 'bool',
},
description: '是否为虚线',
defaultValue: false,
},
{
name: 'direction',
title: {
label: {
type: 'i18n',
zh_CN: '朝向',
en_US: 'Direction',
},
},
propType: {
type: 'oneOf',
value: ['hoz', 'ver'],
},
description: '线是水平还是垂直类型',
defaultValue: 'hoz',
},
{
name: 'orientation',
title: {
label: {
type: 'i18n',
zh_CN: '标题位置',
en_US: 'Orientation',
},
},
propType: {
type: 'oneOf',
value: ['left', 'right', 'center'],
},
description: '分割线标题的位置',
defaultValue: 'center',
},
],
icon: '',
category: '通用',
snippets: require('./snippets'),
};