@next-bricks/presentational 1.21.9 → 1.21.11
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 +1 -1
- package/dist/chunks/1614.5ce43617.js +2 -0
- package/dist/chunks/1614.5ce43617.js.map +1 -0
- package/dist/chunks/{1889.4559a6f7.js → 1889.01e1c38a.js} +2 -2
- package/dist/chunks/{1889.4559a6f7.js.map → 1889.01e1c38a.js.map} +1 -1
- package/dist/chunks/3171.7708784b.js +2 -0
- package/dist/chunks/3171.7708784b.js.map +1 -0
- package/dist/chunks/5399.2ab60504.js +2 -0
- package/dist/chunks/5399.2ab60504.js.map +1 -0
- package/dist/chunks/5552.f77213dd.js +2 -0
- package/dist/chunks/5552.f77213dd.js.map +1 -0
- package/dist/chunks/7116.05a51bac.js +2 -0
- package/dist/chunks/7116.05a51bac.js.map +1 -0
- package/dist/chunks/7455.0f5298ce.js +3 -0
- package/dist/chunks/7455.0f5298ce.js.LICENSE.txt +11 -0
- package/dist/chunks/7455.0f5298ce.js.map +1 -0
- package/dist/chunks/948.b8effe9f.js +3 -0
- package/dist/chunks/948.b8effe9f.js.map +1 -0
- package/dist/chunks/code-wrapper.40655769.js.map +1 -1
- package/dist/chunks/{eo-card-item.fbff6f7e.js → eo-card-item.f56c41e5.js} +3 -3
- package/dist/chunks/eo-card-item.f56c41e5.js.map +1 -0
- package/dist/chunks/eo-carousel-text.d8e8c2c9.js.map +1 -1
- package/dist/chunks/{eo-code-block.7efe5647.js → eo-code-block.a7162247.js} +2 -2
- package/dist/chunks/eo-code-block.a7162247.js.map +1 -0
- package/dist/chunks/eo-code-display.ffd79558.js.map +1 -1
- package/dist/chunks/eo-current-time.7cbef918.js.map +1 -1
- package/dist/chunks/{eo-descriptions.b8320ca9.js → eo-descriptions.1ab98c43.js} +3 -3
- package/dist/chunks/{eo-descriptions.b8320ca9.js.map → eo-descriptions.1ab98c43.js.map} +1 -1
- package/dist/chunks/eo-humanize-time.2397ce6e.js.map +1 -1
- package/dist/chunks/{eo-info-card-item.0d15cb28.js → eo-info-card-item.e6403b4d.js} +3 -3
- package/dist/chunks/eo-info-card-item.e6403b4d.js.map +1 -0
- package/dist/chunks/{eo-loading-step.834e0aa3.js → eo-loading-step.259d7985.js} +3 -3
- package/dist/chunks/{eo-loading-step.834e0aa3.js.map → eo-loading-step.259d7985.js.map} +1 -1
- package/dist/chunks/eo-pagination.16fd816a.js.map +1 -1
- package/dist/chunks/eo-statistics-card.410b5416.js.map +1 -1
- package/dist/chunks/{main.7a4b0b01.js → main.519bfa38.js} +2 -2
- package/dist/chunks/main.519bfa38.js.map +1 -0
- package/dist/examples.json +13 -13
- package/dist/{index.db5144bf.js → index.71ea98e1.js} +2 -2
- package/dist/index.71ea98e1.js.map +1 -0
- package/dist/manifest.json +49 -39
- package/dist/types.json +2 -2
- package/dist-types/card-item/index.d.ts +8 -4
- package/dist-types/carousel-text/index.d.ts +1 -1
- package/dist-types/code-block/index.d.ts +12 -3
- package/dist-types/code-display/index.d.ts +0 -1
- package/dist-types/code-wrapper/index.d.ts +7 -2
- package/dist-types/current-time/index.d.ts +1 -1
- package/dist-types/descriptions/index.d.ts +4 -3
- package/dist-types/humanize-time/index.d.ts +8 -8
- package/dist-types/info-card-item/index.d.ts +10 -9
- package/dist-types/loading-step/index.d.ts +8 -8
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/statistics-card/index.d.ts +2 -2
- package/docs/eo-alert.md +65 -1
- package/docs/eo-alert.react.md +127 -0
- package/docs/eo-card-item.md +179 -210
- package/docs/eo-card-item.react.md +578 -0
- package/docs/eo-carousel-text.md +49 -2
- package/docs/eo-carousel-text.react.md +62 -0
- package/docs/eo-code-block.md +135 -4
- package/docs/eo-code-block.react.md +146 -0
- package/docs/eo-code-display.md +97 -1
- package/docs/eo-code-display.react.md +116 -0
- package/docs/eo-code-wrapper.md +108 -0
- package/docs/eo-code-wrapper.react.md +100 -0
- package/docs/eo-current-time.md +40 -1
- package/docs/eo-current-time.react.md +53 -0
- package/docs/eo-descriptions.md +74 -4
- package/docs/eo-descriptions.react.md +329 -0
- package/docs/eo-divider.md +105 -17
- package/docs/eo-divider.react.md +129 -0
- package/docs/eo-humanize-time.md +89 -42
- package/docs/eo-humanize-time.react.md +109 -0
- package/docs/eo-info-card-item.md +129 -183
- package/docs/eo-info-card-item.react.md +188 -0
- package/docs/eo-loading-step.md +96 -1
- package/docs/eo-loading-step.react.md +102 -0
- package/docs/eo-pagination.md +74 -1
- package/docs/eo-pagination.react.md +93 -0
- package/docs/eo-statistics-card.md +175 -456
- package/docs/eo-statistics-card.react.md +376 -0
- package/package.json +2 -2
- package/dist/chunks/3171.3bb3ff80.js +0 -2
- package/dist/chunks/3171.3bb3ff80.js.map +0 -1
- package/dist/chunks/4837.3ae6253e.js +0 -2
- package/dist/chunks/4837.3ae6253e.js.map +0 -1
- package/dist/chunks/5045.b0f85f6b.js +0 -2
- package/dist/chunks/5045.b0f85f6b.js.map +0 -1
- package/dist/chunks/5399.23640b2d.js +0 -2
- package/dist/chunks/5399.23640b2d.js.map +0 -1
- package/dist/chunks/5552.5d29c532.js +0 -2
- package/dist/chunks/5552.5d29c532.js.map +0 -1
- package/dist/chunks/7218.4acefe69.js +0 -2
- package/dist/chunks/7218.4acefe69.js.map +0 -1
- package/dist/chunks/948.817a1ef0.js +0 -3
- package/dist/chunks/948.817a1ef0.js.map +0 -1
- package/dist/chunks/eo-card-item.fbff6f7e.js.map +0 -1
- package/dist/chunks/eo-code-block.7efe5647.js.map +0 -1
- package/dist/chunks/eo-info-card-item.0d15cb28.js.map +0 -1
- package/dist/chunks/main.7a4b0b01.js.map +0 -1
- package/dist/index.db5144bf.js.map +0 -1
- /package/dist/chunks/{948.817a1ef0.js.LICENSE.txt → 948.b8effe9f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-card-item.fbff6f7e.js.LICENSE.txt → eo-card-item.f56c41e5.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-descriptions.b8320ca9.js.LICENSE.txt → eo-descriptions.1ab98c43.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-info-card-item.0d15cb28.js.LICENSE.txt → eo-info-card-item.e6403b4d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-loading-step.834e0aa3.js.LICENSE.txt → eo-loading-step.259d7985.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
{
|
|
30
30
|
"name": "column",
|
|
31
31
|
"description": "列数",
|
|
32
|
+
"default": "3",
|
|
32
33
|
"attribute": true,
|
|
33
34
|
"type": "number"
|
|
34
35
|
},
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
},
|
|
52
53
|
{
|
|
53
54
|
"name": "hideGroups",
|
|
54
|
-
"description": "
|
|
55
|
+
"description": "需要隐藏的分组名称,匹配 list 项的 group 字段,支持字符串或字符串数组",
|
|
55
56
|
"attribute": false,
|
|
56
57
|
"type": "string | string[]"
|
|
57
58
|
},
|
|
@@ -179,7 +180,6 @@
|
|
|
179
180
|
{
|
|
180
181
|
"name": "exportFileName",
|
|
181
182
|
"description": "导出的文件名",
|
|
182
|
-
"default": "download.txt",
|
|
183
183
|
"type": "string"
|
|
184
184
|
}
|
|
185
185
|
],
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"properties": [
|
|
196
196
|
{
|
|
197
197
|
"name": "type",
|
|
198
|
-
"description": "",
|
|
198
|
+
"description": "分页模式:`page` 为页码模式,`token` 为令牌(游标)模式",
|
|
199
199
|
"default": "\"page\"",
|
|
200
200
|
"type": "\"page\" | \"token\""
|
|
201
201
|
},
|
|
@@ -232,10 +232,12 @@
|
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
"name": "nextToken",
|
|
235
|
+
"description": "令牌模式下的下一页令牌(nextToken),有值时\"下一页\"按钮可点击",
|
|
235
236
|
"type": "string"
|
|
236
237
|
},
|
|
237
238
|
{
|
|
238
239
|
"name": "previousToken",
|
|
240
|
+
"description": "令牌模式下的上一页令牌(previousToken),有值时\"上一页\"按钮可点击",
|
|
239
241
|
"type": "string"
|
|
240
242
|
}
|
|
241
243
|
],
|
|
@@ -259,7 +261,7 @@
|
|
|
259
261
|
"properties": [
|
|
260
262
|
{
|
|
261
263
|
"name": "hasHeader",
|
|
262
|
-
"description": "
|
|
264
|
+
"description": "是否有顶部小标题区域,开启后会显示 `auxiliaryText` 辅助文字",
|
|
263
265
|
"type": "boolean"
|
|
264
266
|
},
|
|
265
267
|
{
|
|
@@ -279,7 +281,7 @@
|
|
|
279
281
|
},
|
|
280
282
|
{
|
|
281
283
|
"name": "avatar",
|
|
282
|
-
"description": "
|
|
284
|
+
"description": "图标或图片,支持图标头像(IconAvatar)和图片头像(ImgAvatar)两种形式",
|
|
283
285
|
"attribute": false,
|
|
284
286
|
"type": "IconAvatar | ImgAvatar"
|
|
285
287
|
},
|
|
@@ -307,7 +309,7 @@
|
|
|
307
309
|
},
|
|
308
310
|
{
|
|
309
311
|
"name": "showActions",
|
|
310
|
-
"description": "
|
|
312
|
+
"description": "操作按钮组的展示时机,`always` 始终展示,`hover` 悬停时展示",
|
|
311
313
|
"default": "\"always\"",
|
|
312
314
|
"type": "\"always\" | \"hover\""
|
|
313
315
|
},
|
|
@@ -346,7 +348,7 @@
|
|
|
346
348
|
},
|
|
347
349
|
{
|
|
348
350
|
"name": "avatarPosition",
|
|
349
|
-
"description": "
|
|
351
|
+
"description": "头像的放置位置,设为 `cover` 时头像显示在封面区域,否则显示在内容区域",
|
|
350
352
|
"type": "\"content\" | \"cover\""
|
|
351
353
|
},
|
|
352
354
|
{
|
|
@@ -357,6 +359,7 @@
|
|
|
357
359
|
},
|
|
358
360
|
{
|
|
359
361
|
"name": "tagConfig",
|
|
362
|
+
"description": "徽标配置,可设置文本、图标、背景色和字体颜色",
|
|
360
363
|
"attribute": false,
|
|
361
364
|
"type": "TagConfig"
|
|
362
365
|
},
|
|
@@ -415,6 +418,10 @@
|
|
|
415
418
|
"name": null,
|
|
416
419
|
"description": "内容区域,通常放置卡片自定义内容"
|
|
417
420
|
},
|
|
421
|
+
{
|
|
422
|
+
"name": "title-suffix",
|
|
423
|
+
"description": "标题后缀区域,通常放置状态标签等内容"
|
|
424
|
+
},
|
|
418
425
|
{
|
|
419
426
|
"name": "expanded-area-1",
|
|
420
427
|
"description": "扩展区域 1,通常放置标签信息"
|
|
@@ -476,12 +483,12 @@
|
|
|
476
483
|
"properties": [
|
|
477
484
|
{
|
|
478
485
|
"name": "cardTitle",
|
|
479
|
-
"description": "
|
|
486
|
+
"description": "卡片标题",
|
|
480
487
|
"type": "string"
|
|
481
488
|
},
|
|
482
489
|
{
|
|
483
490
|
"name": "description",
|
|
484
|
-
"description": "
|
|
491
|
+
"description": "卡片描述信息",
|
|
485
492
|
"type": "string"
|
|
486
493
|
},
|
|
487
494
|
{
|
|
@@ -491,13 +498,13 @@
|
|
|
491
498
|
},
|
|
492
499
|
{
|
|
493
500
|
"name": "cardIcon",
|
|
494
|
-
"description": "
|
|
501
|
+
"description": "图标配置,支持设置图标、颜色、尺寸、形状和背景色",
|
|
495
502
|
"attribute": false,
|
|
496
503
|
"type": "IconAvatar"
|
|
497
504
|
},
|
|
498
505
|
{
|
|
499
506
|
"name": "detailList",
|
|
500
|
-
"description": "
|
|
507
|
+
"description": "详细列表,每项可设置标题、描述文字或自定义构件",
|
|
501
508
|
"attribute": false,
|
|
502
509
|
"type": "InfoCardDetail[]"
|
|
503
510
|
},
|
|
@@ -511,7 +518,7 @@
|
|
|
511
518
|
"slots": [],
|
|
512
519
|
"methods": [],
|
|
513
520
|
"parts": [],
|
|
514
|
-
"description": "
|
|
521
|
+
"description": "信息类卡片 —— 横向布局信息卡片",
|
|
515
522
|
"category": "card-info"
|
|
516
523
|
},
|
|
517
524
|
{
|
|
@@ -522,19 +529,19 @@
|
|
|
522
529
|
"properties": [
|
|
523
530
|
{
|
|
524
531
|
"name": "value",
|
|
525
|
-
"description": "
|
|
532
|
+
"description": "时间戳(秒或毫秒,由 `isMillisecond` 决定),或时间字符串(字符串类型时应提供 `inputFormat`)",
|
|
526
533
|
"required": true,
|
|
527
534
|
"attribute": false,
|
|
528
535
|
"type": "number | string"
|
|
529
536
|
},
|
|
530
537
|
{
|
|
531
538
|
"name": "inputFormat",
|
|
532
|
-
"description": "
|
|
539
|
+
"description": "字符串类型 `value` 的解析格式,如 \"YYYY-MM-DD\",[时间格式参照表](https://momentjs.com/docs/#/parsing/string-format/)",
|
|
533
540
|
"type": "string"
|
|
534
541
|
},
|
|
535
542
|
{
|
|
536
543
|
"name": "outputFormat",
|
|
537
|
-
"description": "
|
|
544
|
+
"description": "自定义输出格式,如 \"YYYY-MM-DD HH:mm:ss\",设置后 `formatter` 属性无效,[时间格式参照表](https://momentjs.com/docs/#/displaying/format/)",
|
|
538
545
|
"type": "string"
|
|
539
546
|
},
|
|
540
547
|
{
|
|
@@ -550,25 +557,25 @@
|
|
|
550
557
|
},
|
|
551
558
|
{
|
|
552
559
|
"name": "formatter",
|
|
553
|
-
"description": "
|
|
554
|
-
"default": "\"
|
|
560
|
+
"description": "格式类型,可选值:`\"full\"`(完整时间)、`\"default\"`(自动相对/完整)、`\"relative\"`(相对时间,支持过去和未来)、`\"past\"`(仅过去相对时间)、`\"future\"`(仅未来相对时间)、`\"accurate\"`(精确耗时)、`\"auto\"`",
|
|
561
|
+
"default": "\"auto\"",
|
|
555
562
|
"attribute": false,
|
|
556
563
|
"type": "HumanizeTimeFormat"
|
|
557
564
|
},
|
|
558
565
|
{
|
|
559
566
|
"name": "isMicrosecond",
|
|
560
|
-
"description": "value
|
|
567
|
+
"description": "已废弃:`value` 值的单位是否为毫秒(属性名拼写有误,请改用 `isMillisecond`)",
|
|
561
568
|
"deprecated": "请使用 `isMillisecond`",
|
|
562
569
|
"type": "boolean"
|
|
563
570
|
},
|
|
564
571
|
{
|
|
565
572
|
"name": "isMillisecond",
|
|
566
|
-
"description": "value
|
|
573
|
+
"description": "`value` 值的单位是否为毫秒,默认将 `value` 视为秒级时间戳",
|
|
567
574
|
"type": "boolean"
|
|
568
575
|
},
|
|
569
576
|
{
|
|
570
577
|
"name": "link",
|
|
571
|
-
"description": "
|
|
578
|
+
"description": "将时间显示为可点击链接",
|
|
572
579
|
"attribute": false,
|
|
573
580
|
"type": "LinkInfo"
|
|
574
581
|
}
|
|
@@ -599,7 +606,7 @@
|
|
|
599
606
|
},
|
|
600
607
|
{
|
|
601
608
|
"name": "icon",
|
|
602
|
-
"description": "
|
|
609
|
+
"description": "图标,支持 GeneralIconProps 的所有字段,额外支持 `color`(图标颜色)和 `bgColor`(背景色)",
|
|
603
610
|
"attribute": false,
|
|
604
611
|
"type": "EoStatisticsCardProps[\"icon\"]"
|
|
605
612
|
},
|
|
@@ -646,7 +653,7 @@
|
|
|
646
653
|
},
|
|
647
654
|
{
|
|
648
655
|
"name": "titleSuffix",
|
|
649
|
-
"description": "
|
|
656
|
+
"description": "标题后缀,放置辅助信息"
|
|
650
657
|
},
|
|
651
658
|
{
|
|
652
659
|
"name": "description",
|
|
@@ -674,42 +681,42 @@
|
|
|
674
681
|
"properties": [
|
|
675
682
|
{
|
|
676
683
|
"name": "visible",
|
|
677
|
-
"description": "
|
|
684
|
+
"description": "",
|
|
678
685
|
"type": "boolean"
|
|
679
686
|
},
|
|
680
687
|
{
|
|
681
688
|
"name": "width",
|
|
682
|
-
"description": "
|
|
689
|
+
"description": "",
|
|
683
690
|
"type": "string"
|
|
684
691
|
},
|
|
685
692
|
{
|
|
686
693
|
"name": "stepTitle",
|
|
687
|
-
"description": "
|
|
694
|
+
"description": "",
|
|
688
695
|
"type": "string"
|
|
689
696
|
},
|
|
690
697
|
{
|
|
691
698
|
"name": "stepList",
|
|
692
|
-
"description": "
|
|
699
|
+
"description": "",
|
|
693
700
|
"attribute": false,
|
|
694
701
|
"type": "StepItem[]"
|
|
695
702
|
},
|
|
696
703
|
{
|
|
697
704
|
"name": "curStep",
|
|
698
|
-
"description": "
|
|
705
|
+
"description": "",
|
|
699
706
|
"type": "string"
|
|
700
707
|
}
|
|
701
708
|
],
|
|
702
709
|
"events": [
|
|
703
710
|
{
|
|
704
711
|
"name": "open",
|
|
705
|
-
"description": "
|
|
712
|
+
"description": "",
|
|
706
713
|
"detail": {
|
|
707
714
|
"type": "void"
|
|
708
715
|
}
|
|
709
716
|
},
|
|
710
717
|
{
|
|
711
718
|
"name": "close",
|
|
712
|
-
"description": "
|
|
719
|
+
"description": "",
|
|
713
720
|
"detail": {
|
|
714
721
|
"type": "void"
|
|
715
722
|
}
|
|
@@ -720,18 +727,18 @@
|
|
|
720
727
|
{
|
|
721
728
|
"name": "open",
|
|
722
729
|
"params": [],
|
|
723
|
-
"description": "
|
|
730
|
+
"description": "",
|
|
724
731
|
"returns": {}
|
|
725
732
|
},
|
|
726
733
|
{
|
|
727
734
|
"name": "close",
|
|
728
735
|
"params": [],
|
|
729
|
-
"description": "
|
|
736
|
+
"description": "",
|
|
730
737
|
"returns": {}
|
|
731
738
|
}
|
|
732
739
|
],
|
|
733
740
|
"parts": [],
|
|
734
|
-
"description": "
|
|
741
|
+
"description": ""
|
|
735
742
|
},
|
|
736
743
|
{
|
|
737
744
|
"name": "eo-current-time",
|
|
@@ -753,7 +760,7 @@
|
|
|
753
760
|
"slots": [],
|
|
754
761
|
"methods": [],
|
|
755
762
|
"parts": [],
|
|
756
|
-
"description": "
|
|
763
|
+
"description": "实时当前时间展示构件,每秒自动刷新,支持自定义时间格式和前置图标。"
|
|
757
764
|
},
|
|
758
765
|
{
|
|
759
766
|
"name": "eo-carousel-text",
|
|
@@ -793,7 +800,7 @@
|
|
|
793
800
|
"slots": [],
|
|
794
801
|
"methods": [],
|
|
795
802
|
"parts": [],
|
|
796
|
-
"description": "
|
|
803
|
+
"description": "文字跑马灯构件,文本内容从右向左循环滚动展示,支持自定义速度、字体大小和字体颜色。"
|
|
797
804
|
},
|
|
798
805
|
{
|
|
799
806
|
"name": "eo-code-block",
|
|
@@ -803,21 +810,23 @@
|
|
|
803
810
|
"properties": [
|
|
804
811
|
{
|
|
805
812
|
"name": "language",
|
|
813
|
+
"description": "代码语言,用于语法高亮,例如 `javascript`、`python`、`yaml` 等",
|
|
806
814
|
"type": "string"
|
|
807
815
|
},
|
|
808
816
|
{
|
|
809
817
|
"name": "source",
|
|
818
|
+
"description": "代码内容字符串",
|
|
810
819
|
"type": "string"
|
|
811
820
|
},
|
|
812
821
|
{
|
|
813
822
|
"name": "theme",
|
|
814
|
-
"description": "",
|
|
823
|
+
"description": "代码高亮主题。`auto` 跟随系统主题自动切换亮色/暗色",
|
|
815
824
|
"default": "\"auto\"",
|
|
816
825
|
"type": "\"auto\" | \"light-plus\" | \"dark-plus\""
|
|
817
826
|
},
|
|
818
827
|
{
|
|
819
828
|
"name": "themeVariant",
|
|
820
|
-
"description": "
|
|
829
|
+
"description": "主题变体,影响代码块的整体样式风格",
|
|
821
830
|
"type": "\"default\" | \"elevo\""
|
|
822
831
|
},
|
|
823
832
|
{
|
|
@@ -848,13 +857,14 @@
|
|
|
848
857
|
"description": "code-wrapper 构件"
|
|
849
858
|
}
|
|
850
859
|
],
|
|
851
|
-
"description": "
|
|
860
|
+
"description": "代码块展示构件,基于 Shiki 进行语法高亮,支持多种编程语言、亮色/暗色主题自动切换及复制功能。"
|
|
852
861
|
},
|
|
853
862
|
{
|
|
854
863
|
"name": "presentational.code-wrapper",
|
|
855
864
|
"properties": [
|
|
856
865
|
{
|
|
857
866
|
"name": "preProps",
|
|
867
|
+
"description": "传递给 `<pre>` 元素的额外属性,例如 `className`、`style` 等",
|
|
858
868
|
"attribute": false,
|
|
859
869
|
"type": "React.PropsWithChildren<JSX.IntrinsicElements[\"pre\"]>"
|
|
860
870
|
},
|
|
@@ -866,7 +876,7 @@
|
|
|
866
876
|
},
|
|
867
877
|
{
|
|
868
878
|
"name": "themeVariant",
|
|
869
|
-
"description": "
|
|
879
|
+
"description": "主题变体,影响复制按钮等内部元素的样式风格。`elevo` 为 Elevo 风格",
|
|
870
880
|
"type": "\"default\" | \"elevo\""
|
|
871
881
|
}
|
|
872
882
|
],
|
|
@@ -883,7 +893,7 @@
|
|
|
883
893
|
"description": "复制按钮"
|
|
884
894
|
}
|
|
885
895
|
],
|
|
886
|
-
"description": "
|
|
896
|
+
"description": "代码内容包裹容器,提供统一的代码展示结构并支持一键复制功能。"
|
|
887
897
|
}
|
|
888
898
|
],
|
|
889
899
|
"providers": []
|
package/dist/types.json
CHANGED
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"type": "reference",
|
|
180
180
|
"typeName": {
|
|
181
181
|
"type": "identifier",
|
|
182
|
-
"name": "
|
|
182
|
+
"name": "UseBrickConfOrRenderFunction"
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
185
|
"optional": true,
|
|
@@ -1094,7 +1094,7 @@
|
|
|
1094
1094
|
"type": "reference",
|
|
1095
1095
|
"typeName": {
|
|
1096
1096
|
"type": "identifier",
|
|
1097
|
-
"name": "
|
|
1097
|
+
"name": "UseSingleBrickConfOrRenderFunction"
|
|
1098
1098
|
}
|
|
1099
1099
|
},
|
|
1100
1100
|
"optional": true,
|
|
@@ -76,6 +76,7 @@ export interface EoCardItemEventsMapping {
|
|
|
76
76
|
/**
|
|
77
77
|
* 信息类卡片 —— 通用卡片
|
|
78
78
|
* @slot - 内容区域,通常放置卡片自定义内容
|
|
79
|
+
* @slot title-suffix - 标题后缀区域,通常放置状态标签等内容
|
|
79
80
|
* @slot expanded-area-1 - 扩展区域 1,通常放置标签信息
|
|
80
81
|
* @slot expanded-area-2 - 扩展区域 2,通常放置操作和其他属性信息(图标/头像/小字描述/统计信息)
|
|
81
82
|
* @category card-info
|
|
@@ -83,7 +84,7 @@ export interface EoCardItemEventsMapping {
|
|
|
83
84
|
export declare class EoCardItem extends ReactNextElement implements EoCardItemProps {
|
|
84
85
|
#private;
|
|
85
86
|
/**
|
|
86
|
-
*
|
|
87
|
+
* 是否有顶部小标题区域,开启后会显示 `auxiliaryText` 辅助文字
|
|
87
88
|
*/
|
|
88
89
|
accessor hasHeader: boolean | undefined;
|
|
89
90
|
/**
|
|
@@ -99,7 +100,7 @@ export declare class EoCardItem extends ReactNextElement implements EoCardItemPr
|
|
|
99
100
|
*/
|
|
100
101
|
accessor auxiliaryText: string | undefined;
|
|
101
102
|
/**
|
|
102
|
-
*
|
|
103
|
+
* 图标或图片,支持图标头像(IconAvatar)和图片头像(ImgAvatar)两种形式
|
|
103
104
|
*/
|
|
104
105
|
accessor avatar: IconAvatar | ImgAvatar | undefined;
|
|
105
106
|
/**
|
|
@@ -119,7 +120,7 @@ export declare class EoCardItem extends ReactNextElement implements EoCardItemPr
|
|
|
119
120
|
*/
|
|
120
121
|
accessor actions: ActionType[] | undefined;
|
|
121
122
|
/**
|
|
122
|
-
*
|
|
123
|
+
* 操作按钮组的展示时机,`always` 始终展示,`hover` 悬停时展示
|
|
123
124
|
*/
|
|
124
125
|
accessor showActions: "always" | "hover";
|
|
125
126
|
/**
|
|
@@ -147,13 +148,16 @@ export declare class EoCardItem extends ReactNextElement implements EoCardItemPr
|
|
|
147
148
|
*/
|
|
148
149
|
accessor coverImageSize: React.CSSProperties["backgroundSize"] | undefined;
|
|
149
150
|
/**
|
|
150
|
-
*
|
|
151
|
+
* 头像的放置位置,设为 `cover` 时头像显示在封面区域,否则显示在内容区域
|
|
151
152
|
*/
|
|
152
153
|
accessor avatarPosition: "content" | "cover";
|
|
153
154
|
/**
|
|
154
155
|
* 图标位置,在 avatarPosition 不为 cover 时有效
|
|
155
156
|
*/
|
|
156
157
|
accessor avatarPlacement: "left" | "title-left";
|
|
158
|
+
/**
|
|
159
|
+
* 徽标配置,可设置文本、图标、背景色和字体颜色
|
|
160
|
+
*/
|
|
157
161
|
accessor tagConfig: TagConfig | undefined;
|
|
158
162
|
/**
|
|
159
163
|
* 卡片边框颜色
|
|
@@ -2,7 +2,7 @@ import React, { CSSProperties } from "react";
|
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* 文字跑马灯构件,文本内容从右向左循环滚动展示,支持自定义速度、字体大小和字体颜色。
|
|
6
6
|
*/
|
|
7
7
|
export declare class EoCarouselText extends ReactNextElement {
|
|
8
8
|
/**
|
|
@@ -11,7 +11,7 @@ export interface CodeBlockProps {
|
|
|
11
11
|
showCopyButton?: boolean;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* 代码块展示构件,基于 Shiki 进行语法高亮,支持多种编程语言、亮色/暗色主题自动切换及复制功能。
|
|
15
15
|
*
|
|
16
16
|
* @part pre - 包裹代码内容的 `<pre>` 元素
|
|
17
17
|
* @part copy - 复制按钮
|
|
@@ -19,12 +19,21 @@ export interface CodeBlockProps {
|
|
|
19
19
|
* @part wrapper - code-wrapper 构件
|
|
20
20
|
*/
|
|
21
21
|
export declare class CodeBlock extends ReactNextElement implements CodeBlockProps {
|
|
22
|
+
/**
|
|
23
|
+
* 代码语言,用于语法高亮,例如 `javascript`、`python`、`yaml` 等
|
|
24
|
+
*/
|
|
22
25
|
accessor language: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* 代码内容字符串
|
|
28
|
+
*/
|
|
23
29
|
accessor source: string | undefined;
|
|
24
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* 代码高亮主题。`auto` 跟随系统主题自动切换亮色/暗色
|
|
32
|
+
* @default "auto"
|
|
33
|
+
*/
|
|
25
34
|
accessor theme: "auto" | "light-plus" | "dark-plus" | undefined;
|
|
26
35
|
/**
|
|
27
|
-
*
|
|
36
|
+
* 主题变体,影响代码块的整体样式风格
|
|
28
37
|
*/
|
|
29
38
|
accessor themeVariant: "default" | "elevo" | undefined;
|
|
30
39
|
/**
|
|
@@ -47,7 +47,6 @@ export declare class CodeDisplay extends ReactNextElement implements CodeDisplay
|
|
|
47
47
|
accessor showExportButton: boolean | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* 导出的文件名
|
|
50
|
-
* @default download.txt
|
|
51
50
|
*/
|
|
52
51
|
accessor exportFileName: string | undefined;
|
|
53
52
|
render(): React.JSX.Element;
|
|
@@ -10,7 +10,9 @@ export interface CodeWrapperProps {
|
|
|
10
10
|
themeVariant?: "default" | "elevo";
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* 代码内容包裹容器,提供统一的代码展示结构并支持一键复制功能。
|
|
14
|
+
*
|
|
15
|
+
* @description 代码内容包裹容器,提供统一的代码展示结构并支持一键复制功能。
|
|
14
16
|
*
|
|
15
17
|
* @internal
|
|
16
18
|
*
|
|
@@ -18,6 +20,9 @@ export interface CodeWrapperProps {
|
|
|
18
20
|
* @part copy - 复制按钮
|
|
19
21
|
*/
|
|
20
22
|
export declare class CodeWrapper extends ReactNextElement implements CodeWrapperProps {
|
|
23
|
+
/**
|
|
24
|
+
* 传递给 `<pre>` 元素的额外属性,例如 `className`、`style` 等
|
|
25
|
+
*/
|
|
21
26
|
accessor preProps: React.PropsWithChildren<JSX.IntrinsicElements["pre"]> | undefined;
|
|
22
27
|
/**
|
|
23
28
|
* 是否展示复制按钮
|
|
@@ -25,7 +30,7 @@ export declare class CodeWrapper extends ReactNextElement implements CodeWrapper
|
|
|
25
30
|
*/
|
|
26
31
|
accessor showCopyButton: boolean | undefined;
|
|
27
32
|
/**
|
|
28
|
-
*
|
|
33
|
+
* 主题变体,影响复制按钮等内部元素的样式风格。`elevo` 为 Elevo 风格
|
|
29
34
|
*/
|
|
30
35
|
accessor themeVariant: "default" | "elevo" | undefined;
|
|
31
36
|
render(): React.JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
|
-
import type {
|
|
4
|
+
import type { UseBrickConfOrRenderFunction } from "@next-core/react-runtime";
|
|
5
5
|
import "./host-context.css";
|
|
6
6
|
export interface DescriptionItem {
|
|
7
7
|
label: string;
|
|
8
8
|
field?: string;
|
|
9
9
|
group?: string;
|
|
10
10
|
text?: string | number;
|
|
11
|
-
useBrick?:
|
|
11
|
+
useBrick?: UseBrickConfOrRenderFunction;
|
|
12
12
|
gridColumn?: string;
|
|
13
13
|
}
|
|
14
14
|
type Layout = "horizontal" | "vertical";
|
|
@@ -45,6 +45,7 @@ declare class Descriptions extends ReactNextElement {
|
|
|
45
45
|
accessor showCard: boolean | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* 列数
|
|
48
|
+
* @default 3
|
|
48
49
|
*/
|
|
49
50
|
accessor column: number | undefined;
|
|
50
51
|
/**
|
|
@@ -62,7 +63,7 @@ declare class Descriptions extends ReactNextElement {
|
|
|
62
63
|
*/
|
|
63
64
|
accessor bordered: boolean | undefined;
|
|
64
65
|
/**
|
|
65
|
-
*
|
|
66
|
+
* 需要隐藏的分组名称,匹配 list 项的 group 字段,支持字符串或字符串数组
|
|
66
67
|
*/
|
|
67
68
|
accessor hideGroups: string | string[] | undefined;
|
|
68
69
|
/**
|
|
@@ -22,16 +22,16 @@ export interface EoHumanizeTimeProps {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare class EoHumanizeTime extends ReactNextElement {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* 时间戳(秒或毫秒,由 `isMillisecond` 决定),或时间字符串(字符串类型时应提供 `inputFormat`)
|
|
26
26
|
* @required
|
|
27
27
|
*/
|
|
28
28
|
accessor value: number | string;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* 字符串类型 `value` 的解析格式,如 "YYYY-MM-DD",[时间格式参照表](https://momentjs.com/docs/#/parsing/string-format/)
|
|
31
31
|
*/
|
|
32
32
|
accessor inputFormat: string;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* 自定义输出格式,如 "YYYY-MM-DD HH:mm:ss",设置后 `formatter` 属性无效,[时间格式参照表](https://momentjs.com/docs/#/displaying/format/)
|
|
35
35
|
*/
|
|
36
36
|
accessor outputFormat: string;
|
|
37
37
|
/**
|
|
@@ -44,23 +44,23 @@ export declare class EoHumanizeTime extends ReactNextElement {
|
|
|
44
44
|
*/
|
|
45
45
|
accessor isCostTime: boolean;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* 格式类型,可选值:`"full"`(完整时间)、`"default"`(自动相对/完整)、`"relative"`(相对时间,支持过去和未来)、`"past"`(仅过去相对时间)、`"future"`(仅未来相对时间)、`"accurate"`(精确耗时)、`"auto"`
|
|
48
48
|
*
|
|
49
|
-
* @default "
|
|
49
|
+
* @default "auto"
|
|
50
50
|
*/
|
|
51
51
|
accessor formatter: HumanizeTimeFormat;
|
|
52
52
|
/**
|
|
53
|
-
* value
|
|
53
|
+
* 已废弃:`value` 值的单位是否为毫秒(属性名拼写有误,请改用 `isMillisecond`)
|
|
54
54
|
*
|
|
55
55
|
* @deprecated 请使用 `isMillisecond`
|
|
56
56
|
*/
|
|
57
57
|
accessor isMicrosecond: boolean;
|
|
58
58
|
/**
|
|
59
|
-
* value
|
|
59
|
+
* `value` 值的单位是否为毫秒,默认将 `value` 视为秒级时间戳
|
|
60
60
|
*/
|
|
61
61
|
accessor isMillisecond: boolean;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* 将时间显示为可点击链接
|
|
64
64
|
*/
|
|
65
65
|
accessor link: LinkInfo;
|
|
66
66
|
connectedCallback(): void;
|
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import React, { Ref } from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
|
-
import {
|
|
3
|
+
import { UseSingleBrickConfOrRenderFunction } from "@next-core/react-runtime";
|
|
4
4
|
import "@next-core/theme";
|
|
5
5
|
import type { LinkProps } from "@next-bricks/basic/link";
|
|
6
6
|
import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 信息类卡片 —— 横向布局信息卡片
|
|
9
|
+
* @description 展示带图标、标题、描述和详细列表的横向布局信息卡片,支持链接跳转、插槽图标、标题后缀及操作区。
|
|
9
10
|
* @author dophijing
|
|
10
11
|
* @category card-info
|
|
11
12
|
*/
|
|
12
13
|
export declare class EoInfoCardItem extends ReactNextElement implements EoInfoCardItemProps {
|
|
13
14
|
#private;
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* 卡片标题
|
|
16
17
|
*/
|
|
17
18
|
accessor cardTitle: string;
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
* 卡片描述信息
|
|
20
21
|
*/
|
|
21
|
-
accessor description: string;
|
|
22
|
+
accessor description: string | undefined;
|
|
22
23
|
/**
|
|
23
24
|
* 链接地址
|
|
24
25
|
*/
|
|
25
26
|
accessor url: string | undefined;
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
+
* 图标配置,支持设置图标、颜色、尺寸、形状和背景色
|
|
28
29
|
*/
|
|
29
30
|
accessor cardIcon: IconAvatar | undefined;
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
+
* 详细列表,每项可设置标题、描述文字或自定义构件
|
|
32
33
|
*/
|
|
33
|
-
accessor detailList: InfoCardDetail[];
|
|
34
|
+
accessor detailList: InfoCardDetail[] | undefined;
|
|
34
35
|
/**
|
|
35
36
|
* 链接跳转目标
|
|
36
37
|
*/
|
|
@@ -57,7 +58,7 @@ export interface IconAvatar {
|
|
|
57
58
|
export interface InfoCardDetail {
|
|
58
59
|
title?: string;
|
|
59
60
|
desc?: string;
|
|
60
|
-
useBrick?:
|
|
61
|
+
useBrick?: UseSingleBrickConfOrRenderFunction;
|
|
61
62
|
}
|
|
62
63
|
export interface EoInfoCardItemProps {
|
|
63
64
|
url?: string;
|