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
139 lines (139 loc) · 3.47 KB
/
meta.ts
File metadata and controls
139 lines (139 loc) · 3.47 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
module.exports = {
group: '原子组件',
componentName: 'Tag',
title: '标签',
docUrl: '',
screenshot: '',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'Tag',
main: '',
destructuring: true,
},
props: [
{
name: 'type',
title: {
label: {
type: 'i18n',
zh_CN: '标签类型',
en_US: 'Tag Type',
},
tip: {
type: 'i18n',
zh_CN: '属性: type | 说明: 标签的类型',
en_US: 'prop: type | description: tag type',
},
},
propType: {
type: 'oneOf',
value: ['normal', 'primary'],
},
description: '标签的类型',
},
{
name: 'size',
title: {
label: {
type: 'i18n',
zh_CN: '标签尺寸',
en_US: 'Tag Size',
},
tip: {
type: 'i18n',
zh_CN: '属性: size | 说明: 标签的尺寸(large 尺寸为兼容表单场景 large = medium)',
en_US: 'prop: size | description: tag size',
},
},
propType: {
type: 'oneOf',
value: ['small', 'medium', 'large'],
},
description: '标签的尺寸(large 尺寸为兼容表单场景 large = medium)',
},
{
name: 'color',
propType: 'string',
description:
'标签颜色, 目前支持:blue、 green、 orange、red、 turquoise、 yellow 和 hex 颜色值 (`color keywords`作为 Tag 组件的保留字,请勿直接使用 ), `1.19.0` 以上版本生效',
},
{
name: 'animation',
title: {
label: {
type: 'i18n',
zh_CN: '开启动效',
en_US: 'Animation',
},
tip: {
type: 'i18n',
zh_CN: '属性: animation | 说明: 是否开启动效',
en_US: 'prop: animation | description: enable animation',
},
},
propType: 'bool',
description: '是否开启动效',
},
{
name: 'afterAppear',
propType: 'func',
description: '标签出现动画结束后执行的回调',
},
{
name: 'onClick',
propType: 'func',
description: '点击回调',
},
{
name: 'children',
title: {
label: {
type: 'i18n',
zh_CN: '标签文本',
en_US: 'Content',
},
tip: {
type: 'i18n',
zh_CN: '属性: children | 说明: 标签文本内容',
en_US: 'prop: children | description: tag content',
},
},
propType: 'string',
description: '内容',
},
{
name: 'style',
propType: 'object',
},
],
configure: {
props: {
isExtends: true,
override: [
{
name: 'color',
title: {
label: {
type: 'i18n',
zh_CN: '标签颜色',
en_US: 'Tag Color',
},
tip: {
type: 'i18n',
zh_CN: '属性: color | 说明: 是否开启动效',
en_US:
'prop: color | description: 目前支持:blue、 green、 orange、red、 turquoise、 yellow 和 hex 颜色值 (`color keywords`作为 Tag 组件的保留字,请勿直接使用 ), `1.19.0` 以上版本生效',
},
},
setter: {
componentName: 'ColorSetter',
},
},
],
},
},
icon: '',
category: '信息展示',
snippets: require('./snippets'),
};