forked from alibaba/lowcode-materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeta.design.ts
More file actions
86 lines (85 loc) · 1.84 KB
/
meta.design.ts
File metadata and controls
86 lines (85 loc) · 1.84 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
79
80
81
82
83
84
85
86
import snippets from './snippets';
export default {
group: '原子组件',
componentName: 'Paragraph',
title: '段落',
docUrl: '',
screenshot:
'https://img.alicdn.com/imgextra/i3/O1CN01n5wpxc1bi862KuXFz_!!6000000003498-55-tps-50-50.svg',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'Paragraph',
main: '',
destructuring: true,
subName: '',
},
props: [
{
name: 'component',
propType: {
type: 'instanceOf',
value: 'elementType',
},
description: '设置标签类型',
defaultValue: 'article',
},
{
name: 'style',
propType: 'object',
},
{
name: 'children',
title: '内容',
propType: 'string',
},
],
configure: {
props: [
{
name: 'size',
title: {
label: {
type: 'i18n',
zh_CN: '尺寸',
en_US: 'Button Size',
},
tip: {
type: 'i18n',
zh_CN: '属性: size | 说明: 按钮尺寸',
en_US: 'prop: size | description: button size',
},
},
setter: {
componentName: 'RadioGroupSetter',
props: {
options: [
{
label: '小',
value: 'small',
},
{
label: '中',
value: 'medium',
},
],
},
},
defaultValue: 'medium',
},
{
name: 'style.width',
title: '宽度',
setter: 'NumberSetter',
},
{
name: 'children',
title: '内容',
setter: 'TextAreaSetter',
},
],
},
icon: 'https://img.alicdn.com/imgextra/i3/O1CN01n5wpxc1bi862KuXFz_!!6000000003498-55-tps-50-50.svg',
category: '通用',
snippets,
};