@next-bricks/presentational 1.21.0 → 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 +27 -27
- package/dist/chunks/3900.1314ea23.js +2 -0
- package/dist/chunks/3900.1314ea23.js.map +1 -0
- package/dist/chunks/948.e1790690.js.map +1 -1
- package/dist/chunks/{eo-card-item.225ef485.js → eo-card-item.da90013a.js} +3 -3
- package/dist/chunks/{eo-card-item.225ef485.js.map → eo-card-item.da90013a.js.map} +1 -1
- package/dist/chunks/{eo-code-block.8853f77b.js → eo-code-block.f5ffef62.js} +2 -2
- package/dist/chunks/{eo-code-block.8853f77b.js.map → eo-code-block.f5ffef62.js.map} +1 -1
- package/dist/chunks/eo-descriptions.75677ae9.js +3 -0
- package/dist/chunks/eo-descriptions.75677ae9.js.map +1 -0
- package/dist/chunks/{eo-info-card-item.9c7a6579.js → eo-info-card-item.554cba4f.js} +3 -3
- package/dist/chunks/{eo-info-card-item.9c7a6579.js.map → eo-info-card-item.554cba4f.js.map} +1 -1
- package/dist/chunks/{eo-loading-step.7c1cfe82.js → eo-loading-step.604d6e34.js} +3 -3
- package/dist/chunks/{eo-loading-step.7c1cfe82.js.map → eo-loading-step.604d6e34.js.map} +1 -1
- package/dist/chunks/{main.96df5002.js → main.47fe281a.js} +2 -2
- package/dist/chunks/{main.96df5002.js.map → main.47fe281a.js.map} +1 -1
- package/dist/examples.json +15 -12
- package/dist/{index.5a0be08d.js → index.6e8a0692.js} +2 -2
- package/dist/{index.5a0be08d.js.map → index.6e8a0692.js.map} +1 -1
- package/dist/manifest.json +267 -267
- package/dist/types.json +544 -544
- package/docs/{code-block.md → eo-code-block.md} +2 -2
- package/package.json +2 -2
- package/dist/chunks/3900.9b093658.js +0 -2
- package/dist/chunks/3900.9b093658.js.map +0 -1
- package/dist/chunks/eo-descriptions.9da014f3.js +0 -3
- package/dist/chunks/eo-descriptions.9da014f3.js.map +0 -1
- /package/dist/chunks/{eo-card-item.225ef485.js.LICENSE.txt → eo-card-item.da90013a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-descriptions.9da014f3.js.LICENSE.txt → eo-descriptions.75677ae9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-info-card-item.9c7a6579.js.LICENSE.txt → eo-info-card-item.554cba4f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-loading-step.7c1cfe82.js.LICENSE.txt → eo-loading-step.604d6e34.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -133,127 +133,6 @@
|
|
|
133
133
|
"description": "告警提示",
|
|
134
134
|
"category": "display-component"
|
|
135
135
|
},
|
|
136
|
-
{
|
|
137
|
-
"name": "eo-code-display",
|
|
138
|
-
"alias": [
|
|
139
|
-
"presentational.code-display"
|
|
140
|
-
],
|
|
141
|
-
"properties": [
|
|
142
|
-
{
|
|
143
|
-
"name": "value",
|
|
144
|
-
"description": "代码内容",
|
|
145
|
-
"default": "\"\"",
|
|
146
|
-
"type": "string"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"name": "language",
|
|
150
|
-
"description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
|
|
151
|
-
"type": "string"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"name": "hideLineNumber",
|
|
155
|
-
"description": "是否隐藏行号",
|
|
156
|
-
"type": "boolean"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"name": "maxLines",
|
|
160
|
-
"description": "最大行数",
|
|
161
|
-
"type": "number"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"name": "minLines",
|
|
165
|
-
"description": "最小行数",
|
|
166
|
-
"type": "number"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "showCopyButton",
|
|
170
|
-
"description": "是否显示复制按钮",
|
|
171
|
-
"default": "true",
|
|
172
|
-
"type": "boolean"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"name": "showExportButton",
|
|
176
|
-
"description": "是否显示导出按钮",
|
|
177
|
-
"type": "boolean"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"name": "exportFileName",
|
|
181
|
-
"description": "导出的文件名",
|
|
182
|
-
"default": "download.txt",
|
|
183
|
-
"type": "string"
|
|
184
|
-
}
|
|
185
|
-
],
|
|
186
|
-
"events": [],
|
|
187
|
-
"slots": [],
|
|
188
|
-
"methods": [],
|
|
189
|
-
"parts": [],
|
|
190
|
-
"description": "代码展示",
|
|
191
|
-
"category": "display-component"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"name": "eo-pagination",
|
|
195
|
-
"properties": [
|
|
196
|
-
{
|
|
197
|
-
"name": "type",
|
|
198
|
-
"description": "",
|
|
199
|
-
"default": "\"page\"",
|
|
200
|
-
"type": "\"page\" | \"token\""
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"name": "total",
|
|
204
|
-
"description": "数据总数",
|
|
205
|
-
"default": "0",
|
|
206
|
-
"type": "number"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "page",
|
|
210
|
-
"description": "当前页数",
|
|
211
|
-
"default": "1",
|
|
212
|
-
"type": "number"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"name": "pageSize",
|
|
216
|
-
"description": "每页条数",
|
|
217
|
-
"default": "20",
|
|
218
|
-
"type": "number"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"name": "pageSizeOptions",
|
|
222
|
-
"description": "指定每页可以显示多少条",
|
|
223
|
-
"default": "[10, 20, 50, 100]",
|
|
224
|
-
"attribute": false,
|
|
225
|
-
"type": "number[]"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"name": "showSizeChanger",
|
|
229
|
-
"description": "是否展示`pageSize`分页器",
|
|
230
|
-
"default": "true",
|
|
231
|
-
"type": "boolean"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"name": "nextToken",
|
|
235
|
-
"type": "string"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"name": "previousToken",
|
|
239
|
-
"type": "string"
|
|
240
|
-
}
|
|
241
|
-
],
|
|
242
|
-
"events": [
|
|
243
|
-
{
|
|
244
|
-
"name": "change",
|
|
245
|
-
"description": "页码及每页条数改变事件",
|
|
246
|
-
"detail": {
|
|
247
|
-
"type": "ChangeDetail"
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
],
|
|
251
|
-
"slots": [],
|
|
252
|
-
"methods": [],
|
|
253
|
-
"parts": [],
|
|
254
|
-
"description": "分页",
|
|
255
|
-
"category": "navigation"
|
|
256
|
-
},
|
|
257
136
|
{
|
|
258
137
|
"name": "eo-card-item",
|
|
259
138
|
"properties": [
|
|
@@ -430,244 +309,210 @@
|
|
|
430
309
|
"category": "card-info"
|
|
431
310
|
},
|
|
432
311
|
{
|
|
433
|
-
"name": "eo-
|
|
312
|
+
"name": "eo-pagination",
|
|
434
313
|
"properties": [
|
|
435
314
|
{
|
|
436
|
-
"name": "
|
|
437
|
-
"description": "
|
|
438
|
-
"default": "
|
|
439
|
-
"
|
|
440
|
-
"type": "OrientationType"
|
|
315
|
+
"name": "type",
|
|
316
|
+
"description": "",
|
|
317
|
+
"default": "\"page\"",
|
|
318
|
+
"type": "\"page\" | \"token\""
|
|
441
319
|
},
|
|
442
320
|
{
|
|
443
|
-
"name": "
|
|
444
|
-
"description": "
|
|
445
|
-
"default": "
|
|
446
|
-
"type": "
|
|
321
|
+
"name": "total",
|
|
322
|
+
"description": "数据总数",
|
|
323
|
+
"default": "0",
|
|
324
|
+
"type": "number"
|
|
447
325
|
},
|
|
448
326
|
{
|
|
449
|
-
"name": "
|
|
450
|
-
"description": "
|
|
451
|
-
"default": "
|
|
452
|
-
"type": "
|
|
327
|
+
"name": "page",
|
|
328
|
+
"description": "当前页数",
|
|
329
|
+
"default": "1",
|
|
330
|
+
"type": "number"
|
|
453
331
|
},
|
|
454
332
|
{
|
|
455
|
-
"name": "
|
|
456
|
-
"description": "
|
|
457
|
-
"
|
|
458
|
-
"type": "
|
|
333
|
+
"name": "pageSize",
|
|
334
|
+
"description": "每页条数",
|
|
335
|
+
"default": "20",
|
|
336
|
+
"type": "number"
|
|
459
337
|
},
|
|
460
338
|
{
|
|
461
|
-
"name": "
|
|
462
|
-
"description": "
|
|
339
|
+
"name": "pageSizeOptions",
|
|
340
|
+
"description": "指定每页可以显示多少条",
|
|
341
|
+
"default": "[10, 20, 50, 100]",
|
|
463
342
|
"attribute": false,
|
|
464
|
-
"type": "
|
|
465
|
-
}
|
|
466
|
-
],
|
|
467
|
-
"events": [],
|
|
468
|
-
"slots": [],
|
|
469
|
-
"methods": [],
|
|
470
|
-
"parts": [],
|
|
471
|
-
"description": "分割线",
|
|
472
|
-
"category": "container-display"
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
"name": "eo-info-card-item",
|
|
476
|
-
"properties": [
|
|
477
|
-
{
|
|
478
|
-
"name": "cardTitle",
|
|
479
|
-
"description": "title",
|
|
480
|
-
"type": "string"
|
|
343
|
+
"type": "number[]"
|
|
481
344
|
},
|
|
482
345
|
{
|
|
483
|
-
"name": "
|
|
484
|
-
"description": "
|
|
485
|
-
"
|
|
346
|
+
"name": "showSizeChanger",
|
|
347
|
+
"description": "是否展示`pageSize`分页器",
|
|
348
|
+
"default": "true",
|
|
349
|
+
"type": "boolean"
|
|
486
350
|
},
|
|
487
351
|
{
|
|
488
|
-
"name": "
|
|
489
|
-
"description": "链接地址",
|
|
352
|
+
"name": "nextToken",
|
|
490
353
|
"type": "string"
|
|
491
354
|
},
|
|
492
355
|
{
|
|
493
|
-
"name": "
|
|
494
|
-
"
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
{
|
|
499
|
-
"name": "detailList",
|
|
500
|
-
"description": "详细列表",
|
|
501
|
-
"attribute": false,
|
|
502
|
-
"type": "InfoCardDetail[]"
|
|
503
|
-
},
|
|
356
|
+
"name": "previousToken",
|
|
357
|
+
"type": "string"
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"events": [
|
|
504
361
|
{
|
|
505
|
-
"name": "
|
|
506
|
-
"description": "
|
|
507
|
-
"
|
|
362
|
+
"name": "change",
|
|
363
|
+
"description": "页码及每页条数改变事件",
|
|
364
|
+
"detail": {
|
|
365
|
+
"type": "ChangeDetail"
|
|
366
|
+
}
|
|
508
367
|
}
|
|
509
368
|
],
|
|
510
|
-
"events": [],
|
|
511
369
|
"slots": [],
|
|
512
370
|
"methods": [],
|
|
513
371
|
"parts": [],
|
|
514
|
-
"description": "
|
|
515
|
-
"category": "
|
|
372
|
+
"description": "分页",
|
|
373
|
+
"category": "navigation"
|
|
516
374
|
},
|
|
517
375
|
{
|
|
518
|
-
"name": "eo-
|
|
376
|
+
"name": "eo-code-display",
|
|
519
377
|
"alias": [
|
|
520
|
-
"presentational.
|
|
378
|
+
"presentational.code-display"
|
|
521
379
|
],
|
|
522
380
|
"properties": [
|
|
523
381
|
{
|
|
524
382
|
"name": "value",
|
|
525
|
-
"description": "
|
|
526
|
-
"
|
|
527
|
-
"attribute": false,
|
|
528
|
-
"type": "number | string"
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
"name": "inputFormat",
|
|
532
|
-
"description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
|
|
383
|
+
"description": "代码内容",
|
|
384
|
+
"default": "\"\"",
|
|
533
385
|
"type": "string"
|
|
534
386
|
},
|
|
535
387
|
{
|
|
536
|
-
"name": "
|
|
537
|
-
"description": "
|
|
388
|
+
"name": "language",
|
|
389
|
+
"description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
|
|
538
390
|
"type": "string"
|
|
539
391
|
},
|
|
540
392
|
{
|
|
541
|
-
"name": "
|
|
542
|
-
"description": "
|
|
543
|
-
"
|
|
544
|
-
"type": "\"datetime\" | \"date\""
|
|
393
|
+
"name": "hideLineNumber",
|
|
394
|
+
"description": "是否隐藏行号",
|
|
395
|
+
"type": "boolean"
|
|
545
396
|
},
|
|
546
397
|
{
|
|
547
|
-
"name": "
|
|
548
|
-
"description": "
|
|
549
|
-
"type": "
|
|
398
|
+
"name": "maxLines",
|
|
399
|
+
"description": "最大行数",
|
|
400
|
+
"type": "number"
|
|
550
401
|
},
|
|
551
402
|
{
|
|
552
|
-
"name": "
|
|
553
|
-
"description": "
|
|
554
|
-
"
|
|
555
|
-
"attribute": false,
|
|
556
|
-
"type": "HumanizeTimeFormat"
|
|
403
|
+
"name": "minLines",
|
|
404
|
+
"description": "最小行数",
|
|
405
|
+
"type": "number"
|
|
557
406
|
},
|
|
558
407
|
{
|
|
559
|
-
"name": "
|
|
560
|
-
"description": "
|
|
561
|
-
"
|
|
408
|
+
"name": "showCopyButton",
|
|
409
|
+
"description": "是否显示复制按钮",
|
|
410
|
+
"default": "true",
|
|
562
411
|
"type": "boolean"
|
|
563
412
|
},
|
|
564
413
|
{
|
|
565
|
-
"name": "
|
|
566
|
-
"description": "
|
|
414
|
+
"name": "showExportButton",
|
|
415
|
+
"description": "是否显示导出按钮",
|
|
567
416
|
"type": "boolean"
|
|
568
417
|
},
|
|
569
418
|
{
|
|
570
|
-
"name": "
|
|
571
|
-
"description": "
|
|
572
|
-
"
|
|
573
|
-
"type": "
|
|
419
|
+
"name": "exportFileName",
|
|
420
|
+
"description": "导出的文件名",
|
|
421
|
+
"default": "download.txt",
|
|
422
|
+
"type": "string"
|
|
574
423
|
}
|
|
575
424
|
],
|
|
576
425
|
"events": [],
|
|
577
426
|
"slots": [],
|
|
578
427
|
"methods": [],
|
|
579
428
|
"parts": [],
|
|
580
|
-
"description": "
|
|
429
|
+
"description": "代码展示",
|
|
430
|
+
"category": "display-component"
|
|
581
431
|
},
|
|
582
432
|
{
|
|
583
|
-
"name": "eo-
|
|
433
|
+
"name": "eo-info-card-item",
|
|
584
434
|
"properties": [
|
|
585
435
|
{
|
|
586
436
|
"name": "cardTitle",
|
|
587
|
-
"description": "
|
|
437
|
+
"description": "title",
|
|
588
438
|
"type": "string"
|
|
589
439
|
},
|
|
590
440
|
{
|
|
591
|
-
"name": "
|
|
592
|
-
"description": "
|
|
441
|
+
"name": "description",
|
|
442
|
+
"description": "description",
|
|
593
443
|
"type": "string"
|
|
594
444
|
},
|
|
595
445
|
{
|
|
596
|
-
"name": "
|
|
597
|
-
"description": "
|
|
446
|
+
"name": "url",
|
|
447
|
+
"description": "链接地址",
|
|
598
448
|
"type": "string"
|
|
599
449
|
},
|
|
600
450
|
{
|
|
601
|
-
"name": "
|
|
451
|
+
"name": "cardIcon",
|
|
602
452
|
"description": "图标",
|
|
603
453
|
"attribute": false,
|
|
604
|
-
"type": "
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
"name": "size",
|
|
608
|
-
"description": "尺寸",
|
|
609
|
-
"default": "\"medium\"",
|
|
610
|
-
"type": "\"large\" | \"medium\" | \"small\""
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
"name": "outline",
|
|
614
|
-
"description": "卡片轮廓",
|
|
615
|
-
"default": "\"border\"",
|
|
616
|
-
"type": "\"border\" | \"background\" | \"none\""
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
"name": "background",
|
|
620
|
-
"description": "背景",
|
|
621
|
-
"type": "string"
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
"name": "descriptionPosition",
|
|
625
|
-
"description": "描述位置",
|
|
626
|
-
"default": "\"bottom\"",
|
|
627
|
-
"type": "\"bottom\" | \"right\""
|
|
454
|
+
"type": "IconAvatar"
|
|
628
455
|
},
|
|
629
456
|
{
|
|
630
|
-
"name": "
|
|
631
|
-
"description": "
|
|
457
|
+
"name": "detailList",
|
|
458
|
+
"description": "详细列表",
|
|
632
459
|
"attribute": false,
|
|
633
|
-
"type": "
|
|
460
|
+
"type": "InfoCardDetail[]"
|
|
634
461
|
},
|
|
635
462
|
{
|
|
636
|
-
"name": "
|
|
637
|
-
"description": "
|
|
638
|
-
"type": "
|
|
463
|
+
"name": "target",
|
|
464
|
+
"description": "链接跳转目标",
|
|
465
|
+
"type": "LinkProps[\"target\"]"
|
|
639
466
|
}
|
|
640
467
|
],
|
|
641
468
|
"events": [],
|
|
642
|
-
"slots": [
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
469
|
+
"slots": [],
|
|
470
|
+
"methods": [],
|
|
471
|
+
"parts": [],
|
|
472
|
+
"description": "信息卡片",
|
|
473
|
+
"category": "card-info"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "eo-divider",
|
|
477
|
+
"properties": [
|
|
647
478
|
{
|
|
648
|
-
"name": "
|
|
649
|
-
"description": "
|
|
479
|
+
"name": "orientation",
|
|
480
|
+
"description": "标题位置,在horizontal类型的分割线中使用",
|
|
481
|
+
"default": "center",
|
|
482
|
+
"attribute": false,
|
|
483
|
+
"type": "OrientationType"
|
|
650
484
|
},
|
|
651
485
|
{
|
|
652
|
-
"name": "
|
|
653
|
-
"description": "
|
|
486
|
+
"name": "dashed",
|
|
487
|
+
"description": "是否虚线",
|
|
488
|
+
"default": "false",
|
|
489
|
+
"type": "boolean"
|
|
654
490
|
},
|
|
655
491
|
{
|
|
656
|
-
"name": "
|
|
657
|
-
"description": "
|
|
492
|
+
"name": "type",
|
|
493
|
+
"description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
|
|
494
|
+
"default": "\"horizontal\"",
|
|
495
|
+
"type": "dividerType"
|
|
658
496
|
},
|
|
659
497
|
{
|
|
660
|
-
"name": "
|
|
661
|
-
"description": "
|
|
498
|
+
"name": "proportion",
|
|
499
|
+
"description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
|
|
500
|
+
"attribute": false,
|
|
501
|
+
"type": "[number, number]"
|
|
662
502
|
},
|
|
663
503
|
{
|
|
664
|
-
"name": "
|
|
665
|
-
"description": "
|
|
504
|
+
"name": "dividerStyle",
|
|
505
|
+
"description": "分割线自定义样式",
|
|
506
|
+
"attribute": false,
|
|
507
|
+
"type": "CSSProperties"
|
|
666
508
|
}
|
|
667
509
|
],
|
|
510
|
+
"events": [],
|
|
511
|
+
"slots": [],
|
|
668
512
|
"methods": [],
|
|
669
513
|
"parts": [],
|
|
670
|
-
"description": "
|
|
514
|
+
"description": "分割线",
|
|
515
|
+
"category": "container-display"
|
|
671
516
|
},
|
|
672
517
|
{
|
|
673
518
|
"name": "eo-loading-step",
|
|
@@ -884,6 +729,161 @@
|
|
|
884
729
|
}
|
|
885
730
|
],
|
|
886
731
|
"description": "构件 `presentational.code-wrapper`"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"name": "eo-statistics-card",
|
|
735
|
+
"properties": [
|
|
736
|
+
{
|
|
737
|
+
"name": "cardTitle",
|
|
738
|
+
"description": "卡片标题",
|
|
739
|
+
"type": "string"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "value",
|
|
743
|
+
"description": "值",
|
|
744
|
+
"type": "string"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"name": "unit",
|
|
748
|
+
"description": "单位",
|
|
749
|
+
"type": "string"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "icon",
|
|
753
|
+
"description": "图标",
|
|
754
|
+
"attribute": false,
|
|
755
|
+
"type": "EoStatisticsCardProps[\"icon\"]"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
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": "背景",
|
|
772
|
+
"type": "string"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"name": "descriptionPosition",
|
|
776
|
+
"description": "描述位置",
|
|
777
|
+
"default": "\"bottom\"",
|
|
778
|
+
"type": "\"bottom\" | \"right\""
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"name": "valueStyle",
|
|
782
|
+
"description": "值样式",
|
|
783
|
+
"attribute": false,
|
|
784
|
+
"type": "React.CSSProperties"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "interactable",
|
|
788
|
+
"description": "是否可互动",
|
|
789
|
+
"type": "boolean"
|
|
790
|
+
}
|
|
791
|
+
],
|
|
792
|
+
"events": [],
|
|
793
|
+
"slots": [
|
|
794
|
+
{
|
|
795
|
+
"name": "titlePrefix",
|
|
796
|
+
"description": "标题前缀,放置辅助信息"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
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": "右上角操作区"
|
|
817
|
+
}
|
|
818
|
+
],
|
|
819
|
+
"methods": [],
|
|
820
|
+
"parts": [],
|
|
821
|
+
"description": "统计卡片"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"name": "eo-humanize-time",
|
|
825
|
+
"alias": [
|
|
826
|
+
"presentational.humanize-time"
|
|
827
|
+
],
|
|
828
|
+
"properties": [
|
|
829
|
+
{
|
|
830
|
+
"name": "value",
|
|
831
|
+
"description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
|
|
832
|
+
"required": true,
|
|
833
|
+
"attribute": false,
|
|
834
|
+
"type": "number | string"
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"name": "inputFormat",
|
|
838
|
+
"description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
|
|
839
|
+
"type": "string"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "outputFormat",
|
|
843
|
+
"description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
|
|
844
|
+
"type": "string"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"name": "type",
|
|
848
|
+
"description": "使用日期+时间格式输出还是仅日期。",
|
|
849
|
+
"default": "\"datetime\"",
|
|
850
|
+
"type": "\"datetime\" | \"date\""
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"name": "isCostTime",
|
|
854
|
+
"description": "是否展示为耗费时间,例如:'1 个月 20 天'",
|
|
855
|
+
"type": "boolean"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"name": "formatter",
|
|
859
|
+
"description": "格式类型",
|
|
860
|
+
"default": "\"default\"",
|
|
861
|
+
"attribute": false,
|
|
862
|
+
"type": "HumanizeTimeFormat"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"name": "isMicrosecond",
|
|
866
|
+
"description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
|
|
867
|
+
"deprecated": "请使用 `isMillisecond`",
|
|
868
|
+
"type": "boolean"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"name": "isMillisecond",
|
|
872
|
+
"description": "value 值的单位是否为毫秒",
|
|
873
|
+
"type": "boolean"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"name": "link",
|
|
877
|
+
"description": "跳转链接,默认为空",
|
|
878
|
+
"attribute": false,
|
|
879
|
+
"type": "LinkInfo"
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"events": [],
|
|
883
|
+
"slots": [],
|
|
884
|
+
"methods": [],
|
|
885
|
+
"parts": [],
|
|
886
|
+
"description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
|
|
887
887
|
}
|
|
888
888
|
],
|
|
889
889
|
"providers": []
|