UNPKG

7.89 kBJSONView Raw
1{
2 "name": "Message",
3 "props": {
4 "type": {
5 "type": {
6 "name": "enum",
7 "value": [
8 {
9 "value": "'success'",
10 "computed": false
11 },
12 {
13 "value": "'warning'",
14 "computed": false
15 },
16 {
17 "value": "'error'",
18 "computed": false
19 },
20 {
21 "value": "'notice'",
22 "computed": false
23 },
24 {
25 "value": "'help'",
26 "computed": false
27 },
28 {
29 "value": "'loading'",
30 "computed": false
31 }
32 ]
33 },
34 "required": false,
35 "description": "反馈类型",
36 "defaultValue": {
37 "value": "'success'",
38 "computed": false
39 },
40 "docblock": "反馈类型"
41 },
42 "shape": {
43 "type": {
44 "name": "enum",
45 "value": [
46 {
47 "value": "'inline'",
48 "computed": false
49 },
50 {
51 "value": "'addon'",
52 "computed": false
53 },
54 {
55 "value": "'toast'",
56 "computed": false
57 }
58 ]
59 },
60 "required": false,
61 "description": "反馈外观",
62 "defaultValue": {
63 "value": "'inline'",
64 "computed": false
65 },
66 "docblock": "反馈外观"
67 },
68 "size": {
69 "type": {
70 "name": "enum",
71 "value": [
72 {
73 "value": "'medium'",
74 "computed": false
75 },
76 {
77 "value": "'large'",
78 "computed": false
79 }
80 ]
81 },
82 "required": false,
83 "description": "反馈大小",
84 "defaultValue": {
85 "value": "'medium'",
86 "computed": false
87 },
88 "docblock": "反馈大小"
89 },
90 "title": {
91 "type": {
92 "name": "node"
93 },
94 "required": false,
95 "description": "标题",
96 "docblock": "标题"
97 },
98 "children": {
99 "type": {
100 "name": "node"
101 },
102 "required": false,
103 "description": "内容",
104 "docblock": "内容"
105 },
106 "defaultVisible": {
107 "type": {
108 "name": "bool"
109 },
110 "required": false,
111 "description": "默认是否显示",
112 "defaultValue": {
113 "value": "true",
114 "computed": false
115 },
116 "docblock": "默认是否显示"
117 },
118 "visible": {
119 "type": {
120 "name": "bool"
121 },
122 "required": false,
123 "description": "当前是否显示",
124 "docblock": "当前是否显示"
125 },
126 "iconType": {
127 "type": {
128 "name": "union",
129 "value": [
130 {
131 "name": "string"
132 },
133 {
134 "name": "bool"
135 }
136 ]
137 },
138 "required": false,
139 "description": "显示的图标类型,会覆盖内部设置的IconType,传false不显示图标",
140 "docblock": "显示的图标类型,会覆盖内部设置的IconType,传false不显示图标"
141 },
142 "closeable": {
143 "type": {
144 "name": "bool"
145 },
146 "required": false,
147 "description": "显示关闭按钮",
148 "defaultValue": {
149 "value": "false",
150 "computed": false
151 },
152 "docblock": "显示关闭按钮"
153 },
154 "onClose": {
155 "type": {
156 "name": "func"
157 },
158 "required": false,
159 "description": "关闭按钮的回调",
160 "defaultValue": {
161 "value": "() => {}",
162 "computed": false
163 },
164 "docblock": "关闭按钮的回调",
165 "params": [],
166 "returns": null
167 },
168 "afterClose": {
169 "type": {
170 "name": "func"
171 },
172 "required": false,
173 "description": "关闭之后调用的函数",
174 "defaultValue": {
175 "value": "() => {}",
176 "computed": false
177 },
178 "docblock": "关闭之后调用的函数",
179 "params": [],
180 "returns": null
181 },
182 "animation": {
183 "type": {
184 "name": "bool"
185 },
186 "required": false,
187 "description": "是否开启展开收起动画",
188 "defaultValue": {
189 "value": "true",
190 "computed": false
191 },
192 "docblock": "是否开启展开收起动画"
193 }
194 },
195 "methods": [
196 {
197 "name": "show",
198 "docblock": "\n 创建提示弹层\n @exportName show\n @param {Object} props 属性对象\n ",
199 "description": "创建提示弹层",
200 "modifiers": [
201 "static"
202 ],
203 "params": [
204 {
205 "name": "props",
206 "description": "属性对象",
207 "type": {
208 "type": "NameExpression",
209 "name": "Object"
210 }
211 }
212 ],
213 "returns": null
214 },
215 {
216 "name": "hide",
217 "docblock": "\n 关闭提示弹层\n @exportName hide\n ",
218 "description": "关闭提示弹层",
219 "modifiers": [
220 "static"
221 ],
222 "params": [],
223 "returns": null
224 },
225 {
226 "name": "success",
227 "docblock": "\n 创建成功提示弹层\n @exportName success\n @param {Object} props 属性对象\n ",
228 "description": "创建成功提示弹层",
229 "modifiers": [
230 "static"
231 ],
232 "params": [
233 {
234 "name": "props",
235 "description": "属性对象",
236 "type": {
237 "type": "NameExpression",
238 "name": "Object"
239 }
240 }
241 ],
242 "returns": null
243 },
244 {
245 "name": "warning",
246 "docblock": "\n 创建警告提示弹层\n @exportName warning\n @param {Object} props 属性对象\n ",
247 "description": "创建警告提示弹层",
248 "modifiers": [
249 "static"
250 ],
251 "params": [
252 {
253 "name": "props",
254 "description": "属性对象",
255 "type": {
256 "type": "NameExpression",
257 "name": "Object"
258 }
259 }
260 ],
261 "returns": null
262 },
263 {
264 "name": "error",
265 "docblock": "\n 创建错误提示弹层\n @exportName error\n @param {Object} props 属性对象\n ",
266 "description": "创建错误提示弹层",
267 "modifiers": [
268 "static"
269 ],
270 "params": [
271 {
272 "name": "props",
273 "description": "属性对象",
274 "type": {
275 "type": "NameExpression",
276 "name": "Object"
277 }
278 }
279 ],
280 "returns": null
281 },
282 {
283 "name": "help",
284 "docblock": "\n 创建帮助提示弹层\n @exportName help\n @param {Object} props 属性对象\n ",
285 "description": "创建帮助提示弹层",
286 "modifiers": [
287 "static"
288 ],
289 "params": [
290 {
291 "name": "props",
292 "description": "属性对象",
293 "type": {
294 "type": "NameExpression",
295 "name": "Object"
296 }
297 }
298 ],
299 "returns": null
300 },
301 {
302 "name": "loading",
303 "docblock": "\n 创建加载中提示弹层\n @exportName loading\n @param {Object} props 属性对象\n ",
304 "description": "创建加载中提示弹层",
305 "modifiers": [
306 "static"
307 ],
308 "params": [
309 {
310 "name": "props",
311 "description": "属性对象",
312 "type": {
313 "type": "NameExpression",
314 "name": "Object"
315 }
316 }
317 ],
318 "returns": null
319 },
320 {
321 "name": "notice",
322 "docblock": "\n 创建通知提示弹层\n @exportName notice\n @param {Object} props 属性对象\n ",
323 "description": "创建通知提示弹层",
324 "modifiers": [
325 "static"
326 ],
327 "params": [
328 {
329 "name": "props",
330 "description": "属性对象",
331 "type": {
332 "type": "NameExpression",
333 "name": "Object"
334 }
335 }
336 ],
337 "returns": null
338 }
339 ],
340 "subComponents": []
341}
\No newline at end of file