@next-bricks/presentational-bricks 1.252.2 → 1.254.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.
- package/CHANGELOG.md +36 -0
- package/deploy/contract.yaml +117 -117
- package/dist/bricks.json +32 -32
- package/dist/{index.9a30cab7.js → index.efeefaa0.js} +2 -2
- package/dist/index.efeefaa0.js.map +1 -0
- package/dist/lazy-bricks/{card-item.dd92.bc5512c0.js → card-item.dd92.7f5bb9b7.js} +1 -1
- package/dist/lazy-bricks/{card-item.dd92.bc5512c0.js.map → card-item.dd92.7f5bb9b7.js.map} +1 -1
- package/dist/lazy-bricks/{~bricks-use-form-and-markdown.dd92.e3d0b1fd.js → ~bricks-use-form-and-markdown.dd92.f52e6797.js} +2 -2
- package/dist/lazy-bricks/~bricks-use-form-and-markdown.dd92.f52e6797.js.map +1 -0
- package/dist/stories.json +1224 -433
- package/package.json +2 -2
- package/dist/index.9a30cab7.js.map +0 -1
- package/dist/lazy-bricks/~bricks-use-form-and-markdown.dd92.e3d0b1fd.js.map +0 -1
package/dist/stories.json
CHANGED
|
@@ -1881,7 +1881,7 @@
|
|
|
1881
1881
|
},
|
|
1882
1882
|
"description": {
|
|
1883
1883
|
"en": "",
|
|
1884
|
-
"zh": "按不同条件渲染,比如告警数为0是绿色,大于1
|
|
1884
|
+
"zh": "按不同条件渲染,比如告警数为0是绿色,大于1时显示黄色, 更灵活的方式请通过表达式、函数来做数据处理"
|
|
1885
1885
|
},
|
|
1886
1886
|
"icon": {
|
|
1887
1887
|
"lib": "fa",
|
|
@@ -1894,9 +1894,6 @@
|
|
|
1894
1894
|
"fullScore": 150,
|
|
1895
1895
|
"score": 130
|
|
1896
1896
|
},
|
|
1897
|
-
"fields": {
|
|
1898
|
-
"value": "score"
|
|
1899
|
-
},
|
|
1900
1897
|
"rules": [
|
|
1901
1898
|
{
|
|
1902
1899
|
"condition": {
|
|
@@ -2011,29 +2008,32 @@
|
|
|
2011
2008
|
"name": "rules",
|
|
2012
2009
|
"type": "RuleProps[]",
|
|
2013
2010
|
"required": "false",
|
|
2014
|
-
"default": "
|
|
2015
|
-
"description": "
|
|
2011
|
+
"default": "[]",
|
|
2012
|
+
"description": "展示规则, 具体请查看[Mongodb条件操作符](https://www.mongodb.com/docs/manual/reference/operator/query/)",
|
|
2013
|
+
"group": "basic"
|
|
2016
2014
|
},
|
|
2017
2015
|
{
|
|
2018
2016
|
"name": "fields",
|
|
2019
|
-
"type": "{ value: string }",
|
|
2017
|
+
"type": "{ value: string; }",
|
|
2020
2018
|
"required": "false",
|
|
2021
|
-
"
|
|
2022
|
-
"
|
|
2019
|
+
"description": "[已废弃]显示的字段值,支持通过 path 指定",
|
|
2020
|
+
"deprecated": true,
|
|
2021
|
+
"group": "other"
|
|
2023
2022
|
},
|
|
2024
2023
|
{
|
|
2025
2024
|
"name": "dataSource",
|
|
2026
2025
|
"type": "DataType",
|
|
2027
2026
|
"required": "true",
|
|
2028
|
-
"
|
|
2029
|
-
"
|
|
2027
|
+
"description": "数据",
|
|
2028
|
+
"group": "basic"
|
|
2030
2029
|
},
|
|
2031
2030
|
{
|
|
2032
2031
|
"name": "type",
|
|
2033
|
-
"type": "default | label",
|
|
2032
|
+
"type": "\"default\" | \"label\"",
|
|
2034
2033
|
"required": "false",
|
|
2035
|
-
"default": "label",
|
|
2036
|
-
"description": "展示类型,label 表示通过标签的风格展示相关内容,default 表示默认的风格展示(display: block)"
|
|
2034
|
+
"default": "\"label\"",
|
|
2035
|
+
"description": "展示类型,label 表示通过标签的风格展示相关内容,default 表示默认的风格展示(display: block)",
|
|
2036
|
+
"group": "basic"
|
|
2037
2037
|
}
|
|
2038
2038
|
],
|
|
2039
2039
|
"interface": [
|
|
@@ -2063,7 +2063,7 @@
|
|
|
2063
2063
|
},
|
|
2064
2064
|
{
|
|
2065
2065
|
"name": "style",
|
|
2066
|
-
"type": "
|
|
2066
|
+
"type": "{ backgroundColor?: string; borderColor?: string; color?: string; }",
|
|
2067
2067
|
"required": false,
|
|
2068
2068
|
"description": ""
|
|
2069
2069
|
}
|
|
@@ -2367,7 +2367,7 @@
|
|
|
2367
2367
|
"children": [
|
|
2368
2368
|
{
|
|
2369
2369
|
"name": "component",
|
|
2370
|
-
"type": "
|
|
2370
|
+
"type": "{ brick?: string; properties?: any; }",
|
|
2371
2371
|
"required": false,
|
|
2372
2372
|
"description": "[已废弃]自定义该 item 的展示构件"
|
|
2373
2373
|
},
|
|
@@ -2689,50 +2689,54 @@
|
|
|
2689
2689
|
"name": "dividerTitle",
|
|
2690
2690
|
"type": "string",
|
|
2691
2691
|
"required": "false",
|
|
2692
|
-
"
|
|
2693
|
-
"
|
|
2692
|
+
"description": "标题",
|
|
2693
|
+
"group": "basic"
|
|
2694
2694
|
},
|
|
2695
2695
|
{
|
|
2696
2696
|
"name": "type",
|
|
2697
2697
|
"type": "\"horizontal\" | \"vertical\" | \"radiation\"",
|
|
2698
2698
|
"required": "false",
|
|
2699
|
-
"default": "horizontal",
|
|
2700
|
-
"description": "水平|垂直|放射类型,注意`radiation`是个特殊的类型,该样式是特定的"
|
|
2699
|
+
"default": "\"horizontal\"",
|
|
2700
|
+
"description": "水平|垂直|放射类型,注意`radiation`是个特殊的类型,该样式是特定的",
|
|
2701
|
+
"group": "basic"
|
|
2701
2702
|
},
|
|
2702
2703
|
{
|
|
2703
2704
|
"name": "dashed",
|
|
2704
2705
|
"type": "boolean",
|
|
2705
2706
|
"required": "false",
|
|
2706
2707
|
"default": "false",
|
|
2707
|
-
"description": "是否虚线"
|
|
2708
|
+
"description": "是否虚线",
|
|
2709
|
+
"group": "basic"
|
|
2708
2710
|
},
|
|
2709
2711
|
{
|
|
2710
2712
|
"name": "dividerStyle",
|
|
2711
|
-
"type": "
|
|
2713
|
+
"type": "CSSProperties",
|
|
2712
2714
|
"required": "false",
|
|
2713
|
-
"
|
|
2714
|
-
"
|
|
2715
|
+
"description": "分割线自定义样式",
|
|
2716
|
+
"group": "basic"
|
|
2715
2717
|
},
|
|
2716
2718
|
{
|
|
2717
2719
|
"name": "orientation",
|
|
2718
|
-
"type": "\"center\"
|
|
2720
|
+
"type": "\"center\" | \"left\" | \"right\"",
|
|
2719
2721
|
"required": "false",
|
|
2720
|
-
"default": "center",
|
|
2721
|
-
"description": "标题位置"
|
|
2722
|
+
"default": "\"center\"",
|
|
2723
|
+
"description": "标题位置",
|
|
2724
|
+
"group": "basic"
|
|
2722
2725
|
},
|
|
2723
2726
|
{
|
|
2724
2727
|
"name": "plain",
|
|
2725
|
-
"type": "
|
|
2728
|
+
"type": "boolean",
|
|
2726
2729
|
"required": "false",
|
|
2727
2730
|
"default": "false",
|
|
2728
|
-
"description": "文字是否显示为普通正文样式"
|
|
2731
|
+
"description": "文字是否显示为普通正文样式",
|
|
2732
|
+
"group": "ui"
|
|
2729
2733
|
},
|
|
2730
2734
|
{
|
|
2731
2735
|
"name": "proportion",
|
|
2732
|
-
"type": "
|
|
2736
|
+
"type": "number[]",
|
|
2733
2737
|
"required": "false",
|
|
2734
|
-
"
|
|
2735
|
-
"
|
|
2738
|
+
"description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 `radiation`",
|
|
2739
|
+
"group": "basic"
|
|
2736
2740
|
}
|
|
2737
2741
|
],
|
|
2738
2742
|
"interface": []
|
|
@@ -3222,64 +3226,68 @@
|
|
|
3222
3226
|
"name": "inputFormat",
|
|
3223
3227
|
"type": "string",
|
|
3224
3228
|
"required": "false",
|
|
3225
|
-
"
|
|
3226
|
-
"
|
|
3229
|
+
"description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://dayjs.gitee.io/docs/zh-CN/parse/string-format)",
|
|
3230
|
+
"group": "basic"
|
|
3227
3231
|
},
|
|
3228
3232
|
{
|
|
3229
3233
|
"name": "outputFormat",
|
|
3230
3234
|
"type": "string",
|
|
3231
3235
|
"required": "false",
|
|
3232
|
-
"
|
|
3233
|
-
"
|
|
3236
|
+
"description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://dayjs.gitee.io/docs/zh-CN/parse/string-format)",
|
|
3237
|
+
"group": "basic"
|
|
3234
3238
|
},
|
|
3235
3239
|
{
|
|
3236
3240
|
"name": "dataSource",
|
|
3237
3241
|
"type": "Record<string, any>",
|
|
3238
3242
|
"required": "false",
|
|
3239
|
-
"
|
|
3240
|
-
"
|
|
3243
|
+
"description": "[已废弃]数据来源",
|
|
3244
|
+
"deprecated": true,
|
|
3245
|
+
"group": "other"
|
|
3241
3246
|
},
|
|
3242
3247
|
{
|
|
3243
3248
|
"name": "fields",
|
|
3244
|
-
"type": "{ value: string }",
|
|
3249
|
+
"type": "{ value: string; }",
|
|
3245
3250
|
"required": "false",
|
|
3246
|
-
"
|
|
3247
|
-
"
|
|
3251
|
+
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时对应字段的值",
|
|
3252
|
+
"deprecated": true,
|
|
3253
|
+
"group": "other"
|
|
3248
3254
|
},
|
|
3249
3255
|
{
|
|
3250
3256
|
"name": "value",
|
|
3251
3257
|
"type": "number | string",
|
|
3252
3258
|
"required": "false",
|
|
3253
|
-
"
|
|
3254
|
-
"
|
|
3259
|
+
"description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
|
|
3260
|
+
"group": "basic"
|
|
3255
3261
|
},
|
|
3256
3262
|
{
|
|
3257
3263
|
"name": "formatter",
|
|
3258
|
-
"type": "full|default|relative|future|accurate|auto",
|
|
3264
|
+
"type": "\"full\" | \"default\" | \"relative\" | \"future\" | \"accurate\" | \"auto\"",
|
|
3259
3265
|
"required": "false",
|
|
3260
|
-
"
|
|
3261
|
-
"
|
|
3266
|
+
"description": "枚举值:full, default, relative, future, accurate, auto [类型链接](https://github.com/easyops-cn/next-libs/blob/207fe7ee3ac010ab860c23cd062216c8ca612f0c/libs/datetime/src/humanizeTime.ts#L9)",
|
|
3267
|
+
"group": "basic"
|
|
3262
3268
|
},
|
|
3263
3269
|
{
|
|
3264
3270
|
"name": "isMicrosecond",
|
|
3265
3271
|
"type": "boolean",
|
|
3266
3272
|
"required": "false",
|
|
3267
3273
|
"default": "false",
|
|
3268
|
-
"description": "value 值的单位是否为毫秒"
|
|
3274
|
+
"description": "value 值的单位是否为毫秒",
|
|
3275
|
+
"group": "basic"
|
|
3269
3276
|
},
|
|
3270
3277
|
{
|
|
3271
3278
|
"name": "isCostTime",
|
|
3272
3279
|
"type": "boolean",
|
|
3273
3280
|
"required": "false",
|
|
3274
3281
|
"default": "false",
|
|
3275
|
-
"description": "是否展示为耗费时间,例如:'1 个月 20 天'"
|
|
3282
|
+
"description": "是否展示为耗费时间,例如:'1 个月 20 天'",
|
|
3283
|
+
"group": "basic"
|
|
3276
3284
|
},
|
|
3277
3285
|
{
|
|
3278
3286
|
"name": "link",
|
|
3279
3287
|
"type": "LinkInfo",
|
|
3280
3288
|
"required": "false",
|
|
3281
|
-
"
|
|
3282
|
-
"
|
|
3289
|
+
"description": "跳转链接,默认为空",
|
|
3290
|
+
"group": "basic"
|
|
3283
3291
|
}
|
|
3284
3292
|
],
|
|
3285
3293
|
"interface": [
|
|
@@ -3601,16 +3609,16 @@
|
|
|
3601
3609
|
{
|
|
3602
3610
|
"name": "type",
|
|
3603
3611
|
"type": "\"link\" | \"text\"",
|
|
3604
|
-
"default": "link",
|
|
3605
3612
|
"required": "false",
|
|
3613
|
+
"default": "link",
|
|
3606
3614
|
"description": "链接类型:默认链接 - link 和 文本链接 - text",
|
|
3607
3615
|
"group": "ui"
|
|
3608
3616
|
},
|
|
3609
3617
|
{
|
|
3610
3618
|
"name": "iconAlign",
|
|
3611
3619
|
"type": "\"left\" | \"right\"",
|
|
3612
|
-
"default": "left",
|
|
3613
3620
|
"required": "false",
|
|
3621
|
+
"default": "left",
|
|
3614
3622
|
"description": "链接图标位置:左边 - left 右边 - right",
|
|
3615
3623
|
"group": "ui"
|
|
3616
3624
|
},
|
|
@@ -4544,7 +4552,8 @@
|
|
|
4544
4552
|
],
|
|
4545
4553
|
"events": [
|
|
4546
4554
|
{
|
|
4547
|
-
"type": "rate.change"
|
|
4555
|
+
"type": "rate.change",
|
|
4556
|
+
"detail": "Record<number, any>"
|
|
4548
4557
|
}
|
|
4549
4558
|
],
|
|
4550
4559
|
"interface": []
|
|
@@ -4740,45 +4749,166 @@
|
|
|
4740
4749
|
"change": "新增状态,`EmptyResultStatus`, 与规范对齐"
|
|
4741
4750
|
}
|
|
4742
4751
|
],
|
|
4743
|
-
"memo": "
|
|
4752
|
+
"memo": "",
|
|
4744
4753
|
"properties": [
|
|
4745
4754
|
{
|
|
4746
4755
|
"name": "customTitle",
|
|
4747
4756
|
"type": "string",
|
|
4748
4757
|
"required": "false",
|
|
4749
|
-
"
|
|
4750
|
-
"
|
|
4758
|
+
"description": "主标题文字",
|
|
4759
|
+
"group": "basic"
|
|
4751
4760
|
},
|
|
4752
4761
|
{
|
|
4753
4762
|
"name": "status",
|
|
4754
|
-
"type": "
|
|
4763
|
+
"type": "BrickResultStatus | EmptyResultStatus | IllustrationsStatus",
|
|
4755
4764
|
"required": "true",
|
|
4756
4765
|
"default": "-",
|
|
4757
|
-
"description": "结果的状态, 决定图标和颜色"
|
|
4766
|
+
"description": "结果的状态, 决定图标和颜色",
|
|
4767
|
+
"group": "basic"
|
|
4758
4768
|
},
|
|
4759
4769
|
{
|
|
4760
4770
|
"name": "subTitle",
|
|
4761
4771
|
"type": "string",
|
|
4762
4772
|
"required": "false",
|
|
4763
|
-
"
|
|
4764
|
-
"
|
|
4773
|
+
"description": "次标题文字",
|
|
4774
|
+
"group": "basic"
|
|
4765
4775
|
},
|
|
4766
4776
|
{
|
|
4767
4777
|
"name": "icon",
|
|
4768
4778
|
"type": "string",
|
|
4769
4779
|
"required": "false",
|
|
4770
4780
|
"default": "-",
|
|
4771
|
-
"description": "[自定义图标](https://ant.design/components/icon-cn/), 仅当 status 为 `BrickResultStatus` 时有效"
|
|
4781
|
+
"description": "[自定义图标](https://ant.design/components/icon-cn/), 仅当 status 为 `BrickResultStatus` 时有效",
|
|
4782
|
+
"group": "ui"
|
|
4772
4783
|
},
|
|
4773
4784
|
{
|
|
4774
4785
|
"name": "illustrationsConfig",
|
|
4775
4786
|
"type": "IllustrationsConfig",
|
|
4776
4787
|
"required": "false",
|
|
4777
4788
|
"default": "{}",
|
|
4778
|
-
"description": "自定义插画配置"
|
|
4789
|
+
"description": "自定义插画配置",
|
|
4790
|
+
"group": "other"
|
|
4779
4791
|
}
|
|
4780
4792
|
],
|
|
4781
|
-
"interface": [
|
|
4793
|
+
"interface": [
|
|
4794
|
+
{
|
|
4795
|
+
"name": "IllustrationsConfig",
|
|
4796
|
+
"typeParameter": null,
|
|
4797
|
+
"kind": "interface",
|
|
4798
|
+
"children": [
|
|
4799
|
+
{
|
|
4800
|
+
"name": "category",
|
|
4801
|
+
"type": "string",
|
|
4802
|
+
"required": false,
|
|
4803
|
+
"description": ""
|
|
4804
|
+
},
|
|
4805
|
+
{
|
|
4806
|
+
"name": "imageStyle",
|
|
4807
|
+
"type": "CSSProperties",
|
|
4808
|
+
"required": false,
|
|
4809
|
+
"description": ""
|
|
4810
|
+
},
|
|
4811
|
+
{
|
|
4812
|
+
"name": "name",
|
|
4813
|
+
"type": "string",
|
|
4814
|
+
"required": false,
|
|
4815
|
+
"description": ""
|
|
4816
|
+
}
|
|
4817
|
+
],
|
|
4818
|
+
"indexSignature": []
|
|
4819
|
+
},
|
|
4820
|
+
{
|
|
4821
|
+
"name": "BrickResultStatus",
|
|
4822
|
+
"typeParameter": null,
|
|
4823
|
+
"kind": "enum",
|
|
4824
|
+
"children": [
|
|
4825
|
+
{
|
|
4826
|
+
"name": "E403",
|
|
4827
|
+
"value": "\"403\"",
|
|
4828
|
+
"description": ""
|
|
4829
|
+
},
|
|
4830
|
+
{
|
|
4831
|
+
"name": "E404",
|
|
4832
|
+
"value": "\"404\"",
|
|
4833
|
+
"description": ""
|
|
4834
|
+
},
|
|
4835
|
+
{
|
|
4836
|
+
"name": "E500",
|
|
4837
|
+
"value": "\"500\"",
|
|
4838
|
+
"description": ""
|
|
4839
|
+
},
|
|
4840
|
+
{
|
|
4841
|
+
"name": "Error",
|
|
4842
|
+
"value": "\"error\"",
|
|
4843
|
+
"description": ""
|
|
4844
|
+
},
|
|
4845
|
+
{
|
|
4846
|
+
"name": "Info",
|
|
4847
|
+
"value": "\"info\"",
|
|
4848
|
+
"description": ""
|
|
4849
|
+
},
|
|
4850
|
+
{
|
|
4851
|
+
"name": "Success",
|
|
4852
|
+
"value": "\"success\"",
|
|
4853
|
+
"description": ""
|
|
4854
|
+
},
|
|
4855
|
+
{
|
|
4856
|
+
"name": "Warning",
|
|
4857
|
+
"value": "\"warning\"",
|
|
4858
|
+
"description": ""
|
|
4859
|
+
}
|
|
4860
|
+
]
|
|
4861
|
+
},
|
|
4862
|
+
{
|
|
4863
|
+
"name": "EmptyResultStatus",
|
|
4864
|
+
"typeParameter": null,
|
|
4865
|
+
"kind": "enum",
|
|
4866
|
+
"children": [
|
|
4867
|
+
{
|
|
4868
|
+
"name": "BrowserTooOld",
|
|
4869
|
+
"value": "\"browser-too-old\"",
|
|
4870
|
+
"description": ""
|
|
4871
|
+
},
|
|
4872
|
+
{
|
|
4873
|
+
"name": "Empty",
|
|
4874
|
+
"value": "\"empty\"",
|
|
4875
|
+
"description": ""
|
|
4876
|
+
},
|
|
4877
|
+
{
|
|
4878
|
+
"name": "NoData",
|
|
4879
|
+
"value": "\"no-data\"",
|
|
4880
|
+
"description": ""
|
|
4881
|
+
},
|
|
4882
|
+
{
|
|
4883
|
+
"name": "NoHistoryVersion",
|
|
4884
|
+
"value": "\"no-history-version\"",
|
|
4885
|
+
"description": ""
|
|
4886
|
+
},
|
|
4887
|
+
{
|
|
4888
|
+
"name": "NoVisitRecord",
|
|
4889
|
+
"value": "\"no-visit-record\"",
|
|
4890
|
+
"description": ""
|
|
4891
|
+
},
|
|
4892
|
+
{
|
|
4893
|
+
"name": "SearchEmpty",
|
|
4894
|
+
"value": "\"search-empty\"",
|
|
4895
|
+
"description": ""
|
|
4896
|
+
},
|
|
4897
|
+
{
|
|
4898
|
+
"name": "WelcomeToCreate",
|
|
4899
|
+
"value": "\"welcome-to-create\"",
|
|
4900
|
+
"description": ""
|
|
4901
|
+
}
|
|
4902
|
+
]
|
|
4903
|
+
},
|
|
4904
|
+
{
|
|
4905
|
+
"name": "IllustrationsStatus",
|
|
4906
|
+
"typeParameter": null,
|
|
4907
|
+
"kind": "type",
|
|
4908
|
+
"description": "",
|
|
4909
|
+
"type": "\"illustrations\""
|
|
4910
|
+
}
|
|
4911
|
+
]
|
|
4782
4912
|
}
|
|
4783
4913
|
},
|
|
4784
4914
|
{
|
|
@@ -6285,7 +6415,7 @@
|
|
|
6285
6415
|
"change": "新增 `shouldUpdateUrlParams` 属性和 `sort.update` 事件"
|
|
6286
6416
|
}
|
|
6287
6417
|
],
|
|
6288
|
-
"memo": "> Tips: 在 react 中,boolean 类型的值是合法的子元素,但是不会被渲染出来。如果希望 boolean 值在表格单元格中展示成 `true`|`false`,可以使用平台管道进行转换,例如`@{someProperties|string}`。更多场景下可以结合 [基本数值映射构件](developers/brick-book/brick/presentational-bricks.brick-value-mapping) 把 boolean 类型的值转换成有意义的文本进行展示。\n### CustomColumn\n| property | type | required | default | description |\n| -------------------- | --------------------- | -------- | ------- | -------------------------------------------------------------- |\n| valueSuffix | string | - | - | 字段的值展示时的后缀 |\n| useBrick | UseBrickConf | - | - | 支持为某列自定义展示构件, 具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf) |\n| titleUseBrick | UseBrickConf | - | - | 支持为某列的标题自定义展示构件,可通过 DATA.title 获取标题文本,具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf) |\n| filters | {text:string,value:any}[] | - | - | 表头的筛选菜单项 |\n| verticalAlign | top \\| bottom | - | - | 单元格内元素的垂直对齐方式 |\n| colSpanKey | string | - | - | 每条记录的控制列合并的值的 key |\n| rowSpanKey | string | - | - | 每条记录的控制行合并的值的 key。如果希望将树形列表展平,并计算行合并的值,可以使用 flattenTreeDataListAndCalcRowSpan 自定义加工函数
|
|
6418
|
+
"memo": "> Tips: 在 react 中,boolean 类型的值是合法的子元素,但是不会被渲染出来。如果希望 boolean 值在表格单元格中展示成 `true`|`false`,可以使用平台管道进行转换,例如`@{someProperties|string}`。更多场景下可以结合 [基本数值映射构件](developers/brick-book/brick/presentational-bricks.brick-value-mapping) 把 boolean 类型的值转换成有意义的文本进行展示。\n### CustomColumn\n| property | type | required | default | description |\n| -------------------- | --------------------- | -------- | ------- | -------------------------------------------------------------- |\n| valueSuffix | string | - | - | 字段的值展示时的后缀 |\n| useBrick | UseBrickConf | - | - | 支持为某列自定义展示构件, 具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf) |\n| titleUseBrick | UseBrickConf | - | - | 支持为某列的标题自定义展示构件,可通过 DATA.title 获取标题文本,具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf) |\n| filters | {text:string,value:any}[] | - | - | 表头的筛选菜单项 |\n| verticalAlign | top \\| bottom | - | - | 单元格内元素的垂直对齐方式 |\n| colSpanKey | string | - | - | 每条记录的控制列合并的值的 key |\n| rowSpanKey | string | - | - | 每条记录的控制行合并的值的 key。如果希望将树形列表展平,并计算行合并的值,可以使用 flattenTreeDataListAndCalcRowSpan 自定义加工函数 |\n| ~~component~~ | ~~CustomColumnComponent~~ | - | - | ~~Deprecated。支持为某列自定义展示构件~~ |\n\n### UseBrickConf\n\n| property | type | required | default | description |\n| ------------- | -------------- | -------- | ------- | -------------------------------------------------- |\n| brick | string | ✔️ | - | 构件名称 |\n| properties | object | - | - | 构件属性 |\n| events | BrickEventsMap | - | - | 事件 |\n| transform | string\\|object | - | - | 属性数据转换 |\n| transformFrom | string | - | - | 属性数据转换来自数据源的哪个字段,不填则为整个数据 |\n\n`<presentational-bricks.brick-table>` 为某列自定义展示构件传递的数据源为:\n\n| field | type | description |\n| ----------- | ------ | ----------- |\n| cellData | any | 单元格数据 |\n| rowData | any | 整行数据 |\n| columnIndex | number | 列序号 |\n\n`<presentational-bricks.brick-table>` 为自定义行展开的构件传递的数据源为:\n\n| field | type | description |\n| -------- | ------ | ----------- |\n| rowData | any | 整行数据 |\n| rowIndex | number | 行序号 |\n\n### <del>CustomColumnComponent</del>\n\n<details>\n<summary>展开</summary>\n\n| property | type | required | default | description |\n| ---------- | -------------------------------------------- | -------- | ------- | ----------------------------------------------- |\n| brick | string | ✔️ | - | 构件名称 |\n| fields | {value: string; item: string; index: string} | ✔️ | - | 字段值、列表项和 index 对应所用构件的属性的 key |\n| properties | object | - | - | 构件属性 |\n| events | BrickEventsMap | - | - | 事件 |\n\n</details>\n\n### fields\n| property | type | required | default | description |\n| ---------- | ------ | -------- | -------- | -------------------------------------------------------------------------------------------------------- |\n| fields | fieldsType | - | - | 设置相关字段取自哪里,具体描述见下表 |\n\n### fieldsType\n| property | type | required | default | description |\n| ---------- | ------ | -------- | -------- | -------------------------------------------------------------------------------------------------------- |\n| dataSource | string | - | list | 指定 dataSource 从哪里来,默认为列表接口返回格式是{list:[],page:1,pageSize:10,total:20},即默认取自 list |\n| total | string | - | total | 指定 total 从哪里来,默认为列表接口返回格式是{list:[],page:1,pageSize:10,total:20},即默认取自 total |\n| page | string | - | page | 指定下表中 \"page.update\" 事件 detail 的 pagePath |\n| pageSize | string | - | pageSize | 指定下表 \"filter.update\" 事件 detail 的 pageSizePath |\n| ascend | string | - | ascend | 指定 ascend 升序排序对应字段,例如有些后台对应为 1 ,有些对应为 \"asc\"。这里默认为 \"ascend\" |\n| descend | string | - | descend | 指定 descend 降序排序对应字段,例如有些后台对应为 0 ,有些对应为 \"desc\"。这里默认为 \"descend\" |\n\n### pagination 默认配置\n\n如果不希望分页,如下设置即可:\n\n```\n{\n \"configProps\": {\n \"pagination\": false\n }\n}\n```\n\n如果希望覆盖默认配置,覆盖对应项即可,相关配置项具体查阅:[pagination](https://ant.design/components/pagination-cn/#API)\n\n```\n{\n \"configProps\": {\n \"pagination\": {\n \"pageSizeOptions\": [\"10\",\"100\",\"1000\"]\n }\n }\n}\n```\n\n| property | type | required | default | description |\n| --------------- | -------- | -------- | ------------------ | ------------------------------------- |\n| current | string | - | - | 页码,从 page properties 获取 |\n| pageSize | string | - | - | 每页条数,从 pageSize properties 获取 |\n| total | object | - | - | 总数,从 dataSource.total 获取 |\n| showSizeChanger | boolean | - | true | 展示页码变化器 |\n| pageSizeOptions | array | - | [\"10\", \"20\", \"50\"] | 每页条数选项 |\n| showTotal | function | - | - | 渲染成\"共 xx 条\" |\n\n\n### rowSelection 默认配置\n\n行选择默认为 false,不配置就不显示。如果要开启如下设置即可,这时 brick-table 会默认配置 onChange 事件:\n\n```\n{\n \"configProps\": {\n \"rowSelection\": true\n }\n}\n```\n\n如果希望覆盖或者扩展默认配置,覆盖对应项即可,相关配置项具体查阅:[rowSelection](https://ant.design/components/table-cn/#rowSelection)\n\n```\n{\n \"configProps\": {\n \"rowSelection\": {\n \"columnWidth\": \"88px\"\n }\n }\n}\n```\n\n| property | type | required | default | description |\n| -------- | -------- | -------- | ------- | --------------------------------- |\n| onChange | function | - | - | 选择行,会抛出事件\"select.update\" |\n\n### 排序\n\n如果某一列希望排序,则可以设对应列 `sorter:true`,例如:\n\n```\n{\n \"columns\": [\n {\n \"title\": \"主机\",\n \"key\": \"hostname\",\n \"dataIndex\": \"hostname\",\n \"sorter\": true\n }\n ]\n}\n```\n\n## flattenTreeDataListAndCalcRowSpan 自定义加工函数\n\n将树形数据列表按照 `options.flattenConfigs` 进行展平,并生成相应的行合并数据\n\n### Params\n\n| param | type | required | default | description |\n| ------------ | ------------------------------------------ | -------- | ------- | ------------------------------------------------------------------------ |\n| treeDataList | Record<string, unknown>[] | ✔️ | - | 树形数据列表 |\n| options | FlattenTreeDataListAndCalcRowSpanOptions | ✔️ | - | 函数选项 |\n| depth | number | - | 0 | 当前展平的深度,用于确定 `options.flattenConfigs` 中的当前层级的展平配置 |\n\n### Returns\n\n| type | description |\n| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Record<string, unknown>[] | 展平后的列表,除了按照 `options.flattenConfigs` 进行展平外,还会生成相应层级以 `options.flattenConfigs[].parentInChildKey + \"RowSpan\"` 为 key 的行合并数据 |\n\n### FlattenTreeDataListAndCalcRowSpanOptions\n\n| property | type | required | default | description |\n| -------------------- | ----------------- | -------- | ------- | ---------------------------------------- |\n| flattenConfigs | FlattenConfig[] | ✔️ | - | 展平配置列表,按照由父到子的顺序一一对应 |\n| omitChildrenInParent | boolean | - | - | 展平后,是否省略父级里的子列表 |\n\n### FlattenConfig\n\n| property | type | required | default | description |\n| ---------------- | -------- | -------- | ------- | ------------------------ |\n| childrenKey | string | ✔️ | - | 对应层级子列表的 key |\n| parentInChildKey | string | ✔️ | - | 展平后,父级在子级的 key |",
|
|
6289
6419
|
"properties": [
|
|
6290
6420
|
{
|
|
6291
6421
|
"name": "columns",
|
|
@@ -6297,7 +6427,7 @@
|
|
|
6297
6427
|
},
|
|
6298
6428
|
{
|
|
6299
6429
|
"name": "dataSource",
|
|
6300
|
-
"type": "any",
|
|
6430
|
+
"type": "any[]",
|
|
6301
6431
|
"required": "false",
|
|
6302
6432
|
"default": "-",
|
|
6303
6433
|
"description": "数据源,通过 useResolves 从后台接口获取或者直接在 storyboard 中配置",
|
|
@@ -6313,7 +6443,7 @@
|
|
|
6313
6443
|
},
|
|
6314
6444
|
{
|
|
6315
6445
|
"name": "hiddenColumns",
|
|
6316
|
-
"type": "
|
|
6446
|
+
"type": "Array<string | number>",
|
|
6317
6447
|
"required": "false",
|
|
6318
6448
|
"default": "-",
|
|
6319
6449
|
"description": "隐藏相应列(输入对应的 dataIndex 或者 key 即可)",
|
|
@@ -6329,7 +6459,7 @@
|
|
|
6329
6459
|
},
|
|
6330
6460
|
{
|
|
6331
6461
|
"name": "filters",
|
|
6332
|
-
"type": "Record<string,string[]>",
|
|
6462
|
+
"type": "Record<string, string[]>",
|
|
6333
6463
|
"required": "false",
|
|
6334
6464
|
"default": "-",
|
|
6335
6465
|
"description": "表头过滤的过滤项,key 为 column 的 dataIndex,value 为过滤值集合。",
|
|
@@ -6345,7 +6475,7 @@
|
|
|
6345
6475
|
},
|
|
6346
6476
|
{
|
|
6347
6477
|
"name": "configProps",
|
|
6348
|
-
"type": "
|
|
6478
|
+
"type": "any",
|
|
6349
6479
|
"required": "false",
|
|
6350
6480
|
"default": "-",
|
|
6351
6481
|
"description": "ant-design 的 Table 相关配置项,具体查阅:[Table](https://ant.design/components/table-cn/#Table),其中分页配置和行选择配值在构件中设置了常用的默认配置,也可自行覆盖,具体描述见下表",
|
|
@@ -6417,7 +6547,7 @@
|
|
|
6417
6547
|
},
|
|
6418
6548
|
{
|
|
6419
6549
|
"name": "optimizedColumns",
|
|
6420
|
-
"type": "
|
|
6550
|
+
"type": "Array<string | number>",
|
|
6421
6551
|
"required": "false",
|
|
6422
6552
|
"default": "-",
|
|
6423
6553
|
"description": "优化渲染的列(输入对应的 dataIndex),针对配置了 useBrick 的列。当前 antd 在更新 state 的时候,会全量渲染单元格,如果确定某一列在后续操作中不需要重新渲染,例如仅作为展示的单元格,可通过该属性设置以优化性能。注意,在树形表格中,当某一列内包含展开/收起按钮,则不应该设置该列。",
|
|
@@ -6426,8 +6556,8 @@
|
|
|
6426
6556
|
{
|
|
6427
6557
|
"name": "wrapperConfig",
|
|
6428
6558
|
"type": "BrickWrapperConfig",
|
|
6429
|
-
"default": "-",
|
|
6430
6559
|
"required": "false",
|
|
6560
|
+
"default": "-",
|
|
6431
6561
|
"description": "设置容器空状态时显示`empty`构件属性",
|
|
6432
6562
|
"group": "ui"
|
|
6433
6563
|
},
|
|
@@ -6641,7 +6771,7 @@
|
|
|
6641
6771
|
},
|
|
6642
6772
|
{
|
|
6643
6773
|
"name": "rowSelection",
|
|
6644
|
-
"type": "false | TableRowSelection",
|
|
6774
|
+
"type": "false | TableRowSelection<any>",
|
|
6645
6775
|
"required": "false",
|
|
6646
6776
|
"default": "-",
|
|
6647
6777
|
"description": "表格行是否可选择,具体查阅:[rowSelection](https://ant.design/components/table-cn/#rowSelection)"
|
|
@@ -6681,8 +6811,8 @@
|
|
|
6681
6811
|
{
|
|
6682
6812
|
"name": "selectedRowKeys",
|
|
6683
6813
|
"type": "React.Key[]",
|
|
6684
|
-
"default": "[]",
|
|
6685
6814
|
"required": "false",
|
|
6815
|
+
"default": "[]",
|
|
6686
6816
|
"description": "指定选中项的 key 数组",
|
|
6687
6817
|
"group": "rowSelection"
|
|
6688
6818
|
}
|
|
@@ -6731,6 +6861,7 @@
|
|
|
6731
6861
|
},
|
|
6732
6862
|
{
|
|
6733
6863
|
"name": "filterSourceData",
|
|
6864
|
+
"params": "event: CustomEvent",
|
|
6734
6865
|
"description": "搜索过滤"
|
|
6735
6866
|
}
|
|
6736
6867
|
],
|
|
@@ -6826,102 +6957,430 @@
|
|
|
6826
6957
|
}
|
|
6827
6958
|
],
|
|
6828
6959
|
"indexSignature": []
|
|
6829
|
-
}
|
|
6830
|
-
]
|
|
6831
|
-
}
|
|
6832
|
-
},
|
|
6833
|
-
{
|
|
6834
|
-
"storyId": "presentational-bricks.brick-tag",
|
|
6835
|
-
"category": "data-view",
|
|
6836
|
-
"type": "brick",
|
|
6837
|
-
"author": "lynette",
|
|
6838
|
-
"text": {
|
|
6839
|
-
"en": "Tag Label",
|
|
6840
|
-
"zh": "Tag 标签"
|
|
6841
|
-
},
|
|
6842
|
-
"tags": [
|
|
6843
|
-
{
|
|
6844
|
-
"en": "show",
|
|
6845
|
-
"zh": "数据显示"
|
|
6846
|
-
}
|
|
6847
|
-
],
|
|
6848
|
-
"description": {
|
|
6849
|
-
"en": "tag label, support Tag and CheckableTag",
|
|
6850
|
-
"zh": "进行标记和分类的小标签,同时支持基本标签和可选中标签"
|
|
6851
|
-
},
|
|
6852
|
-
"icon": {
|
|
6853
|
-
"lib": "fa",
|
|
6854
|
-
"icon": "tags"
|
|
6855
|
-
},
|
|
6856
|
-
"conf": [
|
|
6857
|
-
{
|
|
6858
|
-
"description": {
|
|
6859
|
-
"title": "基本",
|
|
6860
|
-
"message": "标签支持多彩标签、可选择标签、可删除标签。"
|
|
6861
6960
|
},
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
"":
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
"
|
|
6872
|
-
"
|
|
6873
|
-
"tagList": [
|
|
6874
|
-
"Active",
|
|
6875
|
-
"Normal"
|
|
6876
|
-
]
|
|
6877
|
-
}
|
|
6878
|
-
},
|
|
6879
|
-
{
|
|
6880
|
-
"brick": "presentational-bricks.brick-tag",
|
|
6881
|
-
"properties": {
|
|
6882
|
-
"color": "var(--color-warning)",
|
|
6883
|
-
"showCard": true,
|
|
6884
|
-
"showTagCircle": false,
|
|
6885
|
-
"tagList": [
|
|
6886
|
-
"Active",
|
|
6887
|
-
"Normal"
|
|
6888
|
-
]
|
|
6889
|
-
}
|
|
6890
|
-
},
|
|
6891
|
-
{
|
|
6892
|
-
"brick": "presentational-bricks.brick-tag",
|
|
6893
|
-
"events": {
|
|
6894
|
-
"checked.update": {
|
|
6895
|
-
"action": "console.log"
|
|
6896
|
-
},
|
|
6897
|
-
"checked.update.v2": {
|
|
6898
|
-
"action": "console.log"
|
|
6899
|
-
}
|
|
6900
|
-
},
|
|
6901
|
-
"properties": {
|
|
6902
|
-
"showCard": true,
|
|
6903
|
-
"componentType": "CheckableTag",
|
|
6904
|
-
"default": "testB",
|
|
6905
|
-
"multipleCheck": false,
|
|
6906
|
-
"tagList": [
|
|
6907
|
-
{
|
|
6908
|
-
"key": "testA",
|
|
6909
|
-
"label": "testA"
|
|
6910
|
-
},
|
|
6961
|
+
{
|
|
6962
|
+
"name": "CustomColumn",
|
|
6963
|
+
"typeParameter": null,
|
|
6964
|
+
"kind": "interface",
|
|
6965
|
+
"extendedTypes": [
|
|
6966
|
+
{
|
|
6967
|
+
"type": "reference",
|
|
6968
|
+
"typeArguments": [
|
|
6969
|
+
{
|
|
6970
|
+
"type": "reference",
|
|
6971
|
+
"typeArguments": [
|
|
6911
6972
|
{
|
|
6912
|
-
"
|
|
6913
|
-
"
|
|
6914
|
-
"icon": {
|
|
6915
|
-
"lib": "fa",
|
|
6916
|
-
"icon": "adjust",
|
|
6917
|
-
"prefix": "fas"
|
|
6918
|
-
}
|
|
6973
|
+
"type": "intrinsic",
|
|
6974
|
+
"name": "string"
|
|
6919
6975
|
},
|
|
6920
6976
|
{
|
|
6921
|
-
"
|
|
6922
|
-
"
|
|
6977
|
+
"type": "intrinsic",
|
|
6978
|
+
"name": "any"
|
|
6923
6979
|
}
|
|
6924
|
-
]
|
|
6980
|
+
],
|
|
6981
|
+
"name": "Record"
|
|
6982
|
+
}
|
|
6983
|
+
],
|
|
6984
|
+
"name": "ColumnProps"
|
|
6985
|
+
}
|
|
6986
|
+
],
|
|
6987
|
+
"children": [
|
|
6988
|
+
{
|
|
6989
|
+
"name": "align",
|
|
6990
|
+
"type": "AlignType",
|
|
6991
|
+
"required": false,
|
|
6992
|
+
"description": ""
|
|
6993
|
+
},
|
|
6994
|
+
{
|
|
6995
|
+
"name": "cellStatus",
|
|
6996
|
+
"type": "CellStatusProps",
|
|
6997
|
+
"required": false,
|
|
6998
|
+
"description": "在渲染自定义构件的场景下额外设置单元格的状态样式, `dataIndex` 表示取哪一列的字段值作为判断数据,不填的话默认取当前列的字段,`mapping` 表示判断的条件,条件被成功匹配时用当前的样式。目前仅支持单元格 `leftBorderColor` 属性的设置"
|
|
6999
|
+
},
|
|
7000
|
+
{
|
|
7001
|
+
"name": "children",
|
|
7002
|
+
"type": "null",
|
|
7003
|
+
"required": false,
|
|
7004
|
+
"description": ""
|
|
7005
|
+
},
|
|
7006
|
+
{
|
|
7007
|
+
"name": "className",
|
|
7008
|
+
"type": "string",
|
|
7009
|
+
"required": false,
|
|
7010
|
+
"description": ""
|
|
7011
|
+
},
|
|
7012
|
+
{
|
|
7013
|
+
"name": "colSpan",
|
|
7014
|
+
"type": "number",
|
|
7015
|
+
"required": false,
|
|
7016
|
+
"description": ""
|
|
7017
|
+
},
|
|
7018
|
+
{
|
|
7019
|
+
"name": "colSpanKey",
|
|
7020
|
+
"type": "string",
|
|
7021
|
+
"required": false,
|
|
7022
|
+
"description": "每条记录的控制列合并的值的 key"
|
|
7023
|
+
},
|
|
7024
|
+
{
|
|
7025
|
+
"name": "component",
|
|
7026
|
+
"type": "CustomColumnComponent",
|
|
7027
|
+
"required": false,
|
|
7028
|
+
"description": "[已废弃]支持为某列自定义展示构件"
|
|
7029
|
+
},
|
|
7030
|
+
{
|
|
7031
|
+
"name": "dataIndex",
|
|
7032
|
+
"type": "DataIndex",
|
|
7033
|
+
"required": false,
|
|
7034
|
+
"description": ""
|
|
7035
|
+
},
|
|
7036
|
+
{
|
|
7037
|
+
"name": "defaultFilteredValue",
|
|
7038
|
+
"type": "Key[] | null",
|
|
7039
|
+
"required": false,
|
|
7040
|
+
"description": ""
|
|
7041
|
+
},
|
|
7042
|
+
{
|
|
7043
|
+
"name": "defaultSortOrder",
|
|
7044
|
+
"type": "SortOrder",
|
|
7045
|
+
"required": false,
|
|
7046
|
+
"description": ""
|
|
7047
|
+
},
|
|
7048
|
+
{
|
|
7049
|
+
"name": "ellipsis",
|
|
7050
|
+
"type": "CellEllipsisType",
|
|
7051
|
+
"required": false,
|
|
7052
|
+
"description": ""
|
|
7053
|
+
},
|
|
7054
|
+
{
|
|
7055
|
+
"name": "filterDropdown",
|
|
7056
|
+
"type": "React.ReactNode | { }",
|
|
7057
|
+
"required": false,
|
|
7058
|
+
"description": ""
|
|
7059
|
+
},
|
|
7060
|
+
{
|
|
7061
|
+
"name": "filterDropdownVisible",
|
|
7062
|
+
"type": "boolean",
|
|
7063
|
+
"required": false,
|
|
7064
|
+
"description": ""
|
|
7065
|
+
},
|
|
7066
|
+
{
|
|
7067
|
+
"name": "filterIcon",
|
|
7068
|
+
"type": "React.ReactNode | { }",
|
|
7069
|
+
"required": false,
|
|
7070
|
+
"description": ""
|
|
7071
|
+
},
|
|
7072
|
+
{
|
|
7073
|
+
"name": "filterMultiple",
|
|
7074
|
+
"type": "boolean",
|
|
7075
|
+
"required": false,
|
|
7076
|
+
"description": ""
|
|
7077
|
+
},
|
|
7078
|
+
{
|
|
7079
|
+
"name": "filtered",
|
|
7080
|
+
"type": "boolean",
|
|
7081
|
+
"required": false,
|
|
7082
|
+
"description": ""
|
|
7083
|
+
},
|
|
7084
|
+
{
|
|
7085
|
+
"name": "filteredValue",
|
|
7086
|
+
"type": "Key[] | null",
|
|
7087
|
+
"required": false,
|
|
7088
|
+
"description": ""
|
|
7089
|
+
},
|
|
7090
|
+
{
|
|
7091
|
+
"name": "filters",
|
|
7092
|
+
"type": "ColumnFilterItem[]",
|
|
7093
|
+
"required": false,
|
|
7094
|
+
"description": ""
|
|
7095
|
+
},
|
|
7096
|
+
{
|
|
7097
|
+
"name": "fixed",
|
|
7098
|
+
"type": "FixedType",
|
|
7099
|
+
"required": false,
|
|
7100
|
+
"description": ""
|
|
7101
|
+
},
|
|
7102
|
+
{
|
|
7103
|
+
"name": "headerBrick",
|
|
7104
|
+
"type": "{ useBrick: UseBrickConf; }",
|
|
7105
|
+
"required": false,
|
|
7106
|
+
"description": "支持为某列的表头自定义展示构件,可通过 DATA.title 获取标题文本"
|
|
7107
|
+
},
|
|
7108
|
+
{
|
|
7109
|
+
"name": "key",
|
|
7110
|
+
"type": "Key",
|
|
7111
|
+
"required": false,
|
|
7112
|
+
"description": ""
|
|
7113
|
+
},
|
|
7114
|
+
{
|
|
7115
|
+
"name": "onCell",
|
|
7116
|
+
"type": "GetComponentProps<Record<string, any>>",
|
|
7117
|
+
"required": false,
|
|
7118
|
+
"description": ""
|
|
7119
|
+
},
|
|
7120
|
+
{
|
|
7121
|
+
"name": "onCellClick",
|
|
7122
|
+
"type": "{ }",
|
|
7123
|
+
"required": false,
|
|
7124
|
+
"description": ""
|
|
7125
|
+
},
|
|
7126
|
+
{
|
|
7127
|
+
"name": "onFilter",
|
|
7128
|
+
"type": "{ }",
|
|
7129
|
+
"required": false,
|
|
7130
|
+
"description": ""
|
|
7131
|
+
},
|
|
7132
|
+
{
|
|
7133
|
+
"name": "onFilterDropdownVisibleChange",
|
|
7134
|
+
"type": "{ }",
|
|
7135
|
+
"required": false,
|
|
7136
|
+
"description": ""
|
|
7137
|
+
},
|
|
7138
|
+
{
|
|
7139
|
+
"name": "onHeaderCell",
|
|
7140
|
+
"type": "GetComponentProps<>",
|
|
7141
|
+
"required": false,
|
|
7142
|
+
"description": ""
|
|
7143
|
+
},
|
|
7144
|
+
{
|
|
7145
|
+
"name": "render",
|
|
7146
|
+
"type": "{ }",
|
|
7147
|
+
"required": false,
|
|
7148
|
+
"description": ""
|
|
7149
|
+
},
|
|
7150
|
+
{
|
|
7151
|
+
"name": "responsive",
|
|
7152
|
+
"type": "Breakpoint[]",
|
|
7153
|
+
"required": false,
|
|
7154
|
+
"description": ""
|
|
7155
|
+
},
|
|
7156
|
+
{
|
|
7157
|
+
"name": "rowSpan",
|
|
7158
|
+
"type": "number",
|
|
7159
|
+
"required": false,
|
|
7160
|
+
"description": ""
|
|
7161
|
+
},
|
|
7162
|
+
{
|
|
7163
|
+
"name": "rowSpanKey",
|
|
7164
|
+
"type": "string",
|
|
7165
|
+
"required": false,
|
|
7166
|
+
"description": "每条记录的控制行合并的值的 key"
|
|
7167
|
+
},
|
|
7168
|
+
{
|
|
7169
|
+
"name": "shouldCellUpdate",
|
|
7170
|
+
"type": "{ }",
|
|
7171
|
+
"required": false,
|
|
7172
|
+
"description": ""
|
|
7173
|
+
},
|
|
7174
|
+
{
|
|
7175
|
+
"name": "showSorterTooltip",
|
|
7176
|
+
"type": "boolean | TooltipProps",
|
|
7177
|
+
"required": false,
|
|
7178
|
+
"description": ""
|
|
7179
|
+
},
|
|
7180
|
+
{
|
|
7181
|
+
"name": "sortDirections",
|
|
7182
|
+
"type": "SortOrder[]",
|
|
7183
|
+
"required": false,
|
|
7184
|
+
"description": ""
|
|
7185
|
+
},
|
|
7186
|
+
{
|
|
7187
|
+
"name": "sortOrder",
|
|
7188
|
+
"type": "SortOrder",
|
|
7189
|
+
"required": false,
|
|
7190
|
+
"description": ""
|
|
7191
|
+
},
|
|
7192
|
+
{
|
|
7193
|
+
"name": "sorter",
|
|
7194
|
+
"type": "boolean | CompareFn<Record<string, any>> | { compare?: CompareFn<Record<string, any>>; multiple?: number; }",
|
|
7195
|
+
"required": false,
|
|
7196
|
+
"description": ""
|
|
7197
|
+
},
|
|
7198
|
+
{
|
|
7199
|
+
"name": "title",
|
|
7200
|
+
"type": "ColumnTitle<Record<string, any>>",
|
|
7201
|
+
"required": false,
|
|
7202
|
+
"description": ""
|
|
7203
|
+
},
|
|
7204
|
+
{
|
|
7205
|
+
"name": "titleUseBrick",
|
|
7206
|
+
"type": "UseBrickConf",
|
|
7207
|
+
"required": false,
|
|
7208
|
+
"description": "[已废弃]支持为某列的标题自定义展示构件,可通过 DATA.title 获取标题文本"
|
|
7209
|
+
},
|
|
7210
|
+
{
|
|
7211
|
+
"name": "useBrick",
|
|
7212
|
+
"type": "UseBrickConf",
|
|
7213
|
+
"required": false,
|
|
7214
|
+
"description": "支持为某列自定义展示构件"
|
|
7215
|
+
},
|
|
7216
|
+
{
|
|
7217
|
+
"name": "valueSuffix",
|
|
7218
|
+
"type": "string",
|
|
7219
|
+
"required": false,
|
|
7220
|
+
"description": "字段的值展示时的后缀"
|
|
7221
|
+
},
|
|
7222
|
+
{
|
|
7223
|
+
"name": "verticalAlign",
|
|
7224
|
+
"type": "\"top\" | \"bottom\"",
|
|
7225
|
+
"required": false,
|
|
7226
|
+
"description": "单元格内元素的垂直对齐方式"
|
|
7227
|
+
},
|
|
7228
|
+
{
|
|
7229
|
+
"name": "width",
|
|
7230
|
+
"type": "number | string",
|
|
7231
|
+
"required": false,
|
|
7232
|
+
"description": ""
|
|
7233
|
+
}
|
|
7234
|
+
],
|
|
7235
|
+
"indexSignature": []
|
|
7236
|
+
},
|
|
7237
|
+
{
|
|
7238
|
+
"name": "CellStatusProps",
|
|
7239
|
+
"typeParameter": null,
|
|
7240
|
+
"kind": "interface",
|
|
7241
|
+
"children": [
|
|
7242
|
+
{
|
|
7243
|
+
"name": "dataIndex",
|
|
7244
|
+
"type": "string",
|
|
7245
|
+
"required": false,
|
|
7246
|
+
"description": ""
|
|
7247
|
+
},
|
|
7248
|
+
{
|
|
7249
|
+
"name": "mapping",
|
|
7250
|
+
"type": "Array<{ leftBorderColor: string; value: any; }>",
|
|
7251
|
+
"required": true,
|
|
7252
|
+
"description": ""
|
|
7253
|
+
}
|
|
7254
|
+
],
|
|
7255
|
+
"indexSignature": []
|
|
7256
|
+
},
|
|
7257
|
+
{
|
|
7258
|
+
"name": "CustomColumnComponent",
|
|
7259
|
+
"typeParameter": null,
|
|
7260
|
+
"kind": "interface",
|
|
7261
|
+
"children": [
|
|
7262
|
+
{
|
|
7263
|
+
"name": "brick",
|
|
7264
|
+
"type": "string | any",
|
|
7265
|
+
"required": true,
|
|
7266
|
+
"description": ""
|
|
7267
|
+
},
|
|
7268
|
+
{
|
|
7269
|
+
"name": "events",
|
|
7270
|
+
"type": "BrickEventsMap",
|
|
7271
|
+
"required": false,
|
|
7272
|
+
"description": ""
|
|
7273
|
+
},
|
|
7274
|
+
{
|
|
7275
|
+
"name": "fields",
|
|
7276
|
+
"type": "{ index?: string; item?: string; value?: string; }",
|
|
7277
|
+
"required": false,
|
|
7278
|
+
"description": ""
|
|
7279
|
+
},
|
|
7280
|
+
{
|
|
7281
|
+
"name": "properties",
|
|
7282
|
+
"type": "Record<string, any>",
|
|
7283
|
+
"required": false,
|
|
7284
|
+
"description": ""
|
|
7285
|
+
}
|
|
7286
|
+
],
|
|
7287
|
+
"indexSignature": []
|
|
7288
|
+
}
|
|
7289
|
+
]
|
|
7290
|
+
}
|
|
7291
|
+
},
|
|
7292
|
+
{
|
|
7293
|
+
"storyId": "presentational-bricks.brick-tag",
|
|
7294
|
+
"category": "data-view",
|
|
7295
|
+
"type": "brick",
|
|
7296
|
+
"author": "lynette",
|
|
7297
|
+
"text": {
|
|
7298
|
+
"en": "Tag Label",
|
|
7299
|
+
"zh": "Tag 标签"
|
|
7300
|
+
},
|
|
7301
|
+
"tags": [
|
|
7302
|
+
{
|
|
7303
|
+
"en": "show",
|
|
7304
|
+
"zh": "数据显示"
|
|
7305
|
+
}
|
|
7306
|
+
],
|
|
7307
|
+
"description": {
|
|
7308
|
+
"en": "tag label, support Tag and CheckableTag",
|
|
7309
|
+
"zh": "进行标记和分类的小标签,同时支持基本标签和可选中标签"
|
|
7310
|
+
},
|
|
7311
|
+
"icon": {
|
|
7312
|
+
"lib": "fa",
|
|
7313
|
+
"icon": "tags"
|
|
7314
|
+
},
|
|
7315
|
+
"conf": [
|
|
7316
|
+
{
|
|
7317
|
+
"description": {
|
|
7318
|
+
"title": "基本",
|
|
7319
|
+
"message": "标签支持多彩标签、可选择标签、可删除标签。"
|
|
7320
|
+
},
|
|
7321
|
+
"brick": "div",
|
|
7322
|
+
"slots": {
|
|
7323
|
+
"": {
|
|
7324
|
+
"type": "bricks",
|
|
7325
|
+
"bricks": [
|
|
7326
|
+
{
|
|
7327
|
+
"brick": "presentational-bricks.brick-tag",
|
|
7328
|
+
"properties": {
|
|
7329
|
+
"color": "green",
|
|
7330
|
+
"showCard": true,
|
|
7331
|
+
"showTagCircle": true,
|
|
7332
|
+
"tagList": [
|
|
7333
|
+
"Active",
|
|
7334
|
+
"Normal"
|
|
7335
|
+
]
|
|
7336
|
+
}
|
|
7337
|
+
},
|
|
7338
|
+
{
|
|
7339
|
+
"brick": "presentational-bricks.brick-tag",
|
|
7340
|
+
"properties": {
|
|
7341
|
+
"color": "var(--color-warning)",
|
|
7342
|
+
"showCard": true,
|
|
7343
|
+
"showTagCircle": false,
|
|
7344
|
+
"tagList": [
|
|
7345
|
+
"Active",
|
|
7346
|
+
"Normal"
|
|
7347
|
+
]
|
|
7348
|
+
}
|
|
7349
|
+
},
|
|
7350
|
+
{
|
|
7351
|
+
"brick": "presentational-bricks.brick-tag",
|
|
7352
|
+
"events": {
|
|
7353
|
+
"checked.update": {
|
|
7354
|
+
"action": "console.log"
|
|
7355
|
+
},
|
|
7356
|
+
"checked.update.v2": {
|
|
7357
|
+
"action": "console.log"
|
|
7358
|
+
}
|
|
7359
|
+
},
|
|
7360
|
+
"properties": {
|
|
7361
|
+
"showCard": true,
|
|
7362
|
+
"componentType": "CheckableTag",
|
|
7363
|
+
"default": "testB",
|
|
7364
|
+
"multipleCheck": false,
|
|
7365
|
+
"tagList": [
|
|
7366
|
+
{
|
|
7367
|
+
"key": "testA",
|
|
7368
|
+
"label": "testA"
|
|
7369
|
+
},
|
|
7370
|
+
{
|
|
7371
|
+
"key": "testB",
|
|
7372
|
+
"label": "testB",
|
|
7373
|
+
"icon": {
|
|
7374
|
+
"lib": "fa",
|
|
7375
|
+
"icon": "adjust",
|
|
7376
|
+
"prefix": "fas"
|
|
7377
|
+
}
|
|
7378
|
+
},
|
|
7379
|
+
{
|
|
7380
|
+
"key": "testC",
|
|
7381
|
+
"label": "testC"
|
|
7382
|
+
}
|
|
7383
|
+
]
|
|
6925
7384
|
}
|
|
6926
7385
|
},
|
|
6927
7386
|
{
|
|
@@ -7551,7 +8010,7 @@
|
|
|
7551
8010
|
},
|
|
7552
8011
|
{
|
|
7553
8012
|
"name": "afterBrick",
|
|
7554
|
-
"type": "
|
|
8013
|
+
"type": "{ data: unknown; useBrick: UseBrickConf; }",
|
|
7555
8014
|
"required": "false",
|
|
7556
8015
|
"description": "最后一个tag后面使用子构件,具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf)",
|
|
7557
8016
|
"group": "advanced"
|
|
@@ -8543,7 +9002,7 @@
|
|
|
8543
9002
|
"typeParameter": null,
|
|
8544
9003
|
"kind": "type",
|
|
8545
9004
|
"description": "",
|
|
8546
|
-
"type": "Omit<AntTreeNodeProps, \"children\"> &
|
|
9005
|
+
"type": "Omit<AntTreeNodeProps, \"children\"> & { children?: BrickTreeNodeProps[]; icon?: TreeIcon; key?: React.Key; title?: string; }"
|
|
8547
9006
|
}
|
|
8548
9007
|
]
|
|
8549
9008
|
}
|
|
@@ -8779,10 +9238,10 @@
|
|
|
8779
9238
|
"properties": [
|
|
8780
9239
|
{
|
|
8781
9240
|
"name": "messages",
|
|
8782
|
-
"type": "
|
|
8783
|
-
"default": "",
|
|
9241
|
+
"type": "{ error: string; success: string; }",
|
|
8784
9242
|
"required": "false",
|
|
8785
|
-
"description": "复制成功/失败时的提示,默认为“复制成功/失败”"
|
|
9243
|
+
"description": "复制成功/失败时的提示,默认为“复制成功/失败”",
|
|
9244
|
+
"group": "basic"
|
|
8786
9245
|
}
|
|
8787
9246
|
],
|
|
8788
9247
|
"methods": [
|
|
@@ -9156,59 +9615,62 @@
|
|
|
9156
9615
|
"properties": [
|
|
9157
9616
|
{
|
|
9158
9617
|
"name": "value",
|
|
9159
|
-
"type": "string|number",
|
|
9618
|
+
"type": "string | number",
|
|
9160
9619
|
"required": "false",
|
|
9161
|
-
"
|
|
9162
|
-
"
|
|
9620
|
+
"description": "原始值",
|
|
9621
|
+
"group": "basic"
|
|
9163
9622
|
},
|
|
9164
9623
|
{
|
|
9165
9624
|
"name": "dataSource",
|
|
9166
9625
|
"type": "Record<string, any>",
|
|
9167
9626
|
"required": "false",
|
|
9168
|
-
"
|
|
9169
|
-
"
|
|
9627
|
+
"description": "替代 `data` 属性,click 事件时传出的数据",
|
|
9628
|
+
"group": "basic"
|
|
9170
9629
|
},
|
|
9171
9630
|
{
|
|
9172
9631
|
"name": "fields",
|
|
9173
|
-
"type": "{ value: string }",
|
|
9632
|
+
"type": "{ value: string; }",
|
|
9174
9633
|
"required": "false",
|
|
9175
|
-
"
|
|
9176
|
-
"
|
|
9634
|
+
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
|
|
9635
|
+
"deprecated": true,
|
|
9636
|
+
"group": "other"
|
|
9177
9637
|
},
|
|
9178
9638
|
{
|
|
9179
9639
|
"name": "mapping",
|
|
9180
|
-
"type": "
|
|
9640
|
+
"type": "Record<string | number, MappingValue>",
|
|
9181
9641
|
"required": "true",
|
|
9182
|
-
"
|
|
9183
|
-
"
|
|
9642
|
+
"description": "映射规则",
|
|
9643
|
+
"group": "basic"
|
|
9184
9644
|
},
|
|
9185
9645
|
{
|
|
9186
9646
|
"name": "showTagCircle",
|
|
9187
9647
|
"type": "boolean",
|
|
9188
9648
|
"required": "false",
|
|
9189
|
-
"
|
|
9190
|
-
"
|
|
9649
|
+
"description": "显示文字旁边的小圈圈,按照平台规范通常表示状态的标签可设置为 true",
|
|
9650
|
+
"group": "ui"
|
|
9191
9651
|
},
|
|
9192
9652
|
{
|
|
9193
9653
|
"name": "triggerClickEvent",
|
|
9194
9654
|
"type": "boolean",
|
|
9195
9655
|
"required": "false",
|
|
9196
9656
|
"default": "false",
|
|
9197
|
-
"description": "是否触发点击事件"
|
|
9657
|
+
"description": "是否触发点击事件",
|
|
9658
|
+
"group": "basic"
|
|
9198
9659
|
},
|
|
9199
9660
|
{
|
|
9200
9661
|
"name": "link",
|
|
9201
9662
|
"type": "LinkProps",
|
|
9202
9663
|
"required": "false",
|
|
9203
|
-
"
|
|
9204
|
-
"
|
|
9664
|
+
"description": "若设置且 `triggerClickEvent` 为 false,则点击可跳转",
|
|
9665
|
+
"group": "basic"
|
|
9205
9666
|
},
|
|
9206
9667
|
{
|
|
9207
9668
|
"name": "data",
|
|
9208
9669
|
"type": "any",
|
|
9209
9670
|
"required": "false",
|
|
9210
|
-
"
|
|
9211
|
-
"
|
|
9671
|
+
"description": "[已废弃]可用于接收 useBrick 传递过来的数据",
|
|
9672
|
+
"deprecated": true,
|
|
9673
|
+
"group": "other"
|
|
9212
9674
|
}
|
|
9213
9675
|
],
|
|
9214
9676
|
"events": [
|
|
@@ -9592,6 +10054,7 @@
|
|
|
9592
10054
|
"name": "PanelEvent",
|
|
9593
10055
|
"typeParameter": null,
|
|
9594
10056
|
"kind": "interface",
|
|
10057
|
+
"description": "panelEvent",
|
|
9595
10058
|
"children": [
|
|
9596
10059
|
{
|
|
9597
10060
|
"name": "date",
|
|
@@ -10186,224 +10649,240 @@
|
|
|
10186
10649
|
"type": "CardLayoutType",
|
|
10187
10650
|
"required": "false",
|
|
10188
10651
|
"default": "\"icon-as-background\"",
|
|
10189
|
-
"description": "卡片布局类型,具体样式看 Demo"
|
|
10652
|
+
"description": "卡片布局类型,具体样式看 Demo",
|
|
10653
|
+
"group": "basic"
|
|
10190
10654
|
},
|
|
10191
10655
|
{
|
|
10192
10656
|
"name": "cardTitle",
|
|
10193
10657
|
"type": "string",
|
|
10194
10658
|
"required": "false",
|
|
10195
|
-
"
|
|
10196
|
-
"
|
|
10659
|
+
"description": "卡片 title",
|
|
10660
|
+
"group": "basic"
|
|
10197
10661
|
},
|
|
10198
10662
|
{
|
|
10199
10663
|
"name": "cardSubtitle",
|
|
10200
10664
|
"type": "string",
|
|
10201
10665
|
"required": "false",
|
|
10202
|
-
"
|
|
10203
|
-
"
|
|
10666
|
+
"description": "卡片 副标题",
|
|
10667
|
+
"group": "basic"
|
|
10204
10668
|
},
|
|
10205
10669
|
{
|
|
10206
10670
|
"name": "descriptionList",
|
|
10207
|
-
"type": "string[] | string |
|
|
10671
|
+
"type": "string[] | string | DescriptionItem[]",
|
|
10208
10672
|
"required": "false",
|
|
10209
|
-
"
|
|
10210
|
-
"
|
|
10673
|
+
"description": "描述信息",
|
|
10674
|
+
"group": "basic"
|
|
10211
10675
|
},
|
|
10212
10676
|
{
|
|
10213
10677
|
"name": "descMaxLine",
|
|
10214
10678
|
"type": "number",
|
|
10215
10679
|
"required": "false",
|
|
10216
10680
|
"default": "3",
|
|
10217
|
-
"description": "描述信息的最大行数,默认为 3 行,当信息比较少的时候可以设成 3 行以下。UI 规范建议 3 或者 3 以下。"
|
|
10681
|
+
"description": "描述信息的最大行数,默认为 3 行,当信息比较少的时候可以设成 3 行以下。UI 规范建议 3 或者 3 以下。",
|
|
10682
|
+
"group": "ui"
|
|
10218
10683
|
},
|
|
10219
10684
|
{
|
|
10220
10685
|
"name": "hideDescCircle",
|
|
10221
10686
|
"type": "boolean",
|
|
10222
10687
|
"required": "false",
|
|
10223
|
-
"
|
|
10224
|
-
"
|
|
10688
|
+
"description": "描述信息为数组的时候,默认显示每个`<li>`前面的小圈圈,不需要的时候可以隐藏",
|
|
10689
|
+
"group": "ui"
|
|
10225
10690
|
},
|
|
10226
10691
|
{
|
|
10227
10692
|
"name": "urlTemplate",
|
|
10228
10693
|
"type": "string",
|
|
10229
10694
|
"required": "false",
|
|
10230
|
-
"
|
|
10231
|
-
"
|
|
10695
|
+
"description": "卡片跳转 url,支持模版变量",
|
|
10696
|
+
"group": "basic"
|
|
10232
10697
|
},
|
|
10233
10698
|
{
|
|
10234
10699
|
"name": "url",
|
|
10235
10700
|
"type": "string",
|
|
10236
10701
|
"required": "false",
|
|
10237
|
-
"
|
|
10238
|
-
"
|
|
10702
|
+
"description": "卡片跳转 url, url 优先于 urlTemplate 执行",
|
|
10703
|
+
"group": "basic"
|
|
10239
10704
|
},
|
|
10240
10705
|
{
|
|
10241
10706
|
"name": "href",
|
|
10242
10707
|
"type": "string",
|
|
10243
10708
|
"required": "false",
|
|
10244
|
-
"
|
|
10245
|
-
"
|
|
10709
|
+
"description": "卡片跳转 href,优先于 url 执行",
|
|
10710
|
+
"group": "basic"
|
|
10246
10711
|
},
|
|
10247
10712
|
{
|
|
10248
10713
|
"name": "target",
|
|
10249
10714
|
"type": "string",
|
|
10250
10715
|
"required": "false",
|
|
10251
|
-
"
|
|
10252
|
-
"
|
|
10716
|
+
"description": "卡片跳转 target,例如可以设置成 _blank",
|
|
10717
|
+
"group": "basic"
|
|
10253
10718
|
},
|
|
10254
10719
|
{
|
|
10255
10720
|
"name": "dataSource",
|
|
10256
10721
|
"type": "Record<string, any>",
|
|
10257
10722
|
"required": "true",
|
|
10258
|
-
"
|
|
10259
|
-
"
|
|
10723
|
+
"description": "卡片信息数据源",
|
|
10724
|
+
"group": "basic"
|
|
10260
10725
|
},
|
|
10261
10726
|
{
|
|
10262
10727
|
"name": "fields",
|
|
10263
|
-
"type": "{
|
|
10264
|
-
"required": "
|
|
10265
|
-
"
|
|
10266
|
-
"
|
|
10728
|
+
"type": "{ cardSubtitle?: string; cardTitle?: string; descriptionList?: string; disabled?: string; icon?: string; iconColor?: string; iconOffsetX?: string; iconOffsetY?: string; iconOpacity?: string; iconSize?: string; iconStyle?: string; }",
|
|
10729
|
+
"required": "false",
|
|
10730
|
+
"description": "字段映射, 跟 dataSource 一起使用来获得运行时 cardTitle、cardSubtitle、descriptionList、icon、iconColor、iconStyle、iconSize、iconOffsetX、iconOffsetY、iconOpacity、disabled",
|
|
10731
|
+
"group": "other"
|
|
10267
10732
|
},
|
|
10268
10733
|
{
|
|
10269
10734
|
"name": "icon",
|
|
10270
10735
|
"type": "MenuIcon",
|
|
10271
10736
|
"required": "false",
|
|
10272
|
-
"
|
|
10273
|
-
"
|
|
10737
|
+
"description": "卡片右下角的 icon, [详细配置](https://github.com/easyops-cn/next-core/blob/34a0808712ecaa925d0860d281ab23cf3bec7317/packages/brick-types/src/menu.ts#L104), 也可参照示例中的写法",
|
|
10738
|
+
"group": "basic"
|
|
10274
10739
|
},
|
|
10275
10740
|
{
|
|
10276
10741
|
"name": "iconStyle",
|
|
10277
10742
|
"type": "Record<string, any>",
|
|
10278
10743
|
"required": "false",
|
|
10279
|
-
"
|
|
10280
|
-
"
|
|
10744
|
+
"description": "卡片右下角的 icon 的样式,例如需要调整 opacity、right、bottom 的时候可以使用",
|
|
10745
|
+
"group": "ui"
|
|
10281
10746
|
},
|
|
10282
10747
|
{
|
|
10283
10748
|
"name": "iconColor",
|
|
10284
10749
|
"type": "Color",
|
|
10285
10750
|
"required": "false",
|
|
10286
|
-
"default": "
|
|
10287
|
-
"description": "卡片类型为 \"icon-small-align-left\"
|
|
10751
|
+
"default": "\"gray\"",
|
|
10752
|
+
"description": "卡片类型为 \"icon-small-align-left\" | \"icon-align-right\" | \"icon-align-left\" 的时候可以设置 icon 的颜色",
|
|
10753
|
+
"group": "ui"
|
|
10288
10754
|
},
|
|
10289
10755
|
{
|
|
10290
10756
|
"name": "iconSize",
|
|
10291
|
-
"type": "string|number",
|
|
10757
|
+
"type": "string | number",
|
|
10292
10758
|
"required": "false",
|
|
10293
10759
|
"default": "100px",
|
|
10294
|
-
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的大小"
|
|
10760
|
+
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的大小",
|
|
10761
|
+
"group": "ui"
|
|
10295
10762
|
},
|
|
10296
10763
|
{
|
|
10297
10764
|
"name": "iconOffsetX",
|
|
10298
|
-
"type": "string|number",
|
|
10765
|
+
"type": "string | number",
|
|
10299
10766
|
"required": "false",
|
|
10300
10767
|
"default": "0",
|
|
10301
|
-
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的 X 轴偏移量,向左为正数向右为负数"
|
|
10768
|
+
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的 X 轴偏移量,向左为正数向右为负数",
|
|
10769
|
+
"group": "basic"
|
|
10302
10770
|
},
|
|
10303
10771
|
{
|
|
10304
10772
|
"name": "iconOffsetY",
|
|
10305
|
-
"type": "string|number",
|
|
10773
|
+
"type": "string | number",
|
|
10306
10774
|
"required": "false",
|
|
10307
10775
|
"default": "0",
|
|
10308
|
-
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的 Y 轴偏移量,向上为正数向下为负数"
|
|
10776
|
+
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的 Y 轴偏移量,向上为正数向下为负数",
|
|
10777
|
+
"group": "basic"
|
|
10309
10778
|
},
|
|
10310
10779
|
{
|
|
10311
10780
|
"name": "iconOpacity",
|
|
10312
10781
|
"type": "number",
|
|
10313
10782
|
"required": "false",
|
|
10314
10783
|
"default": "0.45",
|
|
10315
|
-
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的透明度"
|
|
10784
|
+
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的透明度",
|
|
10785
|
+
"group": "ui"
|
|
10316
10786
|
},
|
|
10317
10787
|
{
|
|
10318
10788
|
"name": "tagConfig",
|
|
10319
|
-
"type": "{
|
|
10789
|
+
"type": "{ color?: Color; field?: string; hideOperate?: boolean; isNotEqual?: boolean; text: string; triangle?: boolean; value?: any; }",
|
|
10320
10790
|
"required": "false",
|
|
10321
|
-
"
|
|
10322
|
-
"
|
|
10791
|
+
"description": "右上角 tag 标签",
|
|
10792
|
+
"group": "other"
|
|
10323
10793
|
},
|
|
10324
10794
|
{
|
|
10325
10795
|
"name": "configProps",
|
|
10326
|
-
"type": "
|
|
10796
|
+
"type": "CardProps",
|
|
10327
10797
|
"required": "false",
|
|
10328
|
-
"
|
|
10329
|
-
"
|
|
10798
|
+
"description": "完全透传给 antd 的 Card 属性,详见:[antd卡片属性](https://ant.design/components/card-cn/#Card)",
|
|
10799
|
+
"group": "other"
|
|
10330
10800
|
},
|
|
10331
10801
|
{
|
|
10332
10802
|
"name": "bordered",
|
|
10333
10803
|
"type": "boolean",
|
|
10334
10804
|
"required": "false",
|
|
10335
10805
|
"default": "true",
|
|
10336
|
-
"description": "卡片项是否显示外边框"
|
|
10806
|
+
"description": "卡片项是否显示外边框",
|
|
10807
|
+
"group": "ui"
|
|
10337
10808
|
},
|
|
10338
10809
|
{
|
|
10339
10810
|
"name": "showOperationAreaWhenHovering",
|
|
10340
10811
|
"type": "boolean",
|
|
10341
10812
|
"required": "false",
|
|
10342
10813
|
"default": "false",
|
|
10343
|
-
"description": "是否鼠标悬浮显示操作区"
|
|
10814
|
+
"description": "是否鼠标悬浮显示操作区",
|
|
10815
|
+
"group": "basic"
|
|
10344
10816
|
},
|
|
10345
10817
|
{
|
|
10346
10818
|
"name": "alwaysShowDescription",
|
|
10347
10819
|
"type": "boolean",
|
|
10348
10820
|
"required": "false",
|
|
10349
10821
|
"default": "false",
|
|
10350
|
-
"description": "是否总是总是展示描述区域"
|
|
10822
|
+
"description": "是否总是总是展示描述区域",
|
|
10823
|
+
"group": "basic"
|
|
10351
10824
|
},
|
|
10352
10825
|
{
|
|
10353
10826
|
"name": "descriptionDataType",
|
|
10354
|
-
"type": "
|
|
10827
|
+
"type": "\"list\" | \"section\"",
|
|
10355
10828
|
"required": "false",
|
|
10356
10829
|
"default": "false",
|
|
10357
|
-
"description": "指定描述区的显示形式,若descriptionList为数组时,应当指定为 `list`,若descriptionList为字符串时,应当指定为 `section`,单独使用卡片时无需设置该属性"
|
|
10830
|
+
"description": "指定描述区的显示形式,若descriptionList为数组时,应当指定为 `list`,若descriptionList为字符串时,应当指定为 `section`,单独使用卡片时无需设置该属性",
|
|
10831
|
+
"group": "basic"
|
|
10358
10832
|
},
|
|
10359
10833
|
{
|
|
10360
10834
|
"name": "hoverable",
|
|
10361
10835
|
"type": "boolean",
|
|
10362
10836
|
"required": "false",
|
|
10363
10837
|
"default": "true",
|
|
10364
|
-
"description": "卡片项是否hover浮起"
|
|
10838
|
+
"description": "卡片项是否hover浮起",
|
|
10839
|
+
"group": "ui"
|
|
10365
10840
|
},
|
|
10366
10841
|
{
|
|
10367
10842
|
"name": "disabled",
|
|
10368
10843
|
"type": "boolean",
|
|
10369
10844
|
"required": "false",
|
|
10370
10845
|
"default": "false",
|
|
10371
|
-
"description": "禁用卡片,禁用的卡片不可点击跳转。操作区配置了 slot 的卡片,请按需配置子构件的属性,例如将按钮设置成 disabled 等。"
|
|
10846
|
+
"description": "禁用卡片,禁用的卡片不可点击跳转。操作区配置了 slot 的卡片,请按需配置子构件的属性,例如将按钮设置成 disabled 等。",
|
|
10847
|
+
"group": "basic"
|
|
10372
10848
|
},
|
|
10373
10849
|
{
|
|
10374
10850
|
"name": "reverseBgColor",
|
|
10375
10851
|
"type": "boolean",
|
|
10376
10852
|
"required": "false",
|
|
10377
10853
|
"default": "false",
|
|
10378
|
-
"description": "反转背景色,背景色为icon传入的颜色,icon为白色。"
|
|
10854
|
+
"description": "反转背景色,背景色为icon传入的颜色,icon为白色。",
|
|
10855
|
+
"group": "ui"
|
|
10379
10856
|
},
|
|
10380
10857
|
{
|
|
10381
10858
|
"name": "imgSrc",
|
|
10382
10859
|
"type": "string",
|
|
10383
10860
|
"required": "false",
|
|
10384
|
-
"
|
|
10385
|
-
"
|
|
10861
|
+
"description": "图片图标的src",
|
|
10862
|
+
"group": "basic"
|
|
10386
10863
|
},
|
|
10387
10864
|
{
|
|
10388
10865
|
"name": "showImg",
|
|
10389
10866
|
"type": "boolean",
|
|
10390
10867
|
"required": "false",
|
|
10391
10868
|
"default": "false",
|
|
10392
|
-
"description": "是否显示图片,默认显示图标,设置显示图片后,可配置 `imgSrc` 属性"
|
|
10869
|
+
"description": "是否显示图片,默认显示图标,设置显示图片后,可配置 `imgSrc` 属性",
|
|
10870
|
+
"group": "basic"
|
|
10393
10871
|
},
|
|
10394
10872
|
{
|
|
10395
10873
|
"name": "imgSize",
|
|
10396
10874
|
"type": "number",
|
|
10397
10875
|
"required": "false",
|
|
10398
|
-
"
|
|
10399
|
-
"
|
|
10876
|
+
"description": "图标是img时,可以设置 img 的大小,不设置时会铺满",
|
|
10877
|
+
"group": "basic"
|
|
10400
10878
|
},
|
|
10401
10879
|
{
|
|
10402
10880
|
"name": "shape",
|
|
10403
10881
|
"type": "\"circle\" | \"square\" | \"round-square\"",
|
|
10404
|
-
"default": "\"circle\"",
|
|
10405
10882
|
"required": "false",
|
|
10406
|
-
"
|
|
10883
|
+
"default": "\"circle\"",
|
|
10884
|
+
"description": "设置icon背景形状,仅在设置`bg`为true时有效",
|
|
10885
|
+
"group": "basic"
|
|
10407
10886
|
}
|
|
10408
10887
|
],
|
|
10409
10888
|
"events": [
|
|
@@ -10863,7 +11342,8 @@
|
|
|
10863
11342
|
},
|
|
10864
11343
|
{
|
|
10865
11344
|
"name": "subscriptConfig",
|
|
10866
|
-
"type": "any"
|
|
11345
|
+
"type": "any",
|
|
11346
|
+
"required": true
|
|
10867
11347
|
}
|
|
10868
11348
|
],
|
|
10869
11349
|
"methods": [
|
|
@@ -10956,8 +11436,8 @@
|
|
|
10956
11436
|
{
|
|
10957
11437
|
"name": "type",
|
|
10958
11438
|
"type": "string",
|
|
10959
|
-
"default": "custom",
|
|
10960
11439
|
"required": "false",
|
|
11440
|
+
"default": "custom",
|
|
10961
11441
|
"description": "构件样式,支持普通(`custom`)和输入框(`input`)和 中间省略(`text`) 样式(见示例)"
|
|
10962
11442
|
},
|
|
10963
11443
|
{
|
|
@@ -11025,43 +11505,45 @@
|
|
|
11025
11505
|
"name": "cost",
|
|
11026
11506
|
"type": "number",
|
|
11027
11507
|
"required": "false",
|
|
11028
|
-
"
|
|
11029
|
-
"
|
|
11508
|
+
"description": "消耗时间(毫秒级)",
|
|
11509
|
+
"group": "basic"
|
|
11030
11510
|
},
|
|
11031
11511
|
{
|
|
11032
11512
|
"name": "startTime",
|
|
11033
|
-
"type": "string|number",
|
|
11513
|
+
"type": "string | number",
|
|
11034
11514
|
"required": "false",
|
|
11035
|
-
"
|
|
11036
|
-
"
|
|
11515
|
+
"description": "起始时间",
|
|
11516
|
+
"group": "basic"
|
|
11037
11517
|
},
|
|
11038
11518
|
{
|
|
11039
11519
|
"name": "endTime",
|
|
11040
|
-
"type": "string|number",
|
|
11520
|
+
"type": "string | number",
|
|
11041
11521
|
"required": "false",
|
|
11042
|
-
"
|
|
11043
|
-
"
|
|
11522
|
+
"description": "结束时间",
|
|
11523
|
+
"group": "basic"
|
|
11044
11524
|
},
|
|
11045
11525
|
{
|
|
11046
11526
|
"name": "unitStyle",
|
|
11047
|
-
"type": "
|
|
11527
|
+
"type": "CSSProperties",
|
|
11048
11528
|
"required": "false",
|
|
11049
|
-
"
|
|
11050
|
-
"
|
|
11529
|
+
"description": "单位样式",
|
|
11530
|
+
"group": "ui"
|
|
11051
11531
|
},
|
|
11052
11532
|
{
|
|
11053
11533
|
"name": "dataSource",
|
|
11054
11534
|
"type": "any",
|
|
11055
11535
|
"required": "false",
|
|
11056
|
-
"
|
|
11057
|
-
"
|
|
11536
|
+
"description": "[已废弃]数据源",
|
|
11537
|
+
"deprecated": true,
|
|
11538
|
+
"group": "other"
|
|
11058
11539
|
},
|
|
11059
11540
|
{
|
|
11060
11541
|
"name": "fields",
|
|
11061
|
-
"type": "{ cost?: string;
|
|
11542
|
+
"type": "{ cost?: string; endTime?: string; startTime?: string; }",
|
|
11062
11543
|
"required": "false",
|
|
11063
|
-
"
|
|
11064
|
-
"
|
|
11544
|
+
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时对应字段",
|
|
11545
|
+
"deprecated": true,
|
|
11546
|
+
"group": "other"
|
|
11065
11547
|
}
|
|
11066
11548
|
],
|
|
11067
11549
|
"interface": []
|
|
@@ -11223,42 +11705,45 @@
|
|
|
11223
11705
|
"change": "新增属性 `resolution`"
|
|
11224
11706
|
}
|
|
11225
11707
|
],
|
|
11226
|
-
"memo": "> Tips: 第一个示例 demo 由于 shouldUpdateUrlParams=true 会更新 url 中的参数,会导致第二个示例时间选择器也会跟着变化, 而第二个示例 shouldUpdateUrlParams=false, 不会改变 url 所以第一示例不受它的影响,特作此说明。\n\n```typescript\
|
|
11708
|
+
"memo": "> Tips: 第一个示例 demo 由于 shouldUpdateUrlParams=true 会更新 url 中的参数,会导致第二个示例时间选择器也会跟着变化, 而第二个示例 shouldUpdateUrlParams=false, 不会改变 url 所以第一示例不受它的影响,特作此说明。\n\n```typescript\nfrom to 书写规范如下:\nnow-15m 近 15 分钟\nnow-30m 近 30 分钟\nnow-1h 近 1 小时\nnow-12h 近 12 小时\nnow-24h 近 24 小时\nnow/d 今天(今天0时到现在的时间)\nnow-7d 近 7 天\nnow-30d 近 30 天\nnow-6M 近 6 月\nnow/y 今年(今年第一天开始到今天的时间)\nnow-1y 近 1 年\n```\n\n> Tips: 对于时间段范围的时间,组件封装了 parseDatetimeRange 的解析函数,统一转化为时间戳处理,不必额外再写转换函数, [github链接](https://github.com/easyops-cn/next-libs/blob/207fe7ee3ac010ab860c23cd062216c8ca612f0c/libs/datetime-components/src/processor/parseDatetimeRange.ts#L3)",
|
|
11227
11709
|
"properties": [
|
|
11228
11710
|
{
|
|
11229
11711
|
"name": "from",
|
|
11230
11712
|
"type": "string",
|
|
11231
11713
|
"required": "true",
|
|
11232
|
-
"default": "now-1d",
|
|
11233
|
-
"description": "
|
|
11714
|
+
"default": "\"now-1d\"",
|
|
11715
|
+
"description": "默认起始时间,支持任意时间范围,相关规则请按下列规则书写(\"now-1h\", \"now-1d\", \"now/d\", \"now-7d\", \"now-30d\") [正则表达式](https://github.com/easyops-cn/next-libs/blob/207fe7ee3ac010ab860c23cd062216c8ca612f0c/libs/datetime-components/src/processor/parseDatetimeRange.ts#L18) 注意当通过 \\${query.from=now/d} 赋默认值给 form 属性时,由于 [placeholder 占位符语法](http://docs.developers.easyops.cn/docs/brick-next/placeholders) 不支持 `/` 的特殊字符解析,所以该值需要用字符串的形式来书写(如 demo 所示)。",
|
|
11716
|
+
"group": "basic"
|
|
11234
11717
|
},
|
|
11235
11718
|
{
|
|
11236
11719
|
"name": "to",
|
|
11237
11720
|
"type": "string",
|
|
11238
11721
|
"required": "false",
|
|
11239
|
-
"
|
|
11240
|
-
"
|
|
11722
|
+
"description": "默认结束时间, 相关规则请参照from属性",
|
|
11723
|
+
"group": "basic"
|
|
11241
11724
|
},
|
|
11242
11725
|
{
|
|
11243
11726
|
"name": "shouldUpdateUrlParams",
|
|
11244
11727
|
"type": "boolean",
|
|
11245
11728
|
"required": "false",
|
|
11246
11729
|
"default": "true",
|
|
11247
|
-
"description": "是否更新 url 参数并刷新页面"
|
|
11730
|
+
"description": "是否更新 url 参数并刷新页面",
|
|
11731
|
+
"group": "basic"
|
|
11248
11732
|
},
|
|
11249
11733
|
{
|
|
11250
11734
|
"name": "type",
|
|
11251
|
-
"type": "default | custom",
|
|
11735
|
+
"type": "\"default\" | \"custom\"",
|
|
11252
11736
|
"required": "false",
|
|
11253
|
-
"default": "default",
|
|
11254
|
-
"description": "时间选择器支持两种类型,一种是默认的,固定显示常用的几种时间范围,一种是自定义的,可根据需求定制特定时间范围"
|
|
11737
|
+
"default": "\"default\"",
|
|
11738
|
+
"description": "时间选择器支持两种类型,一种是默认的,固定显示常用的几种时间范围,一种是自定义的,可根据需求定制特定时间范围",
|
|
11739
|
+
"group": "basic"
|
|
11255
11740
|
},
|
|
11256
11741
|
{
|
|
11257
11742
|
"name": "customTimeRange",
|
|
11258
11743
|
"type": "{range: string, text: string}",
|
|
11259
11744
|
"required": "false",
|
|
11260
|
-
"
|
|
11261
|
-
"
|
|
11745
|
+
"description": "当 type 为 custom 时,配置定制的时间范围,目前暂支持如下时间点,当 type 为 default 时,该配置项无效",
|
|
11746
|
+
"group": "basic"
|
|
11262
11747
|
},
|
|
11263
11748
|
{
|
|
11264
11749
|
"name": "placement",
|
|
@@ -11266,23 +11751,22 @@
|
|
|
11266
11751
|
"required": "false",
|
|
11267
11752
|
"default": "\"bottom\"",
|
|
11268
11753
|
"description": "弹出位置",
|
|
11269
|
-
"group": "
|
|
11754
|
+
"group": "other"
|
|
11270
11755
|
},
|
|
11271
11756
|
{
|
|
11272
11757
|
"name": "resolution",
|
|
11273
|
-
"type": "ms | s",
|
|
11758
|
+
"type": "\"ms\" | \"s\"",
|
|
11274
11759
|
"required": "false",
|
|
11275
|
-
"default": "
|
|
11760
|
+
"default": "\"ms\"",
|
|
11276
11761
|
"description": "指定时间戳的单位,目前支持秒和毫秒,默认为毫秒,切换为秒时,url 和事件传出的时间戳都会调整成以秒为单位",
|
|
11277
|
-
"group": "
|
|
11762
|
+
"group": "other"
|
|
11278
11763
|
},
|
|
11279
11764
|
{
|
|
11280
11765
|
"name": "size",
|
|
11281
11766
|
"type": "\"default\" | \"large\" | \"small\"",
|
|
11282
11767
|
"required": "false",
|
|
11283
|
-
"default": "-",
|
|
11284
11768
|
"description": "打开选择器的按钮的大小",
|
|
11285
|
-
"group": "
|
|
11769
|
+
"group": "other"
|
|
11286
11770
|
}
|
|
11287
11771
|
],
|
|
11288
11772
|
"events": [
|
|
@@ -11302,7 +11786,15 @@
|
|
|
11302
11786
|
"description": "选择当前时间,与 `datetime.selected` 不同的是虽然还是区分时间戳和时间段两种类型,但是调整了输出字段格式, 这样更利于某些监控场景的使用和编排"
|
|
11303
11787
|
}
|
|
11304
11788
|
],
|
|
11305
|
-
"interface": [
|
|
11789
|
+
"interface": [
|
|
11790
|
+
{
|
|
11791
|
+
"name": "TooltipPlacement",
|
|
11792
|
+
"typeParameter": null,
|
|
11793
|
+
"kind": "type",
|
|
11794
|
+
"description": "",
|
|
11795
|
+
"type": "\"top\" | \"left\" | \"right\" | \"bottom\" | \"topLeft\" | \"topRight\" | \"bottomLeft\" | \"bottomRight\" | \"leftTop\" | \"leftBottom\" | \"rightTop\" | \"rightBottom\""
|
|
11796
|
+
}
|
|
11797
|
+
]
|
|
11306
11798
|
}
|
|
11307
11799
|
},
|
|
11308
11800
|
{
|
|
@@ -11324,26 +11816,31 @@
|
|
|
11324
11816
|
},
|
|
11325
11817
|
"conf": [
|
|
11326
11818
|
{
|
|
11819
|
+
"description": {
|
|
11820
|
+
"title": "单选示例"
|
|
11821
|
+
},
|
|
11327
11822
|
"brick": "presentational-bricks.dropdown-select",
|
|
11328
11823
|
"properties": {
|
|
11329
|
-
"
|
|
11824
|
+
"options": [
|
|
11330
11825
|
{
|
|
11331
11826
|
"label": "应用1",
|
|
11332
|
-
"value": "
|
|
11333
|
-
"
|
|
11827
|
+
"value": "aaaa",
|
|
11828
|
+
"content": "描述1"
|
|
11334
11829
|
},
|
|
11335
11830
|
{
|
|
11336
11831
|
"label": "应用2",
|
|
11337
|
-
"value": "
|
|
11338
|
-
"
|
|
11832
|
+
"value": "bbbb",
|
|
11833
|
+
"content": "描述2"
|
|
11834
|
+
},
|
|
11835
|
+
{
|
|
11836
|
+
"label": "应用3",
|
|
11837
|
+
"value": "cccc",
|
|
11838
|
+
"content": "描述3"
|
|
11339
11839
|
}
|
|
11340
11840
|
],
|
|
11341
|
-
"
|
|
11342
|
-
"
|
|
11343
|
-
"
|
|
11344
|
-
"optionTitle": "#{item.label}",
|
|
11345
|
-
"optionContent": "#{item.desc}",
|
|
11346
|
-
"valuePath": "item.value"
|
|
11841
|
+
"placeholder": "请选择",
|
|
11842
|
+
"value": "aaaa",
|
|
11843
|
+
"labelFontSize": "16px"
|
|
11347
11844
|
},
|
|
11348
11845
|
"events": {
|
|
11349
11846
|
"select.change": {
|
|
@@ -11352,26 +11849,36 @@
|
|
|
11352
11849
|
}
|
|
11353
11850
|
},
|
|
11354
11851
|
{
|
|
11852
|
+
"description": {
|
|
11853
|
+
"title": "多选示例"
|
|
11854
|
+
},
|
|
11355
11855
|
"brick": "presentational-bricks.dropdown-select",
|
|
11356
11856
|
"properties": {
|
|
11357
|
-
"
|
|
11857
|
+
"options": [
|
|
11358
11858
|
{
|
|
11359
|
-
"label": "应用
|
|
11360
|
-
"value": "
|
|
11361
|
-
"
|
|
11859
|
+
"label": "应用1",
|
|
11860
|
+
"value": "aaaa",
|
|
11861
|
+
"content": "描述1"
|
|
11362
11862
|
},
|
|
11363
11863
|
{
|
|
11364
|
-
"label": "应用
|
|
11365
|
-
"value": "
|
|
11366
|
-
"
|
|
11864
|
+
"label": "应用2",
|
|
11865
|
+
"value": "bbbb",
|
|
11866
|
+
"content": "描述2"
|
|
11867
|
+
},
|
|
11868
|
+
{
|
|
11869
|
+
"label": "应用3",
|
|
11870
|
+
"value": "cccc",
|
|
11871
|
+
"content": "描述3"
|
|
11367
11872
|
}
|
|
11368
11873
|
],
|
|
11369
|
-
"value": "
|
|
11370
|
-
"
|
|
11371
|
-
"
|
|
11372
|
-
"
|
|
11373
|
-
"
|
|
11374
|
-
|
|
11874
|
+
"value": "bbbb",
|
|
11875
|
+
"placeholder": "请选择",
|
|
11876
|
+
"labelFontSize": "14px",
|
|
11877
|
+
"multipleSelect": true,
|
|
11878
|
+
"selectedKeys": [
|
|
11879
|
+
"aaaa",
|
|
11880
|
+
"bbbb"
|
|
11881
|
+
]
|
|
11375
11882
|
},
|
|
11376
11883
|
"events": {
|
|
11377
11884
|
"select.change": {
|
|
@@ -11399,150 +11906,162 @@
|
|
|
11399
11906
|
"name": "options",
|
|
11400
11907
|
"type": "Option[]",
|
|
11401
11908
|
"required": "false",
|
|
11402
|
-
"
|
|
11403
|
-
"
|
|
11909
|
+
"description": "选项列表,不能与 dataSource + label + optionTitle + optionContent + valuePath 同时使用",
|
|
11910
|
+
"group": "basic"
|
|
11404
11911
|
},
|
|
11405
11912
|
{
|
|
11406
11913
|
"name": "dataSource",
|
|
11407
11914
|
"type": "any[]",
|
|
11408
11915
|
"required": "false",
|
|
11409
11916
|
"default": "[]",
|
|
11410
|
-
"description": "数据源"
|
|
11917
|
+
"description": "数据源",
|
|
11918
|
+
"group": "other",
|
|
11919
|
+
"deprecated": true
|
|
11411
11920
|
},
|
|
11412
11921
|
{
|
|
11413
11922
|
"name": "value",
|
|
11414
|
-
"type": "any",
|
|
11923
|
+
"type": "any[]",
|
|
11415
11924
|
"required": "false",
|
|
11416
|
-
"
|
|
11417
|
-
"
|
|
11925
|
+
"description": "选中项的值,跟 `valuePath` 搭配使用,根据指定的字段路径与 value 的值得出当前选中项",
|
|
11926
|
+
"group": "basic"
|
|
11418
11927
|
},
|
|
11419
11928
|
{
|
|
11420
11929
|
"name": "label",
|
|
11421
11930
|
"type": "string",
|
|
11422
11931
|
"required": "false",
|
|
11423
11932
|
"default": "使用 optionTitle 的值",
|
|
11424
|
-
"description": "选中项显示的 label,支持模板替换,替换上下文为当前项 `item` 使用时需要带上 item 前缀 `#{item.xxx}`"
|
|
11933
|
+
"description": "选中项显示的 label,支持模板替换,替换上下文为当前项 `item` 使用时需要带上 item 前缀 `#{item.xxx}`",
|
|
11934
|
+
"group": "other",
|
|
11935
|
+
"deprecated": true
|
|
11936
|
+
},
|
|
11937
|
+
{
|
|
11938
|
+
"name": "disabled",
|
|
11939
|
+
"type": "boolean",
|
|
11940
|
+
"required": "false",
|
|
11941
|
+
"default": "false",
|
|
11942
|
+
"description": "是否禁用",
|
|
11943
|
+
"group": "basic"
|
|
11944
|
+
},
|
|
11945
|
+
{
|
|
11946
|
+
"name": "heightFix",
|
|
11947
|
+
"type": "boolean",
|
|
11948
|
+
"required": "false",
|
|
11949
|
+
"default": "false",
|
|
11950
|
+
"description": "单选时,下拉内容区高度是否固定",
|
|
11951
|
+
"group": "basic"
|
|
11952
|
+
},
|
|
11953
|
+
{
|
|
11954
|
+
"name": "buttonIcon",
|
|
11955
|
+
"type": "MenuIcon",
|
|
11956
|
+
"required": "false",
|
|
11957
|
+
"description": "按钮 icon,支持[icon 图标库](developers/icon),可直接复制图标图标的配置(antd、fa 及 easyops 三种库都支持),也可只取 icon 字段的值(仅支持 antd 库)。配置{ \"lib\": \"antd\", \"icon\": \"edit\" }与 \"edit\"等价 [类型定义](https://github.com/easyops-cn/next-core/blob/34a0808712ecaa925d0860d281ab23cf3bec7317/packages/brick-types/src/menu.ts#L104)",
|
|
11958
|
+
"group": "basic"
|
|
11959
|
+
},
|
|
11960
|
+
{
|
|
11961
|
+
"name": "dropdownButtonType",
|
|
11962
|
+
"type": "\"default\" | \"shape\"",
|
|
11963
|
+
"required": "false",
|
|
11964
|
+
"default": "\"default\"",
|
|
11965
|
+
"description": "设置下拉选择器按钮样式",
|
|
11966
|
+
"group": "ui"
|
|
11425
11967
|
},
|
|
11426
11968
|
{
|
|
11427
11969
|
"name": "labelFontSize",
|
|
11428
11970
|
"type": "string",
|
|
11429
11971
|
"required": "false",
|
|
11430
|
-
"
|
|
11431
|
-
"
|
|
11972
|
+
"description": "label 的 fontSize",
|
|
11973
|
+
"group": "ui"
|
|
11432
11974
|
},
|
|
11433
11975
|
{
|
|
11434
11976
|
"name": "placeholder",
|
|
11435
11977
|
"type": "string",
|
|
11436
11978
|
"required": "false",
|
|
11437
|
-
"
|
|
11438
|
-
"
|
|
11979
|
+
"description": "placeholder, 当没有当前项选中时显示",
|
|
11980
|
+
"group": "basic"
|
|
11439
11981
|
},
|
|
11440
11982
|
{
|
|
11441
11983
|
"name": "optionTitle",
|
|
11442
11984
|
"type": "string",
|
|
11443
11985
|
"required": "false",
|
|
11444
11986
|
"default": "#{item}",
|
|
11445
|
-
"description": "选项的标题,支持模板替换,使用跟 label 字段一样"
|
|
11987
|
+
"description": "选项的标题,支持模板替换,使用跟 label 字段一样",
|
|
11988
|
+
"group": "other",
|
|
11989
|
+
"deprecated": true
|
|
11446
11990
|
},
|
|
11447
11991
|
{
|
|
11448
11992
|
"name": "optionContent",
|
|
11449
11993
|
"type": "string",
|
|
11450
11994
|
"required": "false",
|
|
11451
|
-
"
|
|
11452
|
-
"
|
|
11995
|
+
"description": "选项的内容,支持模板替换,使用跟 label 字段一样",
|
|
11996
|
+
"group": "other",
|
|
11997
|
+
"deprecated": true
|
|
11453
11998
|
},
|
|
11454
11999
|
{
|
|
11455
12000
|
"name": "valuePath",
|
|
11456
12001
|
"type": "string",
|
|
11457
12002
|
"required": "false",
|
|
11458
12003
|
"default": "item",
|
|
11459
|
-
"description": "依据当前项 `item`,指定选项值的 path"
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
"name": "selectedKeys",
|
|
11463
|
-
"type": "string[]",
|
|
11464
|
-
"required": "false",
|
|
11465
|
-
"default": "[]",
|
|
11466
|
-
"description": "多选的选中项"
|
|
11467
|
-
},
|
|
11468
|
-
{
|
|
11469
|
-
"name": "defaultSelectedKeys",
|
|
11470
|
-
"type": "string[]",
|
|
11471
|
-
"required": "false",
|
|
11472
|
-
"default": "[]",
|
|
11473
|
-
"description": "多选的默认选中项"
|
|
12004
|
+
"description": "依据当前项 `item`,指定选项值的 path",
|
|
12005
|
+
"group": "other",
|
|
12006
|
+
"deprecated": true
|
|
11474
12007
|
},
|
|
11475
12008
|
{
|
|
11476
12009
|
"name": "multipleSelect",
|
|
11477
12010
|
"type": "boolean",
|
|
11478
12011
|
"required": "false",
|
|
11479
12012
|
"default": "false",
|
|
11480
|
-
"description": "是否支持多选,支持多选时,单选的value属性失效"
|
|
12013
|
+
"description": "是否支持多选,支持多选时,单选的value属性失效",
|
|
12014
|
+
"group": "basic"
|
|
11481
12015
|
},
|
|
11482
12016
|
{
|
|
11483
|
-
"name": "
|
|
11484
|
-
"type": "
|
|
12017
|
+
"name": "selectedKeys",
|
|
12018
|
+
"type": "string[]",
|
|
11485
12019
|
"required": "false",
|
|
11486
|
-
"default": "
|
|
11487
|
-
"description": "
|
|
12020
|
+
"default": "[]",
|
|
12021
|
+
"description": "多选的选中项",
|
|
12022
|
+
"group": "basic"
|
|
11488
12023
|
},
|
|
11489
12024
|
{
|
|
11490
|
-
"name": "
|
|
11491
|
-
"type": "
|
|
12025
|
+
"name": "selectTipText",
|
|
12026
|
+
"type": "string",
|
|
11492
12027
|
"required": "false",
|
|
11493
12028
|
"default": "-",
|
|
11494
|
-
"description": "
|
|
11495
|
-
"group": "basic"
|
|
12029
|
+
"description": "下拉框提示信息"
|
|
11496
12030
|
},
|
|
11497
12031
|
{
|
|
11498
|
-
"name": "
|
|
11499
|
-
"type": "
|
|
12032
|
+
"name": "selectBoxStyle",
|
|
12033
|
+
"type": "CSSProperties",
|
|
11500
12034
|
"required": "false",
|
|
11501
|
-
"
|
|
11502
|
-
"description": "是否禁用"
|
|
12035
|
+
"description": "下拉框样式"
|
|
11503
12036
|
},
|
|
11504
12037
|
{
|
|
11505
|
-
"name": "
|
|
11506
|
-
"type": "
|
|
12038
|
+
"name": "defaultSelectedKeys",
|
|
12039
|
+
"type": "string[]",
|
|
11507
12040
|
"required": "false",
|
|
11508
|
-
"default": "
|
|
11509
|
-
"description": "
|
|
12041
|
+
"default": "[]",
|
|
12042
|
+
"description": "多选的默认选中项",
|
|
12043
|
+
"group": "basic"
|
|
11510
12044
|
},
|
|
11511
12045
|
{
|
|
11512
|
-
"name": "
|
|
11513
|
-
"type": "
|
|
12046
|
+
"name": "minSelectedItemLength",
|
|
12047
|
+
"type": "number",
|
|
11514
12048
|
"required": "false",
|
|
11515
|
-
"
|
|
11516
|
-
"description": "按钮 icon,支持[icon 图标库](developers/icon),可直接复制图标图标的配置(antd、fa 及 easyops 三种库都支持),也可只取 icon 字段的值(仅支持 antd 库)。配置{ \"lib\": \"antd\", \"icon\": \"edit\" }与 \"edit\"等价",
|
|
12049
|
+
"description": "最小选择数量(多选)",
|
|
11517
12050
|
"group": "basic"
|
|
11518
12051
|
},
|
|
11519
12052
|
{
|
|
11520
12053
|
"name": "multipleLabel",
|
|
11521
12054
|
"type": "string",
|
|
11522
12055
|
"required": "false",
|
|
11523
|
-
"
|
|
11524
|
-
"
|
|
11525
|
-
},
|
|
11526
|
-
{
|
|
11527
|
-
"name": "selectTipText",
|
|
11528
|
-
"type": "string",
|
|
11529
|
-
"required": "false",
|
|
11530
|
-
"default": "-",
|
|
11531
|
-
"description": "下拉框提示信息"
|
|
11532
|
-
},
|
|
11533
|
-
{
|
|
11534
|
-
"name": "selectBoxStyle",
|
|
11535
|
-
"type": "string",
|
|
11536
|
-
"required": "false",
|
|
11537
|
-
"default": "-",
|
|
11538
|
-
"description": "下拉框样式"
|
|
12056
|
+
"description": "多选时,当前label仅支持显示从构件外部传入,multipleLabel属性仅在dropdownButtonType为multiple时生效",
|
|
12057
|
+
"group": "basic"
|
|
11539
12058
|
},
|
|
11540
12059
|
{
|
|
11541
|
-
"name": "
|
|
11542
|
-
"type": "
|
|
12060
|
+
"name": "tipBrick",
|
|
12061
|
+
"type": "{ useBrick: UseBrickConf; }",
|
|
11543
12062
|
"required": "false",
|
|
11544
|
-
"
|
|
11545
|
-
"
|
|
12063
|
+
"description": "提示构件",
|
|
12064
|
+
"group": "other"
|
|
11546
12065
|
}
|
|
11547
12066
|
],
|
|
11548
12067
|
"events": [
|
|
@@ -12633,83 +13152,83 @@
|
|
|
12633
13152
|
{
|
|
12634
13153
|
"name": "imgSrc",
|
|
12635
13154
|
"type": "string",
|
|
12636
|
-
"default": "-",
|
|
12637
13155
|
"required": "",
|
|
13156
|
+
"default": "-",
|
|
12638
13157
|
"description": "图片地址"
|
|
12639
13158
|
},
|
|
12640
13159
|
{
|
|
12641
13160
|
"name": "preview",
|
|
12642
13161
|
"type": "boolean",
|
|
12643
|
-
"default": "true",
|
|
12644
13162
|
"required": "",
|
|
13163
|
+
"default": "true",
|
|
12645
13164
|
"description": "是否开启预览"
|
|
12646
13165
|
},
|
|
12647
13166
|
{
|
|
12648
13167
|
"name": "imgHeight",
|
|
12649
13168
|
"type": "string | number",
|
|
12650
|
-
"default": "-",
|
|
12651
13169
|
"required": "",
|
|
13170
|
+
"default": "-",
|
|
12652
13171
|
"description": "图像高度"
|
|
12653
13172
|
},
|
|
12654
13173
|
{
|
|
12655
13174
|
"name": "imgWidth",
|
|
12656
13175
|
"type": "string | number",
|
|
12657
|
-
"default": "-",
|
|
12658
13176
|
"required": "",
|
|
13177
|
+
"default": "-",
|
|
12659
13178
|
"description": "图像宽度"
|
|
12660
13179
|
},
|
|
12661
13180
|
{
|
|
12662
13181
|
"name": "dataSource",
|
|
12663
13182
|
"type": "Record<string, any>",
|
|
12664
|
-
"default": "-",
|
|
12665
13183
|
"required": "-",
|
|
13184
|
+
"default": "-",
|
|
12666
13185
|
"description": "数据源,搭配 extra 使用时会把该数据传入到自定义构件中使用"
|
|
12667
13186
|
},
|
|
12668
13187
|
{
|
|
12669
13188
|
"name": "placeholder",
|
|
12670
13189
|
"type": "string",
|
|
12671
|
-
"default": "-",
|
|
12672
13190
|
"required": "",
|
|
13191
|
+
"default": "-",
|
|
12673
13192
|
"description": "加载占位, 为 true 时使用默认占位",
|
|
12674
13193
|
"group": "advanced"
|
|
12675
13194
|
},
|
|
12676
13195
|
{
|
|
12677
13196
|
"name": "imgAlt",
|
|
12678
13197
|
"type": "string",
|
|
12679
|
-
"default": "-",
|
|
12680
13198
|
"required": "",
|
|
13199
|
+
"default": "-",
|
|
12681
13200
|
"description": "图像描述",
|
|
12682
13201
|
"group": "advanced"
|
|
12683
13202
|
},
|
|
12684
13203
|
{
|
|
12685
13204
|
"name": "fallback",
|
|
12686
13205
|
"type": "string",
|
|
12687
|
-
"default": "-",
|
|
12688
13206
|
"required": "",
|
|
13207
|
+
"default": "-",
|
|
12689
13208
|
"description": "加载失败容错地址",
|
|
12690
13209
|
"group": "advanced"
|
|
12691
13210
|
},
|
|
12692
13211
|
{
|
|
12693
13212
|
"name": "extra",
|
|
12694
13213
|
"type": "UseBrickConf",
|
|
12695
|
-
"default": "-",
|
|
12696
13214
|
"required": "-",
|
|
13215
|
+
"default": "-",
|
|
12697
13216
|
"description": "支持在图片下方增加自定义构件",
|
|
12698
13217
|
"group": "advanced"
|
|
12699
13218
|
},
|
|
12700
13219
|
{
|
|
12701
13220
|
"name": "extraContainerStyle",
|
|
12702
13221
|
"type": "Record<string, any>",
|
|
12703
|
-
"default": "-",
|
|
12704
13222
|
"required": "-",
|
|
13223
|
+
"default": "-",
|
|
12705
13224
|
"description": "包裹自定义构件容器的样式",
|
|
12706
13225
|
"group": "advanced"
|
|
12707
13226
|
},
|
|
12708
13227
|
{
|
|
12709
13228
|
"name": "visible",
|
|
12710
13229
|
"type": "boolean",
|
|
12711
|
-
"default": "-",
|
|
12712
13230
|
"required": "",
|
|
13231
|
+
"default": "-",
|
|
12713
13232
|
"description": "是否显示预览",
|
|
12714
13233
|
"group": "advanced"
|
|
12715
13234
|
}
|
|
@@ -13241,67 +13760,89 @@
|
|
|
13241
13760
|
"name": "content",
|
|
13242
13761
|
"type": "string | string[]",
|
|
13243
13762
|
"required": "true",
|
|
13244
|
-
"
|
|
13245
|
-
"
|
|
13763
|
+
"description": "提示内容, 数组表示多行显示, 可根据平台提供的 transform 机制转换成所需的提示内容",
|
|
13764
|
+
"group": "basic"
|
|
13246
13765
|
},
|
|
13247
13766
|
{
|
|
13248
13767
|
"name": "icon",
|
|
13249
13768
|
"type": "MenuIcon",
|
|
13250
13769
|
"required": "true",
|
|
13251
|
-
"
|
|
13252
|
-
"
|
|
13770
|
+
"description": "图标配置 [MenuIcon](http://docs.developers.easyops.cn/docs/brick-next/icon)",
|
|
13771
|
+
"group": "basic"
|
|
13253
13772
|
},
|
|
13254
13773
|
{
|
|
13255
13774
|
"name": "text",
|
|
13256
13775
|
"type": "string",
|
|
13257
13776
|
"required": "false",
|
|
13258
|
-
"
|
|
13259
|
-
"
|
|
13777
|
+
"description": "文案",
|
|
13778
|
+
"group": "basic"
|
|
13260
13779
|
},
|
|
13261
13780
|
{
|
|
13262
13781
|
"name": "iconContainerStyle",
|
|
13263
|
-
"type": "
|
|
13782
|
+
"type": "CSSProperties",
|
|
13264
13783
|
"required": "false",
|
|
13265
|
-
"
|
|
13266
|
-
"
|
|
13784
|
+
"description": "图标容器相关样式",
|
|
13785
|
+
"group": "ui"
|
|
13267
13786
|
},
|
|
13268
13787
|
{
|
|
13269
13788
|
"name": "type",
|
|
13270
13789
|
"type": "tooltip | popover",
|
|
13271
13790
|
"required": "false",
|
|
13272
13791
|
"default": "tooltip",
|
|
13273
|
-
"description": "类型设置"
|
|
13792
|
+
"description": "类型设置",
|
|
13793
|
+
"group": "basic"
|
|
13274
13794
|
},
|
|
13275
13795
|
{
|
|
13276
13796
|
"name": "header",
|
|
13277
13797
|
"type": "string",
|
|
13278
13798
|
"required": "false",
|
|
13279
|
-
"
|
|
13280
|
-
"
|
|
13799
|
+
"description": "提示内容的标题, 当 type = popover 时才生效",
|
|
13800
|
+
"group": "basic"
|
|
13281
13801
|
},
|
|
13282
13802
|
{
|
|
13283
13803
|
"name": "tooltipConfig",
|
|
13284
|
-
"type": "
|
|
13804
|
+
"type": "TooltipConfig",
|
|
13285
13805
|
"required": "false",
|
|
13286
|
-
"
|
|
13287
|
-
"
|
|
13806
|
+
"description": "tooltip的配置,配置属性见TooltipConfig",
|
|
13807
|
+
"group": "other"
|
|
13288
13808
|
},
|
|
13289
13809
|
{
|
|
13290
13810
|
"name": "triggerByIcon",
|
|
13291
13811
|
"type": "boolean",
|
|
13292
13812
|
"required": "false",
|
|
13293
13813
|
"default": "true",
|
|
13294
|
-
"description": "是否只在icon上hover才显示tooltip,仅在不设置`displayBrick`时有效"
|
|
13814
|
+
"description": "是否只在icon上hover才显示tooltip,仅在不设置`displayBrick`时有效",
|
|
13815
|
+
"group": "other"
|
|
13295
13816
|
},
|
|
13296
13817
|
{
|
|
13297
13818
|
"name": "displayBrick",
|
|
13298
|
-
"type": "
|
|
13819
|
+
"type": "DisplayBrick",
|
|
13299
13820
|
"required": "false",
|
|
13300
|
-
"
|
|
13301
|
-
"
|
|
13821
|
+
"description": "自定义展示内容构件,设置后`icon`和`text`会无效",
|
|
13822
|
+
"group": "basic"
|
|
13302
13823
|
}
|
|
13303
13824
|
],
|
|
13304
13825
|
"interface": [
|
|
13826
|
+
{
|
|
13827
|
+
"name": "DisplayBrick",
|
|
13828
|
+
"typeParameter": null,
|
|
13829
|
+
"kind": "interface",
|
|
13830
|
+
"children": [
|
|
13831
|
+
{
|
|
13832
|
+
"name": "data",
|
|
13833
|
+
"type": "any",
|
|
13834
|
+
"required": false,
|
|
13835
|
+
"description": ""
|
|
13836
|
+
},
|
|
13837
|
+
{
|
|
13838
|
+
"name": "useBrick",
|
|
13839
|
+
"type": "UseBrickConf",
|
|
13840
|
+
"required": true,
|
|
13841
|
+
"description": ""
|
|
13842
|
+
}
|
|
13843
|
+
],
|
|
13844
|
+
"indexSignature": []
|
|
13845
|
+
},
|
|
13305
13846
|
{
|
|
13306
13847
|
"name": "TooltipConfig",
|
|
13307
13848
|
"typeParameter": null,
|
|
@@ -13469,8 +14010,8 @@
|
|
|
13469
14010
|
{
|
|
13470
14011
|
"name": "wrapperConfig",
|
|
13471
14012
|
"type": "BrickWrapperConfig",
|
|
13472
|
-
"default": "-",
|
|
13473
14013
|
"required": "false",
|
|
14014
|
+
"default": "-",
|
|
13474
14015
|
"description": "设置容器空状态时显示`empty`构件属性",
|
|
13475
14016
|
"group": "advanced"
|
|
13476
14017
|
},
|
|
@@ -14549,7 +15090,7 @@
|
|
|
14549
15090
|
},
|
|
14550
15091
|
{
|
|
14551
15092
|
"name": "fields",
|
|
14552
|
-
"type": "
|
|
15093
|
+
"type": "{ value?: string; }",
|
|
14553
15094
|
"required": "false",
|
|
14554
15095
|
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
|
|
14555
15096
|
"deprecated": true,
|
|
@@ -14755,7 +15296,8 @@
|
|
|
14755
15296
|
"type": "{ value?: string; }",
|
|
14756
15297
|
"required": "false",
|
|
14757
15298
|
"default": "-",
|
|
14758
|
-
"description": "",
|
|
15299
|
+
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
|
|
15300
|
+
"deprecated": true,
|
|
14759
15301
|
"group": "advanced"
|
|
14760
15302
|
},
|
|
14761
15303
|
{
|
|
@@ -15890,50 +16432,51 @@
|
|
|
15890
16432
|
"change": " 新增构件 `presentational-bricks.brick-illustration`"
|
|
15891
16433
|
}
|
|
15892
16434
|
],
|
|
15893
|
-
"memo": ">更多类型插画请移至[插画库](/developers/illustrations)",
|
|
16435
|
+
"memo": ">更多类型插画请移至[插画库](/next/developers/illustrations)",
|
|
15894
16436
|
"dockind": "brick",
|
|
15895
16437
|
"properties": [
|
|
15896
16438
|
{
|
|
15897
16439
|
"name": "name",
|
|
15898
16440
|
"type": "string",
|
|
15899
|
-
"default": "-",
|
|
15900
16441
|
"required": "true",
|
|
15901
16442
|
"description": "插画名称"
|
|
15902
16443
|
},
|
|
15903
16444
|
{
|
|
15904
16445
|
"name": "category",
|
|
15905
16446
|
"type": "string",
|
|
15906
|
-
"default": "`default`",
|
|
15907
16447
|
"required": "true",
|
|
15908
|
-
"
|
|
16448
|
+
"default": "\"default\"",
|
|
16449
|
+
"description": "插画类型",
|
|
16450
|
+
"group": "basic"
|
|
15909
16451
|
},
|
|
15910
16452
|
{
|
|
15911
16453
|
"name": "header",
|
|
15912
16454
|
"type": "IllustrationHeader",
|
|
15913
|
-
"
|
|
15914
|
-
"
|
|
15915
|
-
"
|
|
16455
|
+
"required": "false",
|
|
16456
|
+
"description": "插画头部内容",
|
|
16457
|
+
"group": "other"
|
|
15916
16458
|
},
|
|
15917
16459
|
{
|
|
15918
16460
|
"name": "footer",
|
|
15919
16461
|
"type": "IllustrationFooter",
|
|
15920
|
-
"default": "-",
|
|
15921
16462
|
"required": "false",
|
|
15922
|
-
"description": "插画底部内容"
|
|
16463
|
+
"description": "插画底部内容",
|
|
16464
|
+
"group": "other"
|
|
15923
16465
|
},
|
|
15924
16466
|
{
|
|
15925
16467
|
"name": "mode",
|
|
15926
16468
|
"type": "IllustrationMode",
|
|
15927
|
-
"
|
|
15928
|
-
"
|
|
15929
|
-
"
|
|
16469
|
+
"required": "false",
|
|
16470
|
+
"description": "插画模式",
|
|
16471
|
+
"group": "other",
|
|
16472
|
+
"deprecated": true
|
|
15930
16473
|
},
|
|
15931
16474
|
{
|
|
15932
16475
|
"name": "imageStyle",
|
|
15933
16476
|
"type": "CSSProperties",
|
|
15934
|
-
"
|
|
15935
|
-
"
|
|
15936
|
-
"
|
|
16477
|
+
"required": "false",
|
|
16478
|
+
"description": "图片样式",
|
|
16479
|
+
"group": "ui"
|
|
15937
16480
|
}
|
|
15938
16481
|
],
|
|
15939
16482
|
"interface": [
|
|
@@ -16770,18 +17313,264 @@
|
|
|
16770
17313
|
"children": [
|
|
16771
17314
|
{
|
|
16772
17315
|
"name": "extra",
|
|
16773
|
-
"type": "string |
|
|
17316
|
+
"type": "string | { useBrick?: UseBrickConf; }",
|
|
16774
17317
|
"required": false,
|
|
16775
17318
|
"description": "表格头部右边内容显示区域"
|
|
16776
17319
|
},
|
|
16777
17320
|
{
|
|
16778
17321
|
"name": "title",
|
|
16779
|
-
"type": "string |
|
|
17322
|
+
"type": "string | { useBrick?: UseBrickConf; }",
|
|
16780
17323
|
"required": true,
|
|
16781
17324
|
"description": "表格头部左边内容显示区域"
|
|
16782
17325
|
}
|
|
16783
17326
|
],
|
|
16784
17327
|
"indexSignature": []
|
|
17328
|
+
},
|
|
17329
|
+
{
|
|
17330
|
+
"name": "CustomColumn",
|
|
17331
|
+
"typeParameter": null,
|
|
17332
|
+
"kind": "interface",
|
|
17333
|
+
"extendedTypes": [
|
|
17334
|
+
{
|
|
17335
|
+
"type": "reference",
|
|
17336
|
+
"typeArguments": [
|
|
17337
|
+
{
|
|
17338
|
+
"type": "reference",
|
|
17339
|
+
"typeArguments": [
|
|
17340
|
+
{
|
|
17341
|
+
"type": "intrinsic",
|
|
17342
|
+
"name": "string"
|
|
17343
|
+
},
|
|
17344
|
+
{
|
|
17345
|
+
"type": "intrinsic",
|
|
17346
|
+
"name": "any"
|
|
17347
|
+
}
|
|
17348
|
+
],
|
|
17349
|
+
"name": "Record"
|
|
17350
|
+
}
|
|
17351
|
+
],
|
|
17352
|
+
"name": "ColumnProps"
|
|
17353
|
+
}
|
|
17354
|
+
],
|
|
17355
|
+
"children": [
|
|
17356
|
+
{
|
|
17357
|
+
"name": "align",
|
|
17358
|
+
"type": "AlignType",
|
|
17359
|
+
"required": false,
|
|
17360
|
+
"description": ""
|
|
17361
|
+
},
|
|
17362
|
+
{
|
|
17363
|
+
"name": "children",
|
|
17364
|
+
"type": "null",
|
|
17365
|
+
"required": false,
|
|
17366
|
+
"description": ""
|
|
17367
|
+
},
|
|
17368
|
+
{
|
|
17369
|
+
"name": "className",
|
|
17370
|
+
"type": "string",
|
|
17371
|
+
"required": false,
|
|
17372
|
+
"description": ""
|
|
17373
|
+
},
|
|
17374
|
+
{
|
|
17375
|
+
"name": "colSpan",
|
|
17376
|
+
"type": "number",
|
|
17377
|
+
"required": false,
|
|
17378
|
+
"description": ""
|
|
17379
|
+
},
|
|
17380
|
+
{
|
|
17381
|
+
"name": "dataIndex",
|
|
17382
|
+
"type": "DataIndex",
|
|
17383
|
+
"required": false,
|
|
17384
|
+
"description": ""
|
|
17385
|
+
},
|
|
17386
|
+
{
|
|
17387
|
+
"name": "defaultFilteredValue",
|
|
17388
|
+
"type": "Key[] | null",
|
|
17389
|
+
"required": false,
|
|
17390
|
+
"description": ""
|
|
17391
|
+
},
|
|
17392
|
+
{
|
|
17393
|
+
"name": "defaultSortOrder",
|
|
17394
|
+
"type": "SortOrder",
|
|
17395
|
+
"required": false,
|
|
17396
|
+
"description": ""
|
|
17397
|
+
},
|
|
17398
|
+
{
|
|
17399
|
+
"name": "ellipsis",
|
|
17400
|
+
"type": "CellEllipsisType",
|
|
17401
|
+
"required": false,
|
|
17402
|
+
"description": ""
|
|
17403
|
+
},
|
|
17404
|
+
{
|
|
17405
|
+
"name": "filterDropdown",
|
|
17406
|
+
"type": "React.ReactNode | { }",
|
|
17407
|
+
"required": false,
|
|
17408
|
+
"description": ""
|
|
17409
|
+
},
|
|
17410
|
+
{
|
|
17411
|
+
"name": "filterDropdownVisible",
|
|
17412
|
+
"type": "boolean",
|
|
17413
|
+
"required": false,
|
|
17414
|
+
"description": ""
|
|
17415
|
+
},
|
|
17416
|
+
{
|
|
17417
|
+
"name": "filterIcon",
|
|
17418
|
+
"type": "React.ReactNode | { }",
|
|
17419
|
+
"required": false,
|
|
17420
|
+
"description": ""
|
|
17421
|
+
},
|
|
17422
|
+
{
|
|
17423
|
+
"name": "filterMultiple",
|
|
17424
|
+
"type": "boolean",
|
|
17425
|
+
"required": false,
|
|
17426
|
+
"description": ""
|
|
17427
|
+
},
|
|
17428
|
+
{
|
|
17429
|
+
"name": "filtered",
|
|
17430
|
+
"type": "boolean",
|
|
17431
|
+
"required": false,
|
|
17432
|
+
"description": ""
|
|
17433
|
+
},
|
|
17434
|
+
{
|
|
17435
|
+
"name": "filteredValue",
|
|
17436
|
+
"type": "Key[] | null",
|
|
17437
|
+
"required": false,
|
|
17438
|
+
"description": ""
|
|
17439
|
+
},
|
|
17440
|
+
{
|
|
17441
|
+
"name": "filters",
|
|
17442
|
+
"type": "ColumnFilterItem[]",
|
|
17443
|
+
"required": false,
|
|
17444
|
+
"description": ""
|
|
17445
|
+
},
|
|
17446
|
+
{
|
|
17447
|
+
"name": "fixed",
|
|
17448
|
+
"type": "FixedType",
|
|
17449
|
+
"required": false,
|
|
17450
|
+
"description": ""
|
|
17451
|
+
},
|
|
17452
|
+
{
|
|
17453
|
+
"name": "headerBrick",
|
|
17454
|
+
"type": "{ useBrick: UseBrickConf; }",
|
|
17455
|
+
"required": false,
|
|
17456
|
+
"description": "支持为某列的表头自定义展示构件,可通过 DATA.title 获取标题文本"
|
|
17457
|
+
},
|
|
17458
|
+
{
|
|
17459
|
+
"name": "key",
|
|
17460
|
+
"type": "Key",
|
|
17461
|
+
"required": false,
|
|
17462
|
+
"description": ""
|
|
17463
|
+
},
|
|
17464
|
+
{
|
|
17465
|
+
"name": "onCell",
|
|
17466
|
+
"type": "GetComponentProps<Record<string, any>>",
|
|
17467
|
+
"required": false,
|
|
17468
|
+
"description": ""
|
|
17469
|
+
},
|
|
17470
|
+
{
|
|
17471
|
+
"name": "onCellClick",
|
|
17472
|
+
"type": "{ }",
|
|
17473
|
+
"required": false,
|
|
17474
|
+
"description": ""
|
|
17475
|
+
},
|
|
17476
|
+
{
|
|
17477
|
+
"name": "onFilter",
|
|
17478
|
+
"type": "{ }",
|
|
17479
|
+
"required": false,
|
|
17480
|
+
"description": ""
|
|
17481
|
+
},
|
|
17482
|
+
{
|
|
17483
|
+
"name": "onFilterDropdownVisibleChange",
|
|
17484
|
+
"type": "{ }",
|
|
17485
|
+
"required": false,
|
|
17486
|
+
"description": ""
|
|
17487
|
+
},
|
|
17488
|
+
{
|
|
17489
|
+
"name": "onHeaderCell",
|
|
17490
|
+
"type": "GetComponentProps<>",
|
|
17491
|
+
"required": false,
|
|
17492
|
+
"description": ""
|
|
17493
|
+
},
|
|
17494
|
+
{
|
|
17495
|
+
"name": "render",
|
|
17496
|
+
"type": "{ }",
|
|
17497
|
+
"required": false,
|
|
17498
|
+
"description": ""
|
|
17499
|
+
},
|
|
17500
|
+
{
|
|
17501
|
+
"name": "responsive",
|
|
17502
|
+
"type": "Breakpoint[]",
|
|
17503
|
+
"required": false,
|
|
17504
|
+
"description": ""
|
|
17505
|
+
},
|
|
17506
|
+
{
|
|
17507
|
+
"name": "rowSpan",
|
|
17508
|
+
"type": "number",
|
|
17509
|
+
"required": false,
|
|
17510
|
+
"description": ""
|
|
17511
|
+
},
|
|
17512
|
+
{
|
|
17513
|
+
"name": "shouldCellUpdate",
|
|
17514
|
+
"type": "{ }",
|
|
17515
|
+
"required": false,
|
|
17516
|
+
"description": ""
|
|
17517
|
+
},
|
|
17518
|
+
{
|
|
17519
|
+
"name": "showSorterTooltip",
|
|
17520
|
+
"type": "boolean | TooltipProps",
|
|
17521
|
+
"required": false,
|
|
17522
|
+
"description": ""
|
|
17523
|
+
},
|
|
17524
|
+
{
|
|
17525
|
+
"name": "sortDirections",
|
|
17526
|
+
"type": "SortOrder[]",
|
|
17527
|
+
"required": false,
|
|
17528
|
+
"description": ""
|
|
17529
|
+
},
|
|
17530
|
+
{
|
|
17531
|
+
"name": "sortOrder",
|
|
17532
|
+
"type": "SortOrder",
|
|
17533
|
+
"required": false,
|
|
17534
|
+
"description": ""
|
|
17535
|
+
},
|
|
17536
|
+
{
|
|
17537
|
+
"name": "sorter",
|
|
17538
|
+
"type": "boolean | CompareFn<Record<string, any>> | { compare?: CompareFn<Record<string, any>>; multiple?: number; }",
|
|
17539
|
+
"required": false,
|
|
17540
|
+
"description": ""
|
|
17541
|
+
},
|
|
17542
|
+
{
|
|
17543
|
+
"name": "title",
|
|
17544
|
+
"type": "ColumnTitle<Record<string, any>>",
|
|
17545
|
+
"required": false,
|
|
17546
|
+
"description": ""
|
|
17547
|
+
},
|
|
17548
|
+
{
|
|
17549
|
+
"name": "useBrick",
|
|
17550
|
+
"type": "UseBrickConf",
|
|
17551
|
+
"required": false,
|
|
17552
|
+
"description": "支持为某列自定义展示构件"
|
|
17553
|
+
},
|
|
17554
|
+
{
|
|
17555
|
+
"name": "valueSuffix",
|
|
17556
|
+
"type": "string",
|
|
17557
|
+
"required": false,
|
|
17558
|
+
"description": "字段的值展示时的后缀"
|
|
17559
|
+
},
|
|
17560
|
+
{
|
|
17561
|
+
"name": "verticalAlign",
|
|
17562
|
+
"type": "\"top\" | \"bottom\"",
|
|
17563
|
+
"required": false,
|
|
17564
|
+
"description": "单元格内元素的垂直对齐方式"
|
|
17565
|
+
},
|
|
17566
|
+
{
|
|
17567
|
+
"name": "width",
|
|
17568
|
+
"type": "number | string",
|
|
17569
|
+
"required": false,
|
|
17570
|
+
"description": ""
|
|
17571
|
+
}
|
|
17572
|
+
],
|
|
17573
|
+
"indexSignature": []
|
|
16785
17574
|
}
|
|
16786
17575
|
]
|
|
16787
17576
|
}
|
|
@@ -17123,6 +17912,7 @@
|
|
|
17123
17912
|
{
|
|
17124
17913
|
"name": "dataSource",
|
|
17125
17914
|
"type": "unknown",
|
|
17915
|
+
"required": true,
|
|
17126
17916
|
"description": "数据源"
|
|
17127
17917
|
}
|
|
17128
17918
|
],
|
|
@@ -17238,54 +18028,55 @@
|
|
|
17238
18028
|
{
|
|
17239
18029
|
"name": "dataSource",
|
|
17240
18030
|
"type": "any[]",
|
|
17241
|
-
"default": "",
|
|
17242
18031
|
"required": "true",
|
|
18032
|
+
"default": "",
|
|
17243
18033
|
"description": "数据源,其中的数据将会被渲染到左边一栏中,targetKeys 中指定的除外,必须有key字段作为唯一标识"
|
|
17244
18034
|
},
|
|
17245
18035
|
{
|
|
17246
18036
|
"name": "columns",
|
|
17247
18037
|
"type": "ColumnsType<Record<string, any>>",
|
|
17248
|
-
"default": "",
|
|
17249
18038
|
"required": "true",
|
|
18039
|
+
"default": "",
|
|
17250
18040
|
"description": "表格column配置"
|
|
17251
18041
|
},
|
|
17252
18042
|
{
|
|
17253
18043
|
"name": "targetKeys",
|
|
17254
18044
|
"type": "string[]",
|
|
17255
|
-
"default": "",
|
|
17256
18045
|
"required": "false",
|
|
18046
|
+
"default": "",
|
|
17257
18047
|
"description": "显示在右栏数据的 key 集合"
|
|
17258
18048
|
},
|
|
17259
18049
|
{
|
|
17260
18050
|
"name": "selectedKeys",
|
|
17261
18051
|
"type": "string[]",
|
|
17262
|
-
"default": "",
|
|
17263
18052
|
"required": "false",
|
|
18053
|
+
"default": "",
|
|
17264
18054
|
"description": "设置哪些项被选中"
|
|
17265
18055
|
},
|
|
17266
18056
|
{
|
|
17267
18057
|
"name": "disabled",
|
|
17268
18058
|
"type": "boolean",
|
|
17269
|
-
"default": "`false`",
|
|
17270
18059
|
"required": "false",
|
|
18060
|
+
"default": "`false`",
|
|
17271
18061
|
"description": "是否禁用"
|
|
17272
18062
|
},
|
|
17273
18063
|
{
|
|
17274
18064
|
"name": "dragSortable",
|
|
17275
|
-
"type": "boolean"
|
|
18065
|
+
"type": "boolean",
|
|
18066
|
+
"required": true
|
|
17276
18067
|
},
|
|
17277
18068
|
{
|
|
17278
18069
|
"name": "sortTitle",
|
|
17279
18070
|
"type": "string",
|
|
17280
|
-
"default": "`sort`",
|
|
17281
18071
|
"required": "false",
|
|
18072
|
+
"default": "`sort`",
|
|
17282
18073
|
"description": "支持右栏表格排序时,排序列的title"
|
|
17283
18074
|
},
|
|
17284
18075
|
{
|
|
17285
18076
|
"name": "maxSelected",
|
|
17286
18077
|
"type": "number",
|
|
17287
|
-
"default": "",
|
|
17288
18078
|
"required": "false",
|
|
18079
|
+
"default": "",
|
|
17289
18080
|
"description": "最大可选数量,当 dataSource 个数大于该值时,不显示全勾选框"
|
|
17290
18081
|
},
|
|
17291
18082
|
{
|