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
97 lines (97 loc) · 2.35 KB
/
meta.ts
File metadata and controls
97 lines (97 loc) · 2.35 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
module.exports = {
group: '原子组件',
componentName: 'Tag.Closeable',
title: '可关闭标签',
docUrl: '',
screenshot: '',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'Tag',
main: '',
destructuring: true,
subName: 'Closeable',
},
props: [
{
name: 'closeArea',
title: {
label: {
type: 'i18n',
zh_CN: '关闭区域',
en_US: 'Close Area',
},
tip: {
type: 'i18n',
zh_CN:
'属性: closeArea | 说明: closeable 标签的 onClose 响应区域, tag: 标签体, tail(默认): 关闭按钮',
en_US: 'prop: closeArea | description: close area',
},
},
propType: {
type: 'oneOf',
value: ['tag', 'tail'],
},
description: 'closeable 标签的 onClose 响应区域, tag: 标签体, tail(默认): 关闭按钮',
},
{
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: 'onClose',
propType: 'func',
description: '点击关闭按钮时的回调,返回值 true 则关闭, false 阻止关闭',
},
{
name: 'onClick',
propType: 'func',
description: '点击回调',
},
{
name: 'afterClose',
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: {},
icon: '',
category: '信息输入',
};