@next-bricks/presentational-bricks 1.252.1 → 1.252.2
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/CHANGELOG.md +72 -438
- package/deploy/contract.yaml +113 -113
- package/dist/bricks.json +34 -34
- package/dist/{index.bf43c603.js → index.9a30cab7.js} +2 -2
- package/dist/index.9a30cab7.js.map +1 -0
- package/dist/lazy-bricks/{~bricks-use-form-and-markdown.dd92.e98f6b8e.js → ~bricks-use-form-and-markdown.dd92.e3d0b1fd.js} +1 -1
- package/dist/lazy-bricks/{~bricks-use-form-and-markdown.dd92.e98f6b8e.js.map → ~bricks-use-form-and-markdown.dd92.e3d0b1fd.js.map} +1 -1
- package/dist/stories.json +30 -2
- package/package.json +2 -2
- package/dist/index.bf43c603.js.map +0 -1
package/dist/stories.json
CHANGED
|
@@ -7416,6 +7416,7 @@
|
|
|
7416
7416
|
{
|
|
7417
7417
|
"name": "showTagCircle",
|
|
7418
7418
|
"type": "boolean",
|
|
7419
|
+
"required": "false",
|
|
7419
7420
|
"default": "false",
|
|
7420
7421
|
"description": "是否在标签内显示小圆点",
|
|
7421
7422
|
"group": "ui"
|
|
@@ -7423,6 +7424,7 @@
|
|
|
7423
7424
|
{
|
|
7424
7425
|
"name": "showCard",
|
|
7425
7426
|
"type": "boolean",
|
|
7427
|
+
"required": "false",
|
|
7426
7428
|
"default": "true",
|
|
7427
7429
|
"description": "是否显示卡片",
|
|
7428
7430
|
"group": "basic"
|
|
@@ -7430,6 +7432,7 @@
|
|
|
7430
7432
|
{
|
|
7431
7433
|
"name": "dataSource",
|
|
7432
7434
|
"type": "Record<string, any>",
|
|
7435
|
+
"required": "false",
|
|
7433
7436
|
"description": "数据源,通过 useResolves 从后台接口获取",
|
|
7434
7437
|
"deprecated": true,
|
|
7435
7438
|
"group": "other"
|
|
@@ -7437,12 +7440,14 @@
|
|
|
7437
7440
|
{
|
|
7438
7441
|
"name": "color",
|
|
7439
7442
|
"type": "string | Color",
|
|
7443
|
+
"required": "false",
|
|
7440
7444
|
"description": "标签的颜色配置,当 `componentType=Tag` 且 `closable!=true` 时才有效,除了提供内置八种主题色,也支持直接赋色值(如 `#f5f5f5`)使用",
|
|
7441
7445
|
"group": "ui"
|
|
7442
7446
|
},
|
|
7443
7447
|
{
|
|
7444
7448
|
"name": "componentType",
|
|
7445
7449
|
"type": "TagTypeProps",
|
|
7450
|
+
"required": "false",
|
|
7446
7451
|
"default": "\"Tag\"",
|
|
7447
7452
|
"description": "组件类型,对应 ant-design 中的基本标签和可选中标签",
|
|
7448
7453
|
"group": "basic"
|
|
@@ -7450,12 +7455,14 @@
|
|
|
7450
7455
|
{
|
|
7451
7456
|
"name": "default",
|
|
7452
7457
|
"type": "string | string[]",
|
|
7458
|
+
"required": "false",
|
|
7453
7459
|
"description": "componentType 为`CheckableTag`的时候默认选中的标签 key",
|
|
7454
7460
|
"group": "basic"
|
|
7455
7461
|
},
|
|
7456
7462
|
{
|
|
7457
7463
|
"name": "multipleCheck",
|
|
7458
7464
|
"type": "boolean",
|
|
7465
|
+
"required": "false",
|
|
7459
7466
|
"default": "true",
|
|
7460
7467
|
"description": "是否能多选,多选场景下右上角会有小圆点提示",
|
|
7461
7468
|
"group": "basic"
|
|
@@ -7463,6 +7470,7 @@
|
|
|
7463
7470
|
{
|
|
7464
7471
|
"name": "cancelable",
|
|
7465
7472
|
"type": "boolean",
|
|
7473
|
+
"required": "false",
|
|
7466
7474
|
"default": "true",
|
|
7467
7475
|
"description": "标签是否可以取消单选,在 `componentType` 为 `CheckableTag` 且 `multipleCheck` 为 `false` 时生效。",
|
|
7468
7476
|
"group": "basic"
|
|
@@ -7470,6 +7478,7 @@
|
|
|
7470
7478
|
{
|
|
7471
7479
|
"name": "closable",
|
|
7472
7480
|
"type": "boolean",
|
|
7481
|
+
"required": "false",
|
|
7473
7482
|
"default": "false",
|
|
7474
7483
|
"description": "标签是否可以关闭",
|
|
7475
7484
|
"group": "basic"
|
|
@@ -7477,30 +7486,35 @@
|
|
|
7477
7486
|
{
|
|
7478
7487
|
"name": "configProps",
|
|
7479
7488
|
"type": "Record<string, any>",
|
|
7489
|
+
"required": "false",
|
|
7480
7490
|
"description": "ant-design 相关配置项, [具体查阅](https://ant.design/components/tag-cn/#Tag) ,只有在 componentType=Tag 时才有效",
|
|
7481
7491
|
"group": "other"
|
|
7482
7492
|
},
|
|
7483
7493
|
{
|
|
7484
7494
|
"name": "disabledTooltip",
|
|
7485
7495
|
"type": "string",
|
|
7496
|
+
"required": "false",
|
|
7486
7497
|
"description": "禁用标签的 tooltip",
|
|
7487
7498
|
"group": "basic"
|
|
7488
7499
|
},
|
|
7489
7500
|
{
|
|
7490
7501
|
"name": "tooltipProps",
|
|
7491
7502
|
"type": "TooltipProps",
|
|
7503
|
+
"required": "false",
|
|
7492
7504
|
"description": "标签的 tooltip 相关配置项, [具体查阅](https://ant.design/components/tooltip-cn/#API)",
|
|
7493
7505
|
"group": "other"
|
|
7494
7506
|
},
|
|
7495
7507
|
{
|
|
7496
7508
|
"name": "label",
|
|
7497
7509
|
"type": "string",
|
|
7510
|
+
"required": "false",
|
|
7498
7511
|
"description": "标签前的 label",
|
|
7499
7512
|
"group": "basic"
|
|
7500
7513
|
},
|
|
7501
7514
|
{
|
|
7502
7515
|
"name": "fields",
|
|
7503
7516
|
"type": "object",
|
|
7517
|
+
"required": "false",
|
|
7504
7518
|
"default": "{ label: \"label\", key: \"key\", icon: \"icon\"}",
|
|
7505
7519
|
"description": "这里可以规定从 dataSource 中的哪个字段取标签渲染的数据,例如 dataSource 返回的数据为 [{key:\"1\"},{key:\"2\"}],则可写成 {label: \"key\", key: \"key\"}",
|
|
7506
7520
|
"deprecated": true,
|
|
@@ -7509,6 +7523,7 @@
|
|
|
7509
7523
|
{
|
|
7510
7524
|
"name": "textEllipsis",
|
|
7511
7525
|
"type": "boolean",
|
|
7526
|
+
"required": "false",
|
|
7512
7527
|
"default": "false",
|
|
7513
7528
|
"description": "文字是否超出省略",
|
|
7514
7529
|
"group": "ui"
|
|
@@ -7516,26 +7531,28 @@
|
|
|
7516
7531
|
{
|
|
7517
7532
|
"name": "tagStyle",
|
|
7518
7533
|
"type": "Record<string, any>",
|
|
7534
|
+
"required": "false",
|
|
7519
7535
|
"description": "标签的自定义样式",
|
|
7520
7536
|
"group": "ui"
|
|
7521
7537
|
},
|
|
7522
7538
|
{
|
|
7523
7539
|
"name": "tagCheckedStyle",
|
|
7524
7540
|
"type": "Record<string, any>",
|
|
7541
|
+
"required": "false",
|
|
7525
7542
|
"description": "标签选中的自定义样式",
|
|
7526
7543
|
"group": "ui"
|
|
7527
7544
|
},
|
|
7528
7545
|
{
|
|
7529
7546
|
"name": "tagHoverStyle",
|
|
7530
7547
|
"type": "Record<string, any>",
|
|
7548
|
+
"required": "false",
|
|
7531
7549
|
"description": "标签 Hover 的自定义样式",
|
|
7532
7550
|
"group": "ui"
|
|
7533
7551
|
},
|
|
7534
7552
|
{
|
|
7535
7553
|
"name": "afterBrick",
|
|
7536
|
-
"type": "
|
|
7554
|
+
"type": "object",
|
|
7537
7555
|
"required": "false",
|
|
7538
|
-
"default": "-",
|
|
7539
7556
|
"description": "最后一个tag后面使用子构件,具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf)",
|
|
7540
7557
|
"group": "advanced"
|
|
7541
7558
|
}
|
|
@@ -12794,42 +12811,49 @@
|
|
|
12794
12811
|
{
|
|
12795
12812
|
"name": "text",
|
|
12796
12813
|
"type": "string",
|
|
12814
|
+
"required": "false",
|
|
12797
12815
|
"description": "文字内容",
|
|
12798
12816
|
"group": "basic"
|
|
12799
12817
|
},
|
|
12800
12818
|
{
|
|
12801
12819
|
"name": "prefixIcon",
|
|
12802
12820
|
"type": "MenuIcon",
|
|
12821
|
+
"required": "false",
|
|
12803
12822
|
"description": "前缀图标",
|
|
12804
12823
|
"group": "basic"
|
|
12805
12824
|
},
|
|
12806
12825
|
{
|
|
12807
12826
|
"name": "suffixIcon",
|
|
12808
12827
|
"type": "MenuIcon",
|
|
12828
|
+
"required": "false",
|
|
12809
12829
|
"description": "后缀图标",
|
|
12810
12830
|
"group": "basic"
|
|
12811
12831
|
},
|
|
12812
12832
|
{
|
|
12813
12833
|
"name": "url",
|
|
12814
12834
|
"type": "string",
|
|
12835
|
+
"required": "false",
|
|
12815
12836
|
"description": "链接的 URL",
|
|
12816
12837
|
"group": "basic"
|
|
12817
12838
|
},
|
|
12818
12839
|
{
|
|
12819
12840
|
"name": "href",
|
|
12820
12841
|
"type": "string",
|
|
12842
|
+
"required": "false",
|
|
12821
12843
|
"description": "是否使用原生 <a> 标签,通常用于外链的跳转",
|
|
12822
12844
|
"group": "basic"
|
|
12823
12845
|
},
|
|
12824
12846
|
{
|
|
12825
12847
|
"name": "dataSource",
|
|
12826
12848
|
"type": "any",
|
|
12849
|
+
"required": "false",
|
|
12827
12850
|
"description": "`label.click`事件的传出的数据",
|
|
12828
12851
|
"group": "other"
|
|
12829
12852
|
},
|
|
12830
12853
|
{
|
|
12831
12854
|
"name": "data",
|
|
12832
12855
|
"type": "any",
|
|
12856
|
+
"required": "false",
|
|
12833
12857
|
"description": "`label.click`事件的详情",
|
|
12834
12858
|
"deprecated": true,
|
|
12835
12859
|
"group": "other"
|
|
@@ -14511,12 +14535,14 @@
|
|
|
14511
14535
|
{
|
|
14512
14536
|
"name": "value",
|
|
14513
14537
|
"type": "string",
|
|
14538
|
+
"required": "false",
|
|
14514
14539
|
"description": "markdown 展示内容",
|
|
14515
14540
|
"group": "basic"
|
|
14516
14541
|
},
|
|
14517
14542
|
{
|
|
14518
14543
|
"name": "dataSource",
|
|
14519
14544
|
"type": "Record<string, any>",
|
|
14545
|
+
"required": "false",
|
|
14520
14546
|
"description": "[已废弃]数据来源",
|
|
14521
14547
|
"deprecated": true,
|
|
14522
14548
|
"group": "advanced"
|
|
@@ -14524,6 +14550,7 @@
|
|
|
14524
14550
|
{
|
|
14525
14551
|
"name": "fields",
|
|
14526
14552
|
"type": "object",
|
|
14553
|
+
"required": "false",
|
|
14527
14554
|
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
|
|
14528
14555
|
"deprecated": true,
|
|
14529
14556
|
"group": "advanced"
|
|
@@ -14531,6 +14558,7 @@
|
|
|
14531
14558
|
{
|
|
14532
14559
|
"name": "imagePreview",
|
|
14533
14560
|
"type": "boolean",
|
|
14561
|
+
"required": "false",
|
|
14534
14562
|
"default": "true",
|
|
14535
14563
|
"description": "markdown 图片是否支持预览",
|
|
14536
14564
|
"group": "basic"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/presentational-bricks",
|
|
3
|
-
"version": "1.252.
|
|
3
|
+
"version": "1.252.2",
|
|
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",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"@next-dll/ace": "*",
|
|
56
56
|
"@next-dll/react-dnd": "*"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "8dcc3cbbfdd646830ec9a74fcd52fb28c0b66b9e"
|
|
59
59
|
}
|