@next-bricks/presentational 1.21.1 → 1.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +34 -34
- package/dist/chunks/3900.1314ea23.js +2 -0
- package/dist/chunks/3900.1314ea23.js.map +1 -0
- package/dist/chunks/eo-descriptions.75677ae9.js +3 -0
- package/dist/chunks/eo-descriptions.75677ae9.js.map +1 -0
- package/dist/chunks/{main.e70d2fce.js → main.47fe281a.js} +2 -2
- package/dist/chunks/{main.e70d2fce.js.map → main.47fe281a.js.map} +1 -1
- package/dist/examples.json +15 -15
- package/dist/{index.0205acd1.js → index.6e8a0692.js} +2 -2
- package/dist/{index.0205acd1.js.map → index.6e8a0692.js.map} +1 -1
- package/dist/manifest.json +291 -291
- package/dist/types.json +638 -638
- package/package.json +2 -2
- package/dist/chunks/3900.47f48f41.js +0 -2
- package/dist/chunks/3900.47f48f41.js.map +0 -1
- package/dist/chunks/eo-descriptions.84bd1dfe.js +0 -3
- package/dist/chunks/eo-descriptions.84bd1dfe.js.map +0 -1
- /package/dist/chunks/{eo-descriptions.84bd1dfe.js.LICENSE.txt → eo-descriptions.75677ae9.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -4,68 +4,134 @@
|
|
|
4
4
|
"name": "presentational",
|
|
5
5
|
"bricks": [
|
|
6
6
|
{
|
|
7
|
-
"name": "eo-
|
|
7
|
+
"name": "eo-descriptions",
|
|
8
|
+
"alias": [
|
|
9
|
+
"presentational.general-descriptions"
|
|
10
|
+
],
|
|
8
11
|
"properties": [
|
|
9
12
|
{
|
|
10
|
-
"name": "
|
|
11
|
-
"description": "",
|
|
12
|
-
"
|
|
13
|
-
"type": "\"page\" | \"token\""
|
|
13
|
+
"name": "descriptionTitle",
|
|
14
|
+
"description": "描述标题",
|
|
15
|
+
"type": "string"
|
|
14
16
|
},
|
|
15
17
|
{
|
|
16
|
-
"name": "
|
|
17
|
-
"description": "
|
|
18
|
-
"
|
|
19
|
-
"type": "
|
|
18
|
+
"name": "list",
|
|
19
|
+
"description": "描述列表",
|
|
20
|
+
"attribute": false,
|
|
21
|
+
"type": "DescriptionItem[]"
|
|
20
22
|
},
|
|
21
23
|
{
|
|
22
|
-
"name": "
|
|
23
|
-
"description": "
|
|
24
|
-
"default": "
|
|
25
|
-
"type": "
|
|
24
|
+
"name": "showCard",
|
|
25
|
+
"description": "是否展示卡片背景",
|
|
26
|
+
"default": "true",
|
|
27
|
+
"type": "boolean"
|
|
26
28
|
},
|
|
27
29
|
{
|
|
28
|
-
"name": "
|
|
29
|
-
"description": "
|
|
30
|
-
"
|
|
30
|
+
"name": "column",
|
|
31
|
+
"description": "列数",
|
|
32
|
+
"attribute": true,
|
|
31
33
|
"type": "number"
|
|
32
34
|
},
|
|
33
35
|
{
|
|
34
|
-
"name": "
|
|
35
|
-
"description": "
|
|
36
|
-
"
|
|
36
|
+
"name": "templateColumns",
|
|
37
|
+
"description": "CSS [grid-template-columns](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "layout",
|
|
42
|
+
"description": "布局模式",
|
|
43
|
+
"default": "\"horizontal\"",
|
|
44
|
+
"type": "Layout"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "bordered",
|
|
48
|
+
"description": "是否展示边框",
|
|
49
|
+
"default": "false",
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "hideGroups",
|
|
54
|
+
"description": "隐藏的描述列表项",
|
|
37
55
|
"attribute": false,
|
|
38
|
-
"type": "
|
|
56
|
+
"type": "string | string[]"
|
|
39
57
|
},
|
|
40
58
|
{
|
|
41
|
-
"name": "
|
|
42
|
-
"description": "
|
|
43
|
-
"
|
|
59
|
+
"name": "dataSource",
|
|
60
|
+
"description": "数据源",
|
|
61
|
+
"attribute": false,
|
|
62
|
+
"type": "Record<string, unknown>"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "themeVariant",
|
|
66
|
+
"description": "主题变体",
|
|
67
|
+
"type": "\"default\" | \"elevo\""
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"events": [],
|
|
71
|
+
"slots": [],
|
|
72
|
+
"methods": [],
|
|
73
|
+
"parts": [],
|
|
74
|
+
"description": "通用描述列表构件",
|
|
75
|
+
"category": "text"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "eo-alert",
|
|
79
|
+
"alias": [
|
|
80
|
+
"presentational.general-alert"
|
|
81
|
+
],
|
|
82
|
+
"properties": [
|
|
83
|
+
{
|
|
84
|
+
"name": "type",
|
|
85
|
+
"description": "警告类型",
|
|
86
|
+
"attribute": false,
|
|
87
|
+
"type": "AlertType"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "hasTitle",
|
|
91
|
+
"description": "是否显示标题。开启后,可以使用 `title` 插槽",
|
|
44
92
|
"type": "boolean"
|
|
45
93
|
},
|
|
46
94
|
{
|
|
47
|
-
"name": "
|
|
48
|
-
"
|
|
95
|
+
"name": "showIcon",
|
|
96
|
+
"description": "是否显示提示图标",
|
|
97
|
+
"type": "boolean"
|
|
49
98
|
},
|
|
50
99
|
{
|
|
51
|
-
"name": "
|
|
100
|
+
"name": "closable",
|
|
101
|
+
"description": "是否显示关闭按钮",
|
|
102
|
+
"type": "boolean"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "localStorageKey",
|
|
106
|
+
"description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
|
|
52
107
|
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "disableUrlNamespace",
|
|
111
|
+
"description": "关闭后仅以 `localStorageKey` 作为命名空间",
|
|
112
|
+
"type": "boolean"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "textContent",
|
|
116
|
+
"type": "string",
|
|
117
|
+
"description": "文本内容"
|
|
53
118
|
}
|
|
54
119
|
],
|
|
55
|
-
"events": [
|
|
120
|
+
"events": [],
|
|
121
|
+
"slots": [
|
|
56
122
|
{
|
|
57
|
-
"name":
|
|
58
|
-
"description": "
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
123
|
+
"name": null,
|
|
124
|
+
"description": "内容区"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "title",
|
|
128
|
+
"description": "标题"
|
|
62
129
|
}
|
|
63
130
|
],
|
|
64
|
-
"slots": [],
|
|
65
131
|
"methods": [],
|
|
66
132
|
"parts": [],
|
|
67
|
-
"description": "
|
|
68
|
-
"category": "
|
|
133
|
+
"description": "告警提示",
|
|
134
|
+
"category": "display-component"
|
|
69
135
|
},
|
|
70
136
|
{
|
|
71
137
|
"name": "eo-card-item",
|
|
@@ -243,89 +309,68 @@
|
|
|
243
309
|
"category": "card-info"
|
|
244
310
|
},
|
|
245
311
|
{
|
|
246
|
-
"name": "eo-
|
|
312
|
+
"name": "eo-pagination",
|
|
247
313
|
"properties": [
|
|
248
314
|
{
|
|
249
|
-
"name": "
|
|
250
|
-
"description": "
|
|
251
|
-
"default": "
|
|
252
|
-
"
|
|
253
|
-
"type": "OrientationType"
|
|
315
|
+
"name": "type",
|
|
316
|
+
"description": "",
|
|
317
|
+
"default": "\"page\"",
|
|
318
|
+
"type": "\"page\" | \"token\""
|
|
254
319
|
},
|
|
255
320
|
{
|
|
256
|
-
"name": "
|
|
257
|
-
"description": "
|
|
258
|
-
"default": "
|
|
259
|
-
"type": "
|
|
321
|
+
"name": "total",
|
|
322
|
+
"description": "数据总数",
|
|
323
|
+
"default": "0",
|
|
324
|
+
"type": "number"
|
|
260
325
|
},
|
|
261
326
|
{
|
|
262
|
-
"name": "
|
|
263
|
-
"description": "
|
|
264
|
-
"default": "
|
|
265
|
-
"type": "
|
|
327
|
+
"name": "page",
|
|
328
|
+
"description": "当前页数",
|
|
329
|
+
"default": "1",
|
|
330
|
+
"type": "number"
|
|
266
331
|
},
|
|
267
332
|
{
|
|
268
|
-
"name": "
|
|
269
|
-
"description": "
|
|
270
|
-
"
|
|
271
|
-
"type": "
|
|
333
|
+
"name": "pageSize",
|
|
334
|
+
"description": "每页条数",
|
|
335
|
+
"default": "20",
|
|
336
|
+
"type": "number"
|
|
272
337
|
},
|
|
273
338
|
{
|
|
274
|
-
"name": "
|
|
275
|
-
"description": "
|
|
339
|
+
"name": "pageSizeOptions",
|
|
340
|
+
"description": "指定每页可以显示多少条",
|
|
341
|
+
"default": "[10, 20, 50, 100]",
|
|
276
342
|
"attribute": false,
|
|
277
|
-
"type": "
|
|
278
|
-
}
|
|
279
|
-
],
|
|
280
|
-
"events": [],
|
|
281
|
-
"slots": [],
|
|
282
|
-
"methods": [],
|
|
283
|
-
"parts": [],
|
|
284
|
-
"description": "分割线",
|
|
285
|
-
"category": "container-display"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"name": "eo-info-card-item",
|
|
289
|
-
"properties": [
|
|
290
|
-
{
|
|
291
|
-
"name": "cardTitle",
|
|
292
|
-
"description": "title",
|
|
293
|
-
"type": "string"
|
|
343
|
+
"type": "number[]"
|
|
294
344
|
},
|
|
295
345
|
{
|
|
296
|
-
"name": "
|
|
297
|
-
"description": "
|
|
298
|
-
"
|
|
346
|
+
"name": "showSizeChanger",
|
|
347
|
+
"description": "是否展示`pageSize`分页器",
|
|
348
|
+
"default": "true",
|
|
349
|
+
"type": "boolean"
|
|
299
350
|
},
|
|
300
351
|
{
|
|
301
|
-
"name": "
|
|
302
|
-
"description": "链接地址",
|
|
352
|
+
"name": "nextToken",
|
|
303
353
|
"type": "string"
|
|
304
354
|
},
|
|
305
355
|
{
|
|
306
|
-
"name": "
|
|
307
|
-
"
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
{
|
|
312
|
-
"name": "detailList",
|
|
313
|
-
"description": "详细列表",
|
|
314
|
-
"attribute": false,
|
|
315
|
-
"type": "InfoCardDetail[]"
|
|
316
|
-
},
|
|
356
|
+
"name": "previousToken",
|
|
357
|
+
"type": "string"
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"events": [
|
|
317
361
|
{
|
|
318
|
-
"name": "
|
|
319
|
-
"description": "
|
|
320
|
-
"
|
|
362
|
+
"name": "change",
|
|
363
|
+
"description": "页码及每页条数改变事件",
|
|
364
|
+
"detail": {
|
|
365
|
+
"type": "ChangeDetail"
|
|
366
|
+
}
|
|
321
367
|
}
|
|
322
368
|
],
|
|
323
|
-
"events": [],
|
|
324
369
|
"slots": [],
|
|
325
370
|
"methods": [],
|
|
326
371
|
"parts": [],
|
|
327
|
-
"description": "
|
|
328
|
-
"category": "
|
|
372
|
+
"description": "分页",
|
|
373
|
+
"category": "navigation"
|
|
329
374
|
},
|
|
330
375
|
{
|
|
331
376
|
"name": "eo-code-display",
|
|
@@ -385,159 +430,89 @@
|
|
|
385
430
|
"category": "display-component"
|
|
386
431
|
},
|
|
387
432
|
{
|
|
388
|
-
"name": "eo-
|
|
389
|
-
"
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
"name": "value",
|
|
395
|
-
"description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
|
|
396
|
-
"required": true,
|
|
397
|
-
"attribute": false,
|
|
398
|
-
"type": "number | string"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"name": "inputFormat",
|
|
402
|
-
"description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
|
|
403
|
-
"type": "string"
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
"name": "outputFormat",
|
|
407
|
-
"description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
|
|
408
|
-
"type": "string"
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
"name": "type",
|
|
412
|
-
"description": "使用日期+时间格式输出还是仅日期。",
|
|
413
|
-
"default": "\"datetime\"",
|
|
414
|
-
"type": "\"datetime\" | \"date\""
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"name": "isCostTime",
|
|
418
|
-
"description": "是否展示为耗费时间,例如:'1 个月 20 天'",
|
|
419
|
-
"type": "boolean"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"name": "formatter",
|
|
423
|
-
"description": "格式类型",
|
|
424
|
-
"default": "\"default\"",
|
|
425
|
-
"attribute": false,
|
|
426
|
-
"type": "HumanizeTimeFormat"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"name": "isMicrosecond",
|
|
430
|
-
"description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
|
|
431
|
-
"deprecated": "请使用 `isMillisecond`",
|
|
432
|
-
"type": "boolean"
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
"name": "isMillisecond",
|
|
436
|
-
"description": "value 值的单位是否为毫秒",
|
|
437
|
-
"type": "boolean"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"name": "link",
|
|
441
|
-
"description": "跳转链接,默认为空",
|
|
442
|
-
"attribute": false,
|
|
443
|
-
"type": "LinkInfo"
|
|
444
|
-
}
|
|
445
|
-
],
|
|
446
|
-
"events": [],
|
|
447
|
-
"slots": [],
|
|
448
|
-
"methods": [],
|
|
449
|
-
"parts": [],
|
|
450
|
-
"description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"name": "eo-statistics-card",
|
|
454
|
-
"properties": [
|
|
455
|
-
{
|
|
456
|
-
"name": "cardTitle",
|
|
457
|
-
"description": "卡片标题",
|
|
458
|
-
"type": "string"
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
"name": "value",
|
|
462
|
-
"description": "值",
|
|
463
|
-
"type": "string"
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"name": "unit",
|
|
467
|
-
"description": "单位",
|
|
468
|
-
"type": "string"
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
"name": "icon",
|
|
472
|
-
"description": "图标",
|
|
473
|
-
"attribute": false,
|
|
474
|
-
"type": "EoStatisticsCardProps[\"icon\"]"
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
"name": "size",
|
|
478
|
-
"description": "尺寸",
|
|
479
|
-
"default": "\"medium\"",
|
|
480
|
-
"type": "\"large\" | \"medium\" | \"small\""
|
|
433
|
+
"name": "eo-info-card-item",
|
|
434
|
+
"properties": [
|
|
435
|
+
{
|
|
436
|
+
"name": "cardTitle",
|
|
437
|
+
"description": "title",
|
|
438
|
+
"type": "string"
|
|
481
439
|
},
|
|
482
440
|
{
|
|
483
|
-
"name": "
|
|
484
|
-
"description": "
|
|
485
|
-
"
|
|
486
|
-
"type": "\"border\" | \"background\" | \"none\""
|
|
441
|
+
"name": "description",
|
|
442
|
+
"description": "description",
|
|
443
|
+
"type": "string"
|
|
487
444
|
},
|
|
488
445
|
{
|
|
489
|
-
"name": "
|
|
490
|
-
"description": "
|
|
446
|
+
"name": "url",
|
|
447
|
+
"description": "链接地址",
|
|
491
448
|
"type": "string"
|
|
492
449
|
},
|
|
493
450
|
{
|
|
494
|
-
"name": "
|
|
495
|
-
"description": "
|
|
496
|
-
"
|
|
497
|
-
"type": "
|
|
451
|
+
"name": "cardIcon",
|
|
452
|
+
"description": "图标",
|
|
453
|
+
"attribute": false,
|
|
454
|
+
"type": "IconAvatar"
|
|
498
455
|
},
|
|
499
456
|
{
|
|
500
|
-
"name": "
|
|
501
|
-
"description": "
|
|
457
|
+
"name": "detailList",
|
|
458
|
+
"description": "详细列表",
|
|
502
459
|
"attribute": false,
|
|
503
|
-
"type": "
|
|
460
|
+
"type": "InfoCardDetail[]"
|
|
504
461
|
},
|
|
505
462
|
{
|
|
506
|
-
"name": "
|
|
507
|
-
"description": "
|
|
508
|
-
"type": "
|
|
463
|
+
"name": "target",
|
|
464
|
+
"description": "链接跳转目标",
|
|
465
|
+
"type": "LinkProps[\"target\"]"
|
|
509
466
|
}
|
|
510
467
|
],
|
|
511
468
|
"events": [],
|
|
512
|
-
"slots": [
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
469
|
+
"slots": [],
|
|
470
|
+
"methods": [],
|
|
471
|
+
"parts": [],
|
|
472
|
+
"description": "信息卡片",
|
|
473
|
+
"category": "card-info"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "eo-divider",
|
|
477
|
+
"properties": [
|
|
517
478
|
{
|
|
518
|
-
"name": "
|
|
519
|
-
"description": "
|
|
479
|
+
"name": "orientation",
|
|
480
|
+
"description": "标题位置,在horizontal类型的分割线中使用",
|
|
481
|
+
"default": "center",
|
|
482
|
+
"attribute": false,
|
|
483
|
+
"type": "OrientationType"
|
|
520
484
|
},
|
|
521
485
|
{
|
|
522
|
-
"name": "
|
|
523
|
-
"description": "
|
|
486
|
+
"name": "dashed",
|
|
487
|
+
"description": "是否虚线",
|
|
488
|
+
"default": "false",
|
|
489
|
+
"type": "boolean"
|
|
524
490
|
},
|
|
525
491
|
{
|
|
526
|
-
"name": "
|
|
527
|
-
"description": "
|
|
492
|
+
"name": "type",
|
|
493
|
+
"description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
|
|
494
|
+
"default": "\"horizontal\"",
|
|
495
|
+
"type": "dividerType"
|
|
528
496
|
},
|
|
529
497
|
{
|
|
530
|
-
"name": "
|
|
531
|
-
"description": "
|
|
498
|
+
"name": "proportion",
|
|
499
|
+
"description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
|
|
500
|
+
"attribute": false,
|
|
501
|
+
"type": "[number, number]"
|
|
532
502
|
},
|
|
533
503
|
{
|
|
534
|
-
"name": "
|
|
535
|
-
"description": "
|
|
504
|
+
"name": "dividerStyle",
|
|
505
|
+
"description": "分割线自定义样式",
|
|
506
|
+
"attribute": false,
|
|
507
|
+
"type": "CSSProperties"
|
|
536
508
|
}
|
|
537
509
|
],
|
|
510
|
+
"events": [],
|
|
511
|
+
"slots": [],
|
|
538
512
|
"methods": [],
|
|
539
513
|
"parts": [],
|
|
540
|
-
"description": "
|
|
514
|
+
"description": "分割线",
|
|
515
|
+
"category": "container-display"
|
|
541
516
|
},
|
|
542
517
|
{
|
|
543
518
|
"name": "eo-loading-step",
|
|
@@ -756,134 +731,159 @@
|
|
|
756
731
|
"description": "构件 `presentational.code-wrapper`"
|
|
757
732
|
},
|
|
758
733
|
{
|
|
759
|
-
"name": "eo-
|
|
760
|
-
"alias": [
|
|
761
|
-
"presentational.general-alert"
|
|
762
|
-
],
|
|
734
|
+
"name": "eo-statistics-card",
|
|
763
735
|
"properties": [
|
|
764
736
|
{
|
|
765
|
-
"name": "
|
|
766
|
-
"description": "
|
|
767
|
-
"
|
|
768
|
-
"type": "AlertType"
|
|
737
|
+
"name": "cardTitle",
|
|
738
|
+
"description": "卡片标题",
|
|
739
|
+
"type": "string"
|
|
769
740
|
},
|
|
770
741
|
{
|
|
771
|
-
"name": "
|
|
772
|
-
"description": "
|
|
773
|
-
"type": "
|
|
742
|
+
"name": "value",
|
|
743
|
+
"description": "值",
|
|
744
|
+
"type": "string"
|
|
774
745
|
},
|
|
775
746
|
{
|
|
776
|
-
"name": "
|
|
777
|
-
"description": "
|
|
778
|
-
"type": "
|
|
747
|
+
"name": "unit",
|
|
748
|
+
"description": "单位",
|
|
749
|
+
"type": "string"
|
|
779
750
|
},
|
|
780
751
|
{
|
|
781
|
-
"name": "
|
|
782
|
-
"description": "
|
|
783
|
-
"
|
|
752
|
+
"name": "icon",
|
|
753
|
+
"description": "图标",
|
|
754
|
+
"attribute": false,
|
|
755
|
+
"type": "EoStatisticsCardProps[\"icon\"]"
|
|
784
756
|
},
|
|
785
757
|
{
|
|
786
|
-
"name": "
|
|
787
|
-
"description": "
|
|
758
|
+
"name": "size",
|
|
759
|
+
"description": "尺寸",
|
|
760
|
+
"default": "\"medium\"",
|
|
761
|
+
"type": "\"large\" | \"medium\" | \"small\""
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"name": "outline",
|
|
765
|
+
"description": "卡片轮廓",
|
|
766
|
+
"default": "\"border\"",
|
|
767
|
+
"type": "\"border\" | \"background\" | \"none\""
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"name": "background",
|
|
771
|
+
"description": "背景",
|
|
788
772
|
"type": "string"
|
|
789
773
|
},
|
|
790
774
|
{
|
|
791
|
-
"name": "
|
|
792
|
-
"description": "
|
|
793
|
-
"
|
|
775
|
+
"name": "descriptionPosition",
|
|
776
|
+
"description": "描述位置",
|
|
777
|
+
"default": "\"bottom\"",
|
|
778
|
+
"type": "\"bottom\" | \"right\""
|
|
794
779
|
},
|
|
795
780
|
{
|
|
796
|
-
"name": "
|
|
797
|
-
"
|
|
798
|
-
"
|
|
781
|
+
"name": "valueStyle",
|
|
782
|
+
"description": "值样式",
|
|
783
|
+
"attribute": false,
|
|
784
|
+
"type": "React.CSSProperties"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "interactable",
|
|
788
|
+
"description": "是否可互动",
|
|
789
|
+
"type": "boolean"
|
|
799
790
|
}
|
|
800
791
|
],
|
|
801
792
|
"events": [],
|
|
802
793
|
"slots": [
|
|
803
794
|
{
|
|
804
|
-
"name":
|
|
805
|
-
"description": "
|
|
795
|
+
"name": "titlePrefix",
|
|
796
|
+
"description": "标题前缀,放置辅助信息"
|
|
806
797
|
},
|
|
807
798
|
{
|
|
808
|
-
"name": "
|
|
809
|
-
"description": "
|
|
799
|
+
"name": "titleSuffix",
|
|
800
|
+
"description": "标题前缀,放置辅助信息"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"name": "description",
|
|
804
|
+
"description": "描述信息,通常是对于统计值的描述"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"name": "basicContent",
|
|
808
|
+
"description": "卡片右侧内容区,适合放置迷你图表,常用于小卡片"
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"name": "extraContent",
|
|
812
|
+
"description": "卡片下方内容区,适合放置图表,用于展示更多信息的场景"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"name": "operator",
|
|
816
|
+
"description": "右上角操作区"
|
|
810
817
|
}
|
|
811
818
|
],
|
|
812
819
|
"methods": [],
|
|
813
820
|
"parts": [],
|
|
814
|
-
"description": "
|
|
815
|
-
"category": "display-component"
|
|
821
|
+
"description": "统计卡片"
|
|
816
822
|
},
|
|
817
823
|
{
|
|
818
|
-
"name": "eo-
|
|
824
|
+
"name": "eo-humanize-time",
|
|
819
825
|
"alias": [
|
|
820
|
-
"presentational.
|
|
826
|
+
"presentational.humanize-time"
|
|
821
827
|
],
|
|
822
828
|
"properties": [
|
|
823
829
|
{
|
|
824
|
-
"name": "
|
|
825
|
-
"description": "
|
|
826
|
-
"
|
|
827
|
-
},
|
|
828
|
-
{
|
|
829
|
-
"name": "list",
|
|
830
|
-
"description": "描述列表",
|
|
830
|
+
"name": "value",
|
|
831
|
+
"description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
|
|
832
|
+
"required": true,
|
|
831
833
|
"attribute": false,
|
|
832
|
-
"type": "
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
"name": "showCard",
|
|
836
|
-
"description": "是否展示卡片背景",
|
|
837
|
-
"default": "true",
|
|
838
|
-
"type": "boolean"
|
|
834
|
+
"type": "number | string"
|
|
839
835
|
},
|
|
840
836
|
{
|
|
841
|
-
"name": "
|
|
842
|
-
"description": "
|
|
843
|
-
"
|
|
844
|
-
"type": "number"
|
|
837
|
+
"name": "inputFormat",
|
|
838
|
+
"description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
|
|
839
|
+
"type": "string"
|
|
845
840
|
},
|
|
846
841
|
{
|
|
847
|
-
"name": "
|
|
848
|
-
"description": "
|
|
842
|
+
"name": "outputFormat",
|
|
843
|
+
"description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
|
|
849
844
|
"type": "string"
|
|
850
845
|
},
|
|
851
846
|
{
|
|
852
|
-
"name": "
|
|
853
|
-
"description": "
|
|
854
|
-
"default": "\"
|
|
855
|
-
"type": "
|
|
847
|
+
"name": "type",
|
|
848
|
+
"description": "使用日期+时间格式输出还是仅日期。",
|
|
849
|
+
"default": "\"datetime\"",
|
|
850
|
+
"type": "\"datetime\" | \"date\""
|
|
856
851
|
},
|
|
857
852
|
{
|
|
858
|
-
"name": "
|
|
859
|
-
"description": "
|
|
860
|
-
"default": "false",
|
|
853
|
+
"name": "isCostTime",
|
|
854
|
+
"description": "是否展示为耗费时间,例如:'1 个月 20 天'",
|
|
861
855
|
"type": "boolean"
|
|
862
856
|
},
|
|
863
857
|
{
|
|
864
|
-
"name": "
|
|
865
|
-
"description": "
|
|
858
|
+
"name": "formatter",
|
|
859
|
+
"description": "格式类型",
|
|
860
|
+
"default": "\"default\"",
|
|
866
861
|
"attribute": false,
|
|
867
|
-
"type": "
|
|
862
|
+
"type": "HumanizeTimeFormat"
|
|
868
863
|
},
|
|
869
864
|
{
|
|
870
|
-
"name": "
|
|
871
|
-
"description": "
|
|
872
|
-
"
|
|
873
|
-
"type": "
|
|
865
|
+
"name": "isMicrosecond",
|
|
866
|
+
"description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
|
|
867
|
+
"deprecated": "请使用 `isMillisecond`",
|
|
868
|
+
"type": "boolean"
|
|
874
869
|
},
|
|
875
870
|
{
|
|
876
|
-
"name": "
|
|
877
|
-
"description": "
|
|
878
|
-
"type": "
|
|
871
|
+
"name": "isMillisecond",
|
|
872
|
+
"description": "value 值的单位是否为毫秒",
|
|
873
|
+
"type": "boolean"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"name": "link",
|
|
877
|
+
"description": "跳转链接,默认为空",
|
|
878
|
+
"attribute": false,
|
|
879
|
+
"type": "LinkInfo"
|
|
879
880
|
}
|
|
880
881
|
],
|
|
881
882
|
"events": [],
|
|
882
883
|
"slots": [],
|
|
883
884
|
"methods": [],
|
|
884
885
|
"parts": [],
|
|
885
|
-
"description": "
|
|
886
|
-
"category": "text"
|
|
886
|
+
"description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
|
|
887
887
|
}
|
|
888
888
|
],
|
|
889
889
|
"providers": []
|