1 | {
|
2 | "name": "Progress",
|
3 | "props": {
|
4 | "shape": {
|
5 | "type": {
|
6 | "name": "enum",
|
7 | "value": [
|
8 | {
|
9 | "value": "'circle'",
|
10 | "computed": false
|
11 | },
|
12 | {
|
13 | "value": "'line'",
|
14 | "computed": false
|
15 | }
|
16 | ]
|
17 | },
|
18 | "required": false,
|
19 | "description": "形态",
|
20 | "defaultValue": {
|
21 | "value": "'line'",
|
22 | "computed": false
|
23 | },
|
24 | "docblock": "形态"
|
25 | },
|
26 | "size": {
|
27 | "type": {
|
28 | "name": "enum",
|
29 | "value": [
|
30 | {
|
31 | "value": "'small'",
|
32 | "computed": false
|
33 | },
|
34 | {
|
35 | "value": "'medium'",
|
36 | "computed": false
|
37 | },
|
38 | {
|
39 | "value": "'large'",
|
40 | "computed": false
|
41 | }
|
42 | ]
|
43 | },
|
44 | "required": false,
|
45 | "description": "尺寸",
|
46 | "defaultValue": {
|
47 | "value": "'medium'",
|
48 | "computed": false
|
49 | },
|
50 | "docblock": "尺寸"
|
51 | },
|
52 | "percent": {
|
53 | "type": {
|
54 | "name": "number"
|
55 | },
|
56 | "required": false,
|
57 | "description": "所占百分比",
|
58 | "defaultValue": {
|
59 | "value": "0",
|
60 | "computed": false
|
61 | },
|
62 | "docblock": "所占百分比"
|
63 | },
|
64 | "state": {
|
65 | "type": {
|
66 | "name": "enum",
|
67 | "value": [
|
68 | {
|
69 | "value": "'normal'",
|
70 | "computed": false
|
71 | },
|
72 | {
|
73 | "value": "'success'",
|
74 | "computed": false
|
75 | },
|
76 | {
|
77 | "value": "'error'",
|
78 | "computed": false
|
79 | }
|
80 | ]
|
81 | },
|
82 | "required": false,
|
83 | "description": "进度状态, 显示优先级: color > progressive > state",
|
84 | "defaultValue": {
|
85 | "value": "'normal'",
|
86 | "computed": false
|
87 | },
|
88 | "docblock": "进度状态, 显示优先级: color > progressive > state"
|
89 | },
|
90 | "progressive": {
|
91 | "type": {
|
92 | "name": "bool"
|
93 | },
|
94 | "required": false,
|
95 | "description": "是否为色彩阶段变化模式, 显示优先级: color > progressive > state",
|
96 | "defaultValue": {
|
97 | "value": "false",
|
98 | "computed": false
|
99 | },
|
100 | "docblock": "是否为色彩阶段变化模式, 显示优先级: color > progressive > state"
|
101 | },
|
102 | "hasBorder": {
|
103 | "type": {
|
104 | "name": "bool"
|
105 | },
|
106 | "required": false,
|
107 | "description": "是否添加 Border(只适用于 Line Progress)",
|
108 | "defaultValue": {
|
109 | "value": "false",
|
110 | "computed": false
|
111 | },
|
112 | "docblock": "是否添加 Border(只适用于 Line Progress)"
|
113 | },
|
114 | "textRender": {
|
115 | "type": {
|
116 | "name": "func"
|
117 | },
|
118 | "required": false,
|
119 | "description": "文本渲染函数",
|
120 | "defaultValue": {
|
121 | "value": "percent => `${Math.floor(percent)}%`",
|
122 | "computed": false
|
123 | },
|
124 | "docblock": "文本渲染函数\n@param {Number} percent 当前的进度信息\n@param {Object} option 额外的参数\n@property {Boolean} option.rtl 是否在rtl 模式下渲染\n@return {ReactNode} 返回文本节点",
|
125 | "params": [
|
126 | {
|
127 | "name": "percent",
|
128 | "description": "当前的进度信息",
|
129 | "type": {
|
130 | "name": "Number"
|
131 | }
|
132 | },
|
133 | {
|
134 | "name": "option",
|
135 | "description": "额外的参数",
|
136 | "type": {
|
137 | "name": "Object"
|
138 | }
|
139 | }
|
140 | ],
|
141 | "returns": {
|
142 | "description": "返回文本节点",
|
143 | "type": {
|
144 | "name": "ReactNode"
|
145 | }
|
146 | }
|
147 | },
|
148 | "color": {
|
149 | "type": {
|
150 | "name": "string"
|
151 | },
|
152 | "required": false,
|
153 | "description": "进度条颜色, 显示优先级: color > progressive > state",
|
154 | "docblock": "进度条颜色, 显示优先级: color > progressive > state"
|
155 | },
|
156 | "backgroundColor": {
|
157 | "type": {
|
158 | "name": "string"
|
159 | },
|
160 | "required": false,
|
161 | "description": "背景色",
|
162 | "docblock": "背景色"
|
163 | }
|
164 | },
|
165 | "methods": [],
|
166 | "subComponents": []
|
167 | } |
\ | No newline at end of file |