@next-bricks/presentational 1.21.2 → 1.21.3

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.
Files changed (75) hide show
  1. package/dist/bricks.json +27 -27
  2. package/dist/chunks/5045.f4ea41c0.js +2 -0
  3. package/dist/chunks/5045.f4ea41c0.js.map +1 -0
  4. package/dist/chunks/code-wrapper.77e0170b.js +3 -0
  5. package/dist/chunks/code-wrapper.77e0170b.js.map +1 -0
  6. package/dist/chunks/eo-alert.c14c8f19.js +3 -0
  7. package/dist/chunks/eo-alert.c14c8f19.js.map +1 -0
  8. package/dist/chunks/{eo-card-item.da90013a.js → eo-card-item.36ab13b5.js} +3 -3
  9. package/dist/chunks/eo-card-item.36ab13b5.js.map +1 -0
  10. package/dist/chunks/eo-carousel-text.d8e8c2c9.js +2 -0
  11. package/dist/chunks/eo-carousel-text.d8e8c2c9.js.map +1 -0
  12. package/dist/chunks/eo-code-block.e5181263.js +2 -0
  13. package/dist/chunks/eo-code-block.e5181263.js.map +1 -0
  14. package/dist/chunks/eo-code-display.9461ddfa.js +2 -0
  15. package/dist/chunks/eo-code-display.9461ddfa.js.map +1 -0
  16. package/dist/chunks/eo-current-time.7cbef918.js +2 -0
  17. package/dist/chunks/eo-current-time.7cbef918.js.map +1 -0
  18. package/dist/chunks/{eo-descriptions.75677ae9.js → eo-descriptions.97f8cc6d.js} +3 -3
  19. package/dist/chunks/eo-descriptions.97f8cc6d.js.map +1 -0
  20. package/dist/chunks/eo-divider.7ce5e32d.js +3 -0
  21. package/dist/chunks/eo-divider.7ce5e32d.js.map +1 -0
  22. package/dist/chunks/eo-humanize-time.ae5c3e39.js +2 -0
  23. package/dist/chunks/eo-humanize-time.ae5c3e39.js.map +1 -0
  24. package/dist/chunks/eo-info-card-item.72a67cb7.js +3 -0
  25. package/dist/chunks/eo-info-card-item.72a67cb7.js.map +1 -0
  26. package/dist/chunks/{eo-loading-step.604d6e34.js → eo-loading-step.f811674a.js} +3 -3
  27. package/dist/chunks/{eo-loading-step.604d6e34.js.map → eo-loading-step.f811674a.js.map} +1 -1
  28. package/dist/chunks/eo-pagination.341f9fcc.js +3 -0
  29. package/dist/chunks/eo-pagination.341f9fcc.js.map +1 -0
  30. package/dist/chunks/eo-statistics-card.410b5416.js +2 -0
  31. package/dist/chunks/eo-statistics-card.410b5416.js.map +1 -0
  32. package/dist/chunks/{main.47fe281a.js → main.ab545775.js} +2 -2
  33. package/dist/chunks/{main.47fe281a.js.map → main.ab545775.js.map} +1 -1
  34. package/dist/examples.json +12 -12
  35. package/dist/index.1a516607.js +2 -0
  36. package/dist/index.1a516607.js.map +1 -0
  37. package/dist/manifest.json +267 -267
  38. package/dist/types.json +611 -611
  39. package/package.json +3 -3
  40. package/dist/chunks/3900.1314ea23.js +0 -2
  41. package/dist/chunks/3900.1314ea23.js.map +0 -1
  42. package/dist/chunks/code-wrapper.be0d1487.js +0 -3
  43. package/dist/chunks/code-wrapper.be0d1487.js.map +0 -1
  44. package/dist/chunks/eo-alert.625d5099.js +0 -3
  45. package/dist/chunks/eo-alert.625d5099.js.map +0 -1
  46. package/dist/chunks/eo-card-item.da90013a.js.map +0 -1
  47. package/dist/chunks/eo-carousel-text.8188b7b7.js +0 -2
  48. package/dist/chunks/eo-carousel-text.8188b7b7.js.map +0 -1
  49. package/dist/chunks/eo-code-block.f5ffef62.js +0 -2
  50. package/dist/chunks/eo-code-block.f5ffef62.js.map +0 -1
  51. package/dist/chunks/eo-code-display.c457657a.js +0 -2
  52. package/dist/chunks/eo-code-display.c457657a.js.map +0 -1
  53. package/dist/chunks/eo-current-time.c203517c.js +0 -2
  54. package/dist/chunks/eo-current-time.c203517c.js.map +0 -1
  55. package/dist/chunks/eo-descriptions.75677ae9.js.map +0 -1
  56. package/dist/chunks/eo-divider.7273176b.js +0 -3
  57. package/dist/chunks/eo-divider.7273176b.js.map +0 -1
  58. package/dist/chunks/eo-humanize-time.42af69a7.js +0 -2
  59. package/dist/chunks/eo-humanize-time.42af69a7.js.map +0 -1
  60. package/dist/chunks/eo-info-card-item.554cba4f.js +0 -3
  61. package/dist/chunks/eo-info-card-item.554cba4f.js.map +0 -1
  62. package/dist/chunks/eo-pagination.8f5dcfce.js +0 -3
  63. package/dist/chunks/eo-pagination.8f5dcfce.js.map +0 -1
  64. package/dist/chunks/eo-statistics-card.3ef146cb.js +0 -2
  65. package/dist/chunks/eo-statistics-card.3ef146cb.js.map +0 -1
  66. package/dist/index.6e8a0692.js +0 -2
  67. package/dist/index.6e8a0692.js.map +0 -1
  68. /package/dist/chunks/{code-wrapper.be0d1487.js.LICENSE.txt → code-wrapper.77e0170b.js.LICENSE.txt} +0 -0
  69. /package/dist/chunks/{eo-alert.625d5099.js.LICENSE.txt → eo-alert.c14c8f19.js.LICENSE.txt} +0 -0
  70. /package/dist/chunks/{eo-card-item.da90013a.js.LICENSE.txt → eo-card-item.36ab13b5.js.LICENSE.txt} +0 -0
  71. /package/dist/chunks/{eo-descriptions.75677ae9.js.LICENSE.txt → eo-descriptions.97f8cc6d.js.LICENSE.txt} +0 -0
  72. /package/dist/chunks/{eo-divider.7273176b.js.LICENSE.txt → eo-divider.7ce5e32d.js.LICENSE.txt} +0 -0
  73. /package/dist/chunks/{eo-info-card-item.554cba4f.js.LICENSE.txt → eo-info-card-item.72a67cb7.js.LICENSE.txt} +0 -0
  74. /package/dist/chunks/{eo-loading-step.604d6e34.js.LICENSE.txt → eo-loading-step.f811674a.js.LICENSE.txt} +0 -0
  75. /package/dist/chunks/{eo-pagination.8f5dcfce.js.LICENSE.txt → eo-pagination.341f9fcc.js.LICENSE.txt} +0 -0
@@ -133,6 +133,127 @@
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
+ },
136
257
  {
137
258
  "name": "eo-card-item",
138
259
  "properties": [
@@ -309,210 +430,244 @@
309
430
  "category": "card-info"
310
431
  },
311
432
  {
312
- "name": "eo-pagination",
433
+ "name": "eo-divider",
313
434
  "properties": [
314
435
  {
315
- "name": "type",
316
- "description": "",
317
- "default": "\"page\"",
318
- "type": "\"page\" | \"token\""
436
+ "name": "orientation",
437
+ "description": "标题位置,在horizontal类型的分割线中使用",
438
+ "default": "center",
439
+ "attribute": false,
440
+ "type": "OrientationType"
319
441
  },
320
442
  {
321
- "name": "total",
322
- "description": "数据总数",
323
- "default": "0",
324
- "type": "number"
443
+ "name": "dashed",
444
+ "description": "是否虚线",
445
+ "default": "false",
446
+ "type": "boolean"
325
447
  },
326
448
  {
327
- "name": "page",
328
- "description": "当前页数",
329
- "default": "1",
330
- "type": "number"
449
+ "name": "type",
450
+ "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
451
+ "default": "\"horizontal\"",
452
+ "type": "dividerType"
331
453
  },
332
454
  {
333
- "name": "pageSize",
334
- "description": "每页条数",
335
- "default": "20",
336
- "type": "number"
455
+ "name": "proportion",
456
+ "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
457
+ "attribute": false,
458
+ "type": "[number, number]"
337
459
  },
338
460
  {
339
- "name": "pageSizeOptions",
340
- "description": "指定每页可以显示多少条",
341
- "default": "[10, 20, 50, 100]",
461
+ "name": "dividerStyle",
462
+ "description": "分割线自定义样式",
342
463
  "attribute": false,
343
- "type": "number[]"
344
- },
464
+ "type": "CSSProperties"
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": [
345
477
  {
346
- "name": "showSizeChanger",
347
- "description": "是否展示`pageSize`分页器",
348
- "default": "true",
349
- "type": "boolean"
478
+ "name": "cardTitle",
479
+ "description": "title",
480
+ "type": "string"
350
481
  },
351
482
  {
352
- "name": "nextToken",
483
+ "name": "description",
484
+ "description": "description",
353
485
  "type": "string"
354
486
  },
355
487
  {
356
- "name": "previousToken",
488
+ "name": "url",
489
+ "description": "链接地址",
357
490
  "type": "string"
358
- }
359
- ],
360
- "events": [
491
+ },
361
492
  {
362
- "name": "change",
363
- "description": "页码及每页条数改变事件",
364
- "detail": {
365
- "type": "ChangeDetail"
366
- }
493
+ "name": "cardIcon",
494
+ "description": "图标",
495
+ "attribute": false,
496
+ "type": "IconAvatar"
497
+ },
498
+ {
499
+ "name": "detailList",
500
+ "description": "详细列表",
501
+ "attribute": false,
502
+ "type": "InfoCardDetail[]"
503
+ },
504
+ {
505
+ "name": "target",
506
+ "description": "链接跳转目标",
507
+ "type": "LinkProps[\"target\"]"
367
508
  }
368
509
  ],
510
+ "events": [],
369
511
  "slots": [],
370
512
  "methods": [],
371
513
  "parts": [],
372
- "description": "分页",
373
- "category": "navigation"
514
+ "description": "信息卡片",
515
+ "category": "card-info"
374
516
  },
375
517
  {
376
- "name": "eo-code-display",
518
+ "name": "eo-humanize-time",
377
519
  "alias": [
378
- "presentational.code-display"
520
+ "presentational.humanize-time"
379
521
  ],
380
522
  "properties": [
381
523
  {
382
524
  "name": "value",
383
- "description": "代码内容",
384
- "default": "\"\"",
525
+ "description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
526
+ "required": true,
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)",
385
533
  "type": "string"
386
534
  },
387
535
  {
388
- "name": "language",
389
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
536
+ "name": "outputFormat",
537
+ "description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
390
538
  "type": "string"
391
539
  },
392
540
  {
393
- "name": "hideLineNumber",
394
- "description": "是否隐藏行号",
395
- "type": "boolean"
541
+ "name": "type",
542
+ "description": "使用日期+时间格式输出还是仅日期。",
543
+ "default": "\"datetime\"",
544
+ "type": "\"datetime\" | \"date\""
396
545
  },
397
546
  {
398
- "name": "maxLines",
399
- "description": "最大行数",
400
- "type": "number"
547
+ "name": "isCostTime",
548
+ "description": "是否展示为耗费时间,例如:'1 个月 20 天'",
549
+ "type": "boolean"
401
550
  },
402
551
  {
403
- "name": "minLines",
404
- "description": "最小行数",
405
- "type": "number"
552
+ "name": "formatter",
553
+ "description": "格式类型",
554
+ "default": "\"default\"",
555
+ "attribute": false,
556
+ "type": "HumanizeTimeFormat"
406
557
  },
407
558
  {
408
- "name": "showCopyButton",
409
- "description": "是否显示复制按钮",
410
- "default": "true",
559
+ "name": "isMicrosecond",
560
+ "description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
561
+ "deprecated": "请使用 `isMillisecond`",
411
562
  "type": "boolean"
412
563
  },
413
564
  {
414
- "name": "showExportButton",
415
- "description": "是否显示导出按钮",
565
+ "name": "isMillisecond",
566
+ "description": "value 值的单位是否为毫秒",
416
567
  "type": "boolean"
417
568
  },
418
569
  {
419
- "name": "exportFileName",
420
- "description": "导出的文件名",
421
- "default": "download.txt",
422
- "type": "string"
570
+ "name": "link",
571
+ "description": "跳转链接,默认为空",
572
+ "attribute": false,
573
+ "type": "LinkInfo"
423
574
  }
424
575
  ],
425
576
  "events": [],
426
577
  "slots": [],
427
578
  "methods": [],
428
579
  "parts": [],
429
- "description": "代码展示",
430
- "category": "display-component"
580
+ "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
431
581
  },
432
582
  {
433
- "name": "eo-info-card-item",
583
+ "name": "eo-statistics-card",
434
584
  "properties": [
435
585
  {
436
586
  "name": "cardTitle",
437
- "description": "title",
587
+ "description": "卡片标题",
438
588
  "type": "string"
439
589
  },
440
590
  {
441
- "name": "description",
442
- "description": "description",
591
+ "name": "value",
592
+ "description": "",
443
593
  "type": "string"
444
594
  },
445
595
  {
446
- "name": "url",
447
- "description": "链接地址",
596
+ "name": "unit",
597
+ "description": "单位",
448
598
  "type": "string"
449
599
  },
450
600
  {
451
- "name": "cardIcon",
601
+ "name": "icon",
452
602
  "description": "图标",
453
603
  "attribute": false,
454
- "type": "IconAvatar"
604
+ "type": "EoStatisticsCardProps[\"icon\"]"
455
605
  },
456
606
  {
457
- "name": "detailList",
458
- "description": "详细列表",
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\""
628
+ },
629
+ {
630
+ "name": "valueStyle",
631
+ "description": "值样式",
459
632
  "attribute": false,
460
- "type": "InfoCardDetail[]"
633
+ "type": "React.CSSProperties"
461
634
  },
462
635
  {
463
- "name": "target",
464
- "description": "链接跳转目标",
465
- "type": "LinkProps[\"target\"]"
636
+ "name": "interactable",
637
+ "description": "是否可互动",
638
+ "type": "boolean"
466
639
  }
467
640
  ],
468
641
  "events": [],
469
- "slots": [],
470
- "methods": [],
471
- "parts": [],
472
- "description": "信息卡片",
473
- "category": "card-info"
474
- },
475
- {
476
- "name": "eo-divider",
477
- "properties": [
642
+ "slots": [
478
643
  {
479
- "name": "orientation",
480
- "description": "标题位置,在horizontal类型的分割线中使用",
481
- "default": "center",
482
- "attribute": false,
483
- "type": "OrientationType"
644
+ "name": "titlePrefix",
645
+ "description": "标题前缀,放置辅助信息"
484
646
  },
485
647
  {
486
- "name": "dashed",
487
- "description": "是否虚线",
488
- "default": "false",
489
- "type": "boolean"
648
+ "name": "titleSuffix",
649
+ "description": "标题前缀,放置辅助信息"
490
650
  },
491
651
  {
492
- "name": "type",
493
- "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
494
- "default": "\"horizontal\"",
495
- "type": "dividerType"
652
+ "name": "description",
653
+ "description": "描述信息,通常是对于统计值的描述"
496
654
  },
497
655
  {
498
- "name": "proportion",
499
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
500
- "attribute": false,
501
- "type": "[number, number]"
656
+ "name": "basicContent",
657
+ "description": "卡片右侧内容区,适合放置迷你图表,常用于小卡片"
502
658
  },
503
659
  {
504
- "name": "dividerStyle",
505
- "description": "分割线自定义样式",
506
- "attribute": false,
507
- "type": "CSSProperties"
660
+ "name": "extraContent",
661
+ "description": "卡片下方内容区,适合放置图表,用于展示更多信息的场景"
662
+ },
663
+ {
664
+ "name": "operator",
665
+ "description": "右上角操作区"
508
666
  }
509
667
  ],
510
- "events": [],
511
- "slots": [],
512
668
  "methods": [],
513
669
  "parts": [],
514
- "description": "分割线",
515
- "category": "container-display"
670
+ "description": "统计卡片"
516
671
  },
517
672
  {
518
673
  "name": "eo-loading-step",
@@ -729,161 +884,6 @@
729
884
  }
730
885
  ],
731
886
  "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": []