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
95 lines (95 loc) · 2.15 KB
/
meta.ts
File metadata and controls
95 lines (95 loc) · 2.15 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
module.exports = {
group: '原子组件',
componentName: 'Badge',
title: '徽标数',
docUrl: '',
screenshot: '',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'Badge',
main: '',
destructuring: true,
subName: '',
},
props: [
{
name: 'className',
propType: 'string',
},
{
name: 'style',
propType: 'object',
},
{
name: 'count',
title: 'count',
propType: 'string',
description: '展示的数字,大于 overflowCount 时显示为 ${overflowCount}+,为 0 时默认隐藏',
defaultValue: 0,
},
{
name: 'content',
title: '内容',
propType: 'node',
description: '自定义节点内容',
},
{
name: 'overflowCount',
title: '封顶数字',
propType: {
type: 'oneOfType',
value: ['number', 'string'],
},
description: '展示的封顶的数字',
defaultValue: 99,
},
{
name: 'showZero',
title: {
label: '展示零',
tip: 'showZero|当count为 0 时,是否显示 count',
},
propType: 'bool',
description: '当count为 0 时,是否显示 count',
defaultValue: true,
},
{
name: 'dot',
title: {
label: '红点',
tip: 'dot|不展示数字,只展示一个小红点',
},
propType: 'bool',
description: '不展示数字,只展示一个小红点',
defaultValue: false,
},
],
configure: {
component: {
isContainer: true,
},
props: {
isExtends: true,
override: [
{
name: 'count',
title: {
label: '展示的数字',
tip: 'count|大于 overflowCount 时显示为 ${overflowCount}+,为 0 时默认隐藏',
docUrl: 'https://fusion.alibaba-inc.com/pc/component/basic/badge',
},
setter: {
componentName: 'MixedSetter',
props: {
setters: ['StringSetter', 'ExpressionSetter'],
},
},
},
],
},
},
icon: '',
category: '信息展示',
snippets: require('./snippets'),
};