@next-bricks/presentational 1.16.0 → 1.17.0

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.
@@ -69,6 +69,70 @@
69
69
  "description": "通用描述列表构件",
70
70
  "category": "text"
71
71
  },
72
+ {
73
+ "name": "eo-pagination",
74
+ "properties": [
75
+ {
76
+ "name": "type",
77
+ "description": "",
78
+ "default": "\"page\"",
79
+ "type": "\"page\" | \"token\""
80
+ },
81
+ {
82
+ "name": "total",
83
+ "description": "数据总数",
84
+ "default": "0",
85
+ "type": "number"
86
+ },
87
+ {
88
+ "name": "page",
89
+ "description": "当前页数",
90
+ "default": "1",
91
+ "type": "number"
92
+ },
93
+ {
94
+ "name": "pageSize",
95
+ "description": "每页条数",
96
+ "default": "20",
97
+ "type": "number"
98
+ },
99
+ {
100
+ "name": "pageSizeOptions",
101
+ "description": "指定每页可以显示多少条",
102
+ "default": "[10, 20, 50, 100]",
103
+ "attribute": false,
104
+ "type": "number[]"
105
+ },
106
+ {
107
+ "name": "showSizeChanger",
108
+ "description": "是否展示`pageSize`分页器",
109
+ "default": "true",
110
+ "type": "boolean"
111
+ },
112
+ {
113
+ "name": "nextToken",
114
+ "type": "string"
115
+ },
116
+ {
117
+ "name": "previousToken",
118
+ "type": "string"
119
+ }
120
+ ],
121
+ "events": [
122
+ {
123
+ "name": "change",
124
+ "description": "页码及每页条数改变事件",
125
+ "detail": {
126
+ "type": "ChangeDetail"
127
+ }
128
+ }
129
+ ],
130
+ "slots": [],
131
+ "methods": [],
132
+ "parts": [],
133
+ "description": "分页",
134
+ "category": "navigation"
135
+ },
72
136
  {
73
137
  "name": "eo-card-item",
74
138
  "properties": [
@@ -199,6 +263,13 @@
199
263
  }
200
264
  ],
201
265
  "events": [
266
+ {
267
+ "name": "action.click",
268
+ "description": "操作按钮点击事件",
269
+ "detail": {
270
+ "type": "SimpleActionType"
271
+ }
272
+ },
202
273
  {
203
274
  "name": "tag.click",
204
275
  "description": "徽标点击事件",
@@ -371,68 +442,69 @@
371
442
  "category": "card-info"
372
443
  },
373
444
  {
374
- "name": "eo-pagination",
445
+ "name": "eo-humanize-time",
446
+ "alias": [
447
+ "presentational.humanize-time"
448
+ ],
375
449
  "properties": [
376
450
  {
377
- "name": "type",
378
- "description": "",
379
- "default": "\"page\"",
380
- "type": "\"page\" | \"token\""
451
+ "name": "value",
452
+ "description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
453
+ "required": true,
454
+ "attribute": false,
455
+ "type": "number | string"
381
456
  },
382
457
  {
383
- "name": "total",
384
- "description": "数据总数",
385
- "default": "0",
386
- "type": "number"
458
+ "name": "inputFormat",
459
+ "description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
460
+ "type": "string"
387
461
  },
388
462
  {
389
- "name": "page",
390
- "description": "当前页数",
391
- "default": "1",
392
- "type": "number"
463
+ "name": "outputFormat",
464
+ "description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
465
+ "type": "string"
393
466
  },
394
467
  {
395
- "name": "pageSize",
396
- "description": "每页条数",
397
- "default": "20",
398
- "type": "number"
468
+ "name": "type",
469
+ "description": "使用日期+时间格式输出还是仅日期。",
470
+ "default": "\"datetime\"",
471
+ "type": "\"datetime\" | \"date\""
399
472
  },
400
473
  {
401
- "name": "pageSizeOptions",
402
- "description": "指定每页可以显示多少条",
403
- "default": "[10, 20, 50, 100]",
474
+ "name": "isCostTime",
475
+ "description": "是否展示为耗费时间,例如:'1 个月 20 天'",
476
+ "type": "boolean"
477
+ },
478
+ {
479
+ "name": "formatter",
480
+ "description": "格式类型",
481
+ "default": "\"default\"",
404
482
  "attribute": false,
405
- "type": "number[]"
483
+ "type": "HumanizeTimeFormat"
406
484
  },
407
485
  {
408
- "name": "showSizeChanger",
409
- "description": "是否展示`pageSize`分页器",
410
- "default": "true",
486
+ "name": "isMicrosecond",
487
+ "description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
488
+ "deprecated": "请使用 `isMillisecond`",
411
489
  "type": "boolean"
412
490
  },
413
491
  {
414
- "name": "nextToken",
415
- "type": "string"
492
+ "name": "isMillisecond",
493
+ "description": "value 值的单位是否为毫秒",
494
+ "type": "boolean"
416
495
  },
417
496
  {
418
- "name": "previousToken",
419
- "type": "string"
420
- }
421
- ],
422
- "events": [
423
- {
424
- "name": "change",
425
- "description": "页码及每页条数改变事件",
426
- "detail": {
427
- "type": "ChangeDetail"
428
- }
497
+ "name": "link",
498
+ "description": "跳转链接,默认为空",
499
+ "attribute": false,
500
+ "type": "LinkInfo"
429
501
  }
430
502
  ],
503
+ "events": [],
431
504
  "slots": [],
432
505
  "methods": [],
433
506
  "parts": [],
434
- "description": "分页",
435
- "category": "navigation"
507
+ "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
436
508
  },
437
509
  {
438
510
  "name": "eo-statistics-card",
@@ -524,6 +596,28 @@
524
596
  "parts": [],
525
597
  "description": "统计卡片"
526
598
  },
599
+ {
600
+ "name": "eo-current-time",
601
+ "properties": [
602
+ {
603
+ "name": "format",
604
+ "description": "时间格式",
605
+ "default": "\"YYYY-MM-DD HH:mm:ss\"",
606
+ "type": "string"
607
+ },
608
+ {
609
+ "name": "icon",
610
+ "description": "前置图标",
611
+ "attribute": false,
612
+ "type": "GeneralIconProps"
613
+ }
614
+ ],
615
+ "events": [],
616
+ "slots": [],
617
+ "methods": [],
618
+ "parts": [],
619
+ "description": "构件 `eo-current-time`"
620
+ },
527
621
  {
528
622
  "name": "eo-loading-step",
529
623
  "properties": [
@@ -589,91 +683,61 @@
589
683
  "description": "加载步骤框"
590
684
  },
591
685
  {
592
- "name": "eo-humanize-time",
686
+ "name": "eo-code-display",
593
687
  "alias": [
594
- "presentational.humanize-time"
688
+ "presentational.code-display"
595
689
  ],
596
690
  "properties": [
597
691
  {
598
692
  "name": "value",
599
- "description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
600
- "required": true,
601
- "attribute": false,
602
- "type": "number | string"
603
- },
604
- {
605
- "name": "inputFormat",
606
- "description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://day.js.org/docs/en/parse/string-format)",
693
+ "description": "代码内容",
694
+ "default": "\"\"",
607
695
  "type": "string"
608
696
  },
609
697
  {
610
- "name": "outputFormat",
611
- "description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://day.js.org/docs/en/display/format)",
698
+ "name": "language",
699
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
612
700
  "type": "string"
613
701
  },
614
702
  {
615
- "name": "type",
616
- "description": "使用日期+时间格式输出还是仅日期。",
617
- "default": "\"datetime\"",
618
- "type": "\"datetime\" | \"date\""
703
+ "name": "hideLineNumber",
704
+ "description": "是否隐藏行号",
705
+ "type": "boolean"
619
706
  },
620
707
  {
621
- "name": "isCostTime",
622
- "description": "是否展示为耗费时间,例如:'1 个月 20 天'",
623
- "type": "boolean"
708
+ "name": "maxLines",
709
+ "description": "最大行数",
710
+ "type": "number"
624
711
  },
625
712
  {
626
- "name": "formatter",
627
- "description": "格式类型",
628
- "default": "\"default\"",
629
- "attribute": false,
630
- "type": "HumanizeTimeFormat"
713
+ "name": "minLines",
714
+ "description": "最小行数",
715
+ "type": "number"
631
716
  },
632
717
  {
633
- "name": "isMicrosecond",
634
- "description": "value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)",
635
- "deprecated": "请使用 `isMillisecond`",
718
+ "name": "showCopyButton",
719
+ "description": "是否显示复制按钮",
720
+ "default": "true",
636
721
  "type": "boolean"
637
722
  },
638
723
  {
639
- "name": "isMillisecond",
640
- "description": "value 值的单位是否为毫秒",
724
+ "name": "showExportButton",
725
+ "description": "是否显示导出按钮",
641
726
  "type": "boolean"
642
727
  },
643
728
  {
644
- "name": "link",
645
- "description": "跳转链接,默认为空",
646
- "attribute": false,
647
- "type": "LinkInfo"
648
- }
649
- ],
650
- "events": [],
651
- "slots": [],
652
- "methods": [],
653
- "parts": [],
654
- "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
655
- },
656
- {
657
- "name": "eo-current-time",
658
- "properties": [
659
- {
660
- "name": "format",
661
- "description": "时间格式",
662
- "default": "\"YYYY-MM-DD HH:mm:ss\"",
729
+ "name": "exportFileName",
730
+ "description": "导出的文件名",
731
+ "default": "download.txt",
663
732
  "type": "string"
664
- },
665
- {
666
- "name": "icon",
667
- "description": "前置图标",
668
- "attribute": false,
669
- "type": "GeneralIconProps"
670
733
  }
671
734
  ],
672
735
  "events": [],
673
736
  "slots": [],
674
737
  "methods": [],
675
738
  "parts": [],
676
- "description": "构件 `eo-current-time`"
739
+ "description": "代码展示",
740
+ "category": "display-component"
677
741
  },
678
742
  {
679
743
  "name": "eo-carousel-text",
@@ -714,63 +778,6 @@
714
778
  "methods": [],
715
779
  "parts": [],
716
780
  "description": "构件 `eo-carousel-text`"
717
- },
718
- {
719
- "name": "eo-code-display",
720
- "alias": [
721
- "presentational.code-display"
722
- ],
723
- "properties": [
724
- {
725
- "name": "value",
726
- "description": "代码内容",
727
- "default": "\"\"",
728
- "type": "string"
729
- },
730
- {
731
- "name": "language",
732
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
733
- "type": "string"
734
- },
735
- {
736
- "name": "hideLineNumber",
737
- "description": "是否隐藏行号",
738
- "type": "boolean"
739
- },
740
- {
741
- "name": "maxLines",
742
- "description": "最大行数",
743
- "type": "number"
744
- },
745
- {
746
- "name": "minLines",
747
- "description": "最小行数",
748
- "type": "number"
749
- },
750
- {
751
- "name": "showCopyButton",
752
- "description": "是否显示复制按钮",
753
- "default": "true",
754
- "type": "boolean"
755
- },
756
- {
757
- "name": "showExportButton",
758
- "description": "是否显示导出按钮",
759
- "type": "boolean"
760
- },
761
- {
762
- "name": "exportFileName",
763
- "description": "导出的文件名",
764
- "default": "download.txt",
765
- "type": "string"
766
- }
767
- ],
768
- "events": [],
769
- "slots": [],
770
- "methods": [],
771
- "parts": [],
772
- "description": "代码展示",
773
- "category": "display-component"
774
781
  }
775
782
  ],
776
783
  "providers": []