@next-bricks/presentational-bricks 1.339.0 → 1.339.1
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/deploy/contract.yaml +128 -128
- package/dist/bricks.json +31 -31
- package/dist/{index.e0f6d174.js → index.8e5be25b.js} +2 -2
- package/dist/index.8e5be25b.js.map +1 -0
- package/dist/stories.json +27 -27
- package/package.json +2 -2
- package/dist/index.e0f6d174.js.map +0 -1
package/dist/stories.json
CHANGED
|
@@ -5346,12 +5346,12 @@
|
|
|
5346
5346
|
"id": "presentational-bricks.brick-result",
|
|
5347
5347
|
"name": "presentational-bricks.brick-result",
|
|
5348
5348
|
"dockind": "brick",
|
|
5349
|
-
"description": "
|
|
5349
|
+
"description": "结果页面,支持三种状态类型:基础结果状态(success/error/info/warning/404/403/500)、空结果状态(empty/no-data/search-empty 等)和自定义插画状态(illustrations),可配置主标题、次标题、自定义图标及插画",
|
|
5350
5350
|
"author": "ice",
|
|
5351
5351
|
"slots": [
|
|
5352
5352
|
{
|
|
5353
5353
|
"name": "content",
|
|
5354
|
-
"description": " 提供 content
|
|
5354
|
+
"description": " 提供 content 插槽,用于在结果页面下方放置自定义内容(如操作按钮、链接等)"
|
|
5355
5355
|
}
|
|
5356
5356
|
],
|
|
5357
5357
|
"history": [
|
|
@@ -5367,7 +5367,7 @@
|
|
|
5367
5367
|
"type": "BrickResultStatus | EmptyResultStatus | IllustrationsStatus",
|
|
5368
5368
|
"required": "true",
|
|
5369
5369
|
"default": "-",
|
|
5370
|
-
"description": "
|
|
5370
|
+
"description": "结果的状态,决定图标和颜色。支持三类值:BrickResultStatus(success/error/info/warning/404/403/500)显示 Ant Design 内置结果图标;EmptyResultStatus(empty/no-data/search-empty 等)显示空状态插画;设为 \"illustrations\" 时使用 illustrationsConfig 配置自定义插画。设置的值不符合任何类型时返回空元素",
|
|
5371
5371
|
"group": "basic"
|
|
5372
5372
|
},
|
|
5373
5373
|
{
|
|
@@ -5397,7 +5397,7 @@
|
|
|
5397
5397
|
"type": "IllustrationsConfig",
|
|
5398
5398
|
"required": "false",
|
|
5399
5399
|
"default": "{}",
|
|
5400
|
-
"description": "
|
|
5400
|
+
"description": "自定义插画配置,仅当 status 为 \"illustrations\" 时生效。可通过 name 和 category 指定插画库图片,size 控制尺寸(默认 middle),imageStyle 覆盖样式(不推荐)",
|
|
5401
5401
|
"group": "other"
|
|
5402
5402
|
},
|
|
5403
5403
|
{
|
|
@@ -5405,14 +5405,14 @@
|
|
|
5405
5405
|
"type": "boolean",
|
|
5406
5406
|
"required": "false",
|
|
5407
5407
|
"default": "true",
|
|
5408
|
-
"description": "
|
|
5408
|
+
"description": "是否使用新版插画替换插画库 default 分类下的图标,需配合特性开关 support-new-illustrations 及应用配置 supportNewIllustrations 启用",
|
|
5409
5409
|
"group": "other"
|
|
5410
5410
|
},
|
|
5411
5411
|
{
|
|
5412
5412
|
"name": "emptyResultSize",
|
|
5413
5413
|
"type": "IconSize",
|
|
5414
5414
|
"required": "false",
|
|
5415
|
-
"description": "status为EmptyResultStatus
|
|
5415
|
+
"description": "空结果插画的尺寸,仅当 status 为 EmptyResultStatus 类型时生效,可选值:small/middle/large/xlarge/unset,默认 middle",
|
|
5416
5416
|
"group": "other"
|
|
5417
5417
|
}
|
|
5418
5418
|
],
|
|
@@ -9853,13 +9853,13 @@
|
|
|
9853
9853
|
"id": "presentational-bricks.brick-user",
|
|
9854
9854
|
"name": "presentational-bricks.brick-user",
|
|
9855
9855
|
"dockind": "brick",
|
|
9856
|
-
"description": "
|
|
9856
|
+
"description": "展示用户头像和用户名的构件,支持昵称显示、showKey 显示、自定义 Tooltip 及头像大小和形状配置",
|
|
9857
9857
|
"author": "ice",
|
|
9858
9858
|
"slots": null,
|
|
9859
9859
|
"history": [
|
|
9860
9860
|
{
|
|
9861
9861
|
"version": "1.152.0",
|
|
9862
|
-
"change": "新属性 `
|
|
9862
|
+
"change": "新属性 `showNickname`"
|
|
9863
9863
|
},
|
|
9864
9864
|
{
|
|
9865
9865
|
"version": "1.62.0",
|
|
@@ -9932,7 +9932,7 @@
|
|
|
9932
9932
|
},
|
|
9933
9933
|
{
|
|
9934
9934
|
"name": "showNickname",
|
|
9935
|
-
"type": "
|
|
9935
|
+
"type": "boolean",
|
|
9936
9936
|
"required": "false",
|
|
9937
9937
|
"default": "false",
|
|
9938
9938
|
"deprecated": true,
|
|
@@ -9940,24 +9940,24 @@
|
|
|
9940
9940
|
},
|
|
9941
9941
|
{
|
|
9942
9942
|
"name": "showNicknameOrUsername",
|
|
9943
|
-
"type": "
|
|
9943
|
+
"type": "boolean",
|
|
9944
9944
|
"required": "false",
|
|
9945
9945
|
"default": "false",
|
|
9946
9946
|
"description": "当有昵称时显示昵称,无昵称时显示用户名"
|
|
9947
9947
|
},
|
|
9948
9948
|
{
|
|
9949
9949
|
"name": "displayShowKey",
|
|
9950
|
-
"type": "
|
|
9950
|
+
"type": "boolean",
|
|
9951
9951
|
"required": "false",
|
|
9952
9952
|
"default": "false",
|
|
9953
|
-
"description": "是否显示
|
|
9953
|
+
"description": "是否显示 showKey,启用后当用户拥有 showKey 时显示为 `name(showKey)` 格式(如 `alan(hero)`),否则仅显示用户名"
|
|
9954
9954
|
},
|
|
9955
9955
|
{
|
|
9956
9956
|
"name": "iconMargin",
|
|
9957
|
-
"type": "
|
|
9957
|
+
"type": "number | string",
|
|
9958
9958
|
"required": "false",
|
|
9959
9959
|
"default": "0",
|
|
9960
|
-
"description": "
|
|
9960
|
+
"description": "头像与用户名之间的间距,支持数字(像素)或 CSS 字符串(如 `\"0 8px\"`)",
|
|
9961
9961
|
"group": "ui"
|
|
9962
9962
|
},
|
|
9963
9963
|
{
|
|
@@ -9965,7 +9965,7 @@
|
|
|
9965
9965
|
"type": "string",
|
|
9966
9966
|
"required": "false",
|
|
9967
9967
|
"default": "-",
|
|
9968
|
-
"description": "自定义
|
|
9968
|
+
"description": "自定义 Tooltip 替换字符串,支持 `#{name}` 和 `#{showKey}` 占位符,例如 `\"发起人:#{name}\"`",
|
|
9969
9969
|
"group": "basic"
|
|
9970
9970
|
}
|
|
9971
9971
|
],
|
|
@@ -10495,7 +10495,7 @@
|
|
|
10495
10495
|
"type": "boolean",
|
|
10496
10496
|
"required": false,
|
|
10497
10497
|
"default": "false",
|
|
10498
|
-
"description": "
|
|
10498
|
+
"description": "文案超出时是否隐藏溢出文本并在鼠标悬停时显示 Tooltip",
|
|
10499
10499
|
"group": "other"
|
|
10500
10500
|
},
|
|
10501
10501
|
{
|
|
@@ -10517,8 +10517,8 @@
|
|
|
10517
10517
|
"events": [
|
|
10518
10518
|
{
|
|
10519
10519
|
"type": "brick-value-mapping.click",
|
|
10520
|
-
"detail": "{ data:
|
|
10521
|
-
"description": "
|
|
10520
|
+
"detail": "{ data: 通过 dataSource 传入的附加数据, value: 当前映射的原始值 }",
|
|
10521
|
+
"description": "点击事件,需设置 `triggerClickEvent` 为 true 才会触发"
|
|
10522
10522
|
}
|
|
10523
10523
|
],
|
|
10524
10524
|
"interface": []
|
|
@@ -12663,7 +12663,7 @@
|
|
|
12663
12663
|
"id": "presentational-bricks.cost-time",
|
|
12664
12664
|
"name": "presentational-bricks.cost-time",
|
|
12665
12665
|
"dockind": "brick",
|
|
12666
|
-
"description": "
|
|
12666
|
+
"description": "耗时展示构件,将毫秒级时间自动转换为人类可读的时间文本(如\"15秒\"、\"1天\"),支持直接传入耗时或通过起止时间自动计算",
|
|
12667
12667
|
"author": "lynette",
|
|
12668
12668
|
"slots": null,
|
|
12669
12669
|
"history": null,
|
|
@@ -12680,21 +12680,21 @@
|
|
|
12680
12680
|
"name": "startTime",
|
|
12681
12681
|
"type": "string | number",
|
|
12682
12682
|
"required": "false",
|
|
12683
|
-
"description": "
|
|
12683
|
+
"description": "起始时间,与 endTime 配合使用,当未传入 cost 时自动计算耗时",
|
|
12684
12684
|
"group": "basic"
|
|
12685
12685
|
},
|
|
12686
12686
|
{
|
|
12687
12687
|
"name": "endTime",
|
|
12688
12688
|
"type": "string | number",
|
|
12689
12689
|
"required": "false",
|
|
12690
|
-
"description": "
|
|
12690
|
+
"description": "结束时间,与 startTime 配合使用,当未传入 cost 时自动计算耗时",
|
|
12691
12691
|
"group": "basic"
|
|
12692
12692
|
},
|
|
12693
12693
|
{
|
|
12694
12694
|
"name": "unitStyle",
|
|
12695
12695
|
"type": "CSSProperties",
|
|
12696
12696
|
"required": "false",
|
|
12697
|
-
"description": "
|
|
12697
|
+
"description": "时间单位文本的自定义样式,设置后将使用自定义渲染逻辑而非默认的 costTime 函数",
|
|
12698
12698
|
"group": "ui"
|
|
12699
12699
|
},
|
|
12700
12700
|
{
|
|
@@ -12969,9 +12969,9 @@
|
|
|
12969
12969
|
},
|
|
12970
12970
|
{
|
|
12971
12971
|
"name": "format",
|
|
12972
|
-
"type": "
|
|
12972
|
+
"type": "string",
|
|
12973
12973
|
"required": "false",
|
|
12974
|
-
"description": "
|
|
12974
|
+
"description": "自定义日期显示格式,例如 \"YYYY-MM-DD HH:mm:ss\"",
|
|
12975
12975
|
"group": "other"
|
|
12976
12976
|
},
|
|
12977
12977
|
{
|
|
@@ -14643,7 +14643,7 @@
|
|
|
14643
14643
|
"name": "href",
|
|
14644
14644
|
"type": "string",
|
|
14645
14645
|
"required": "false",
|
|
14646
|
-
"description": "
|
|
14646
|
+
"description": "外链地址,使用原生 `<a>` 标签跳转,通常用于外部链接",
|
|
14647
14647
|
"group": "advanced"
|
|
14648
14648
|
},
|
|
14649
14649
|
{
|
|
@@ -14665,8 +14665,8 @@
|
|
|
14665
14665
|
"events": [
|
|
14666
14666
|
{
|
|
14667
14667
|
"type": "label.click",
|
|
14668
|
-
"detail": "
|
|
14669
|
-
"description": "点击 label
|
|
14668
|
+
"detail": "编排者通过 `dataSource` 属性传入的自定义数据(若未设置则回退到已废弃的 `data` 属性)",
|
|
14669
|
+
"description": "点击 label 时触发"
|
|
14670
14670
|
}
|
|
14671
14671
|
],
|
|
14672
14672
|
"interface": []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/presentational-bricks",
|
|
3
|
-
"version": "1.339.
|
|
3
|
+
"version": "1.339.1",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-basics/tree/master/bricks/presentational-bricks",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"@next-dll/ace": "*",
|
|
86
86
|
"@next-dll/react-dnd": "*"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "a744077ea6d50ceba6828da22d08a9e0f99764d6"
|
|
89
89
|
}
|