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
146 lines (146 loc) · 3.55 KB
/
meta.ts
File metadata and controls
146 lines (146 loc) · 3.55 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
140
141
142
143
144
145
146
module.exports = {
group: '原子组件',
componentName: 'Progress',
title: '进度指示器',
docUrl: '',
screenshot: '',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'Progress',
main: '',
destructuring: true,
subName: '',
},
props: [
{
name: 'prefix',
propType: 'string',
defaultValue: 'next-',
},
{
name: 'shape',
propType: {
type: 'oneOf',
value: ['circle', 'line'],
},
description: '形态',
defaultValue: 'line',
},
{
name: 'size',
propType: {
type: 'oneOf',
value: ['small', 'medium', 'large'],
},
description: '尺寸',
defaultValue: 'medium',
},
{
name: 'percent',
title: '百分比',
propType: 'number',
description: '所占百分比',
defaultValue: 0,
},
{
name: 'state',
title: '进度状态',
propType: {
type: 'oneOf',
value: ['normal', 'success', 'error'],
},
description: '进度状态, 显示优先级: color > progressive > state',
defaultValue: 'normal',
},
{
name: 'progressive',
title: {
label: '色阶变化',
tip: '是否为色彩阶段变化模式, 显示优先级: color > progressive > state',
},
propType: 'bool',
description: '是否为色彩阶段变化模式, 显示优先级: color > progressive > state',
defaultValue: false,
},
{
name: 'hasBorder',
title: '边框',
propType: 'bool',
description: '是否添加 Border(只适用于 Line Progress)',
defaultValue: false,
},
{
name: 'textRender',
title: {
label: '文本渲染',
tip: '文本渲染函数\n@param {Number} percent 当前的进度信息\n@param {Object} option 额外的参数\n@property {Boolean} option.rtl 是否在rtl 模式下渲染\n@return {ReactNode} 返回文本节点',
},
propType: 'func',
description:
'文本渲染函数\n@param {Number} percent 当前的进度信息\n@param {Object} option 额外的参数\n@property {Boolean} option.rtl 是否在rtl 模式下渲染\n@return {ReactNode} 返回文本节点',
},
{
name: 'color',
propType: 'string',
description: '进度条颜色, 显示优先级: color > progressive > state',
},
{
name: 'backgroundColor',
propType: 'string',
description: '背景色',
},
{
name: 'rtl',
propType: 'bool',
},
{
name: 'style',
propType: 'object',
},
],
configure: {
props: {
isExtends: true,
override: [
{
name: 'rtl',
condition: () => false,
},
{
name: 'prefix',
condition: () => false,
},
{
name: 'percent',
title: '百分比',
supportVariable: true,
setter: 'NumberSetter',
},
{
name: 'color',
title: {
label: '进度条颜色',
tip: 'color|进度条颜色, 显示优先级: color > progressive > state',
},
setter: {
componentName: 'ColorSetter',
},
},
{
name: 'backgroundColor',
title: {
label: '背景色',
tip: 'backgroundColor|背景色',
},
setter: {
componentName: 'ColorSetter',
},
},
],
},
},
icon: '',
category: '信息反馈',
snippets: require('./snippets'),
};