@next-bricks/presentational 1.21.9 → 1.21.10
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 +9 -9
- package/dist/chunks/5045.b0f85f6b.js.map +1 -1
- package/dist/chunks/code-wrapper.40655769.js.map +1 -1
- package/dist/chunks/eo-card-item.fbff6f7e.js.map +1 -1
- package/dist/chunks/eo-carousel-text.d8e8c2c9.js.map +1 -1
- package/dist/chunks/eo-code-block.7efe5647.js.map +1 -1
- 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.map +1 -1
- package/dist/chunks/eo-humanize-time.2397ce6e.js.map +1 -1
- package/dist/chunks/eo-info-card-item.0d15cb28.js.map +1 -1
- package/dist/chunks/eo-loading-step.834e0aa3.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/examples.json +15 -15
- package/dist/{index.db5144bf.js → index.3d30863f.js} +2 -2
- package/dist/{index.db5144bf.js.map → index.3d30863f.js.map} +1 -1
- package/dist/manifest.json +108 -98
- package/dist/types.json +110 -110
- 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 +2 -1
- package/dist-types/humanize-time/index.d.ts +8 -8
- package/dist-types/info-card-item/index.d.ts +8 -7
- 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/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
|
},
|
|
@@ -74,65 +75,6 @@
|
|
|
74
75
|
"description": "通用描述列表构件",
|
|
75
76
|
"category": "text"
|
|
76
77
|
},
|
|
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` 插槽",
|
|
92
|
-
"type": "boolean"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "showIcon",
|
|
96
|
-
"description": "是否显示提示图标",
|
|
97
|
-
"type": "boolean"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "closable",
|
|
101
|
-
"description": "是否显示关闭按钮",
|
|
102
|
-
"type": "boolean"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"name": "localStorageKey",
|
|
106
|
-
"description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
|
|
107
|
-
"type": "string"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "disableUrlNamespace",
|
|
111
|
-
"description": "关闭后仅以 `localStorageKey` 作为命名空间",
|
|
112
|
-
"type": "boolean"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "textContent",
|
|
116
|
-
"type": "string",
|
|
117
|
-
"description": "文本内容"
|
|
118
|
-
}
|
|
119
|
-
],
|
|
120
|
-
"events": [],
|
|
121
|
-
"slots": [
|
|
122
|
-
{
|
|
123
|
-
"name": null,
|
|
124
|
-
"description": "内容区"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"name": "title",
|
|
128
|
-
"description": "标题"
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"methods": [],
|
|
132
|
-
"parts": [],
|
|
133
|
-
"description": "告警提示",
|
|
134
|
-
"category": "display-component"
|
|
135
|
-
},
|
|
136
78
|
{
|
|
137
79
|
"name": "eo-code-display",
|
|
138
80
|
"alias": [
|
|
@@ -179,7 +121,6 @@
|
|
|
179
121
|
{
|
|
180
122
|
"name": "exportFileName",
|
|
181
123
|
"description": "导出的文件名",
|
|
182
|
-
"default": "download.txt",
|
|
183
124
|
"type": "string"
|
|
184
125
|
}
|
|
185
126
|
],
|
|
@@ -195,7 +136,7 @@
|
|
|
195
136
|
"properties": [
|
|
196
137
|
{
|
|
197
138
|
"name": "type",
|
|
198
|
-
"description": "",
|
|
139
|
+
"description": "分页模式:`page` 为页码模式,`token` 为令牌(游标)模式",
|
|
199
140
|
"default": "\"page\"",
|
|
200
141
|
"type": "\"page\" | \"token\""
|
|
201
142
|
},
|
|
@@ -232,10 +173,12 @@
|
|
|
232
173
|
},
|
|
233
174
|
{
|
|
234
175
|
"name": "nextToken",
|
|
176
|
+
"description": "令牌模式下的下一页令牌(nextToken),有值时\"下一页\"按钮可点击",
|
|
235
177
|
"type": "string"
|
|
236
178
|
},
|
|
237
179
|
{
|
|
238
180
|
"name": "previousToken",
|
|
181
|
+
"description": "令牌模式下的上一页令牌(previousToken),有值时\"上一页\"按钮可点击",
|
|
239
182
|
"type": "string"
|
|
240
183
|
}
|
|
241
184
|
],
|
|
@@ -254,12 +197,71 @@
|
|
|
254
197
|
"description": "分页",
|
|
255
198
|
"category": "navigation"
|
|
256
199
|
},
|
|
200
|
+
{
|
|
201
|
+
"name": "eo-alert",
|
|
202
|
+
"alias": [
|
|
203
|
+
"presentational.general-alert"
|
|
204
|
+
],
|
|
205
|
+
"properties": [
|
|
206
|
+
{
|
|
207
|
+
"name": "type",
|
|
208
|
+
"description": "警告类型",
|
|
209
|
+
"attribute": false,
|
|
210
|
+
"type": "AlertType"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "hasTitle",
|
|
214
|
+
"description": "是否显示标题。开启后,可以使用 `title` 插槽",
|
|
215
|
+
"type": "boolean"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "showIcon",
|
|
219
|
+
"description": "是否显示提示图标",
|
|
220
|
+
"type": "boolean"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "closable",
|
|
224
|
+
"description": "是否显示关闭按钮",
|
|
225
|
+
"type": "boolean"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "localStorageKey",
|
|
229
|
+
"description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
|
|
230
|
+
"type": "string"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "disableUrlNamespace",
|
|
234
|
+
"description": "关闭后仅以 `localStorageKey` 作为命名空间",
|
|
235
|
+
"type": "boolean"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "textContent",
|
|
239
|
+
"type": "string",
|
|
240
|
+
"description": "文本内容"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"events": [],
|
|
244
|
+
"slots": [
|
|
245
|
+
{
|
|
246
|
+
"name": null,
|
|
247
|
+
"description": "内容区"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "title",
|
|
251
|
+
"description": "标题"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"methods": [],
|
|
255
|
+
"parts": [],
|
|
256
|
+
"description": "告警提示",
|
|
257
|
+
"category": "display-component"
|
|
258
|
+
},
|
|
257
259
|
{
|
|
258
260
|
"name": "eo-card-item",
|
|
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": []
|