@next-bricks/presentational-bricks 1.253.0 → 1.256.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 +38 -0
- package/deploy/contract.yaml +110 -110
- package/dist/bricks.json +25 -25
- package/dist/index.39743793.js +2 -0
- package/dist/index.39743793.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.ed1f9278.js → ~bricks-use-form-and-markdown.dd92.6d5949c4.js} +2 -2
- package/dist/lazy-bricks/{~bricks-use-form-and-markdown.dd92.ed1f9278.js.map → ~bricks-use-form-and-markdown.dd92.6d5949c4.js.map} +1 -1
- package/dist/stories.json +1166 -509
- package/package.json +3 -3
- package/dist/index.98c10686.js +0 -2
- package/dist/index.98c10686.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": []
|
|
@@ -3242,7 +3246,7 @@
|
|
|
3242
3246
|
},
|
|
3243
3247
|
{
|
|
3244
3248
|
"name": "fields",
|
|
3245
|
-
"type": "
|
|
3249
|
+
"type": "{ value: string; }",
|
|
3246
3250
|
"required": "false",
|
|
3247
3251
|
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时对应字段的值",
|
|
3248
3252
|
"deprecated": true,
|
|
@@ -3605,16 +3609,16 @@
|
|
|
3605
3609
|
{
|
|
3606
3610
|
"name": "type",
|
|
3607
3611
|
"type": "\"link\" | \"text\"",
|
|
3608
|
-
"default": "link",
|
|
3609
3612
|
"required": "false",
|
|
3613
|
+
"default": "link",
|
|
3610
3614
|
"description": "链接类型:默认链接 - link 和 文本链接 - text",
|
|
3611
3615
|
"group": "ui"
|
|
3612
3616
|
},
|
|
3613
3617
|
{
|
|
3614
3618
|
"name": "iconAlign",
|
|
3615
3619
|
"type": "\"left\" | \"right\"",
|
|
3616
|
-
"default": "left",
|
|
3617
3620
|
"required": "false",
|
|
3621
|
+
"default": "left",
|
|
3618
3622
|
"description": "链接图标位置:左边 - left 右边 - right",
|
|
3619
3623
|
"group": "ui"
|
|
3620
3624
|
},
|
|
@@ -4548,7 +4552,8 @@
|
|
|
4548
4552
|
],
|
|
4549
4553
|
"events": [
|
|
4550
4554
|
{
|
|
4551
|
-
"type": "rate.change"
|
|
4555
|
+
"type": "rate.change",
|
|
4556
|
+
"detail": "Record<number, any>"
|
|
4552
4557
|
}
|
|
4553
4558
|
],
|
|
4554
4559
|
"interface": []
|
|
@@ -6551,8 +6556,8 @@
|
|
|
6551
6556
|
{
|
|
6552
6557
|
"name": "wrapperConfig",
|
|
6553
6558
|
"type": "BrickWrapperConfig",
|
|
6554
|
-
"default": "-",
|
|
6555
6559
|
"required": "false",
|
|
6560
|
+
"default": "-",
|
|
6556
6561
|
"description": "设置容器空状态时显示`empty`构件属性",
|
|
6557
6562
|
"group": "ui"
|
|
6558
6563
|
},
|
|
@@ -6806,8 +6811,8 @@
|
|
|
6806
6811
|
{
|
|
6807
6812
|
"name": "selectedRowKeys",
|
|
6808
6813
|
"type": "React.Key[]",
|
|
6809
|
-
"default": "[]",
|
|
6810
6814
|
"required": "false",
|
|
6815
|
+
"default": "[]",
|
|
6811
6816
|
"description": "指定选中项的 key 数组",
|
|
6812
6817
|
"group": "rowSelection"
|
|
6813
6818
|
}
|
|
@@ -6856,6 +6861,7 @@
|
|
|
6856
6861
|
},
|
|
6857
6862
|
{
|
|
6858
6863
|
"name": "filterSourceData",
|
|
6864
|
+
"params": "event: CustomEvent",
|
|
6859
6865
|
"description": "搜索过滤"
|
|
6860
6866
|
}
|
|
6861
6867
|
],
|
|
@@ -6951,225 +6957,553 @@
|
|
|
6951
6957
|
}
|
|
6952
6958
|
],
|
|
6953
6959
|
"indexSignature": []
|
|
6954
|
-
}
|
|
6955
|
-
]
|
|
6956
|
-
}
|
|
6957
|
-
},
|
|
6958
|
-
{
|
|
6959
|
-
"storyId": "presentational-bricks.brick-tag",
|
|
6960
|
-
"category": "data-view",
|
|
6961
|
-
"type": "brick",
|
|
6962
|
-
"author": "lynette",
|
|
6963
|
-
"text": {
|
|
6964
|
-
"en": "Tag Label",
|
|
6965
|
-
"zh": "Tag 标签"
|
|
6966
|
-
},
|
|
6967
|
-
"tags": [
|
|
6968
|
-
{
|
|
6969
|
-
"en": "show",
|
|
6970
|
-
"zh": "数据显示"
|
|
6971
|
-
}
|
|
6972
|
-
],
|
|
6973
|
-
"description": {
|
|
6974
|
-
"en": "tag label, support Tag and CheckableTag",
|
|
6975
|
-
"zh": "进行标记和分类的小标签,同时支持基本标签和可选中标签"
|
|
6976
|
-
},
|
|
6977
|
-
"icon": {
|
|
6978
|
-
"lib": "fa",
|
|
6979
|
-
"icon": "tags"
|
|
6980
|
-
},
|
|
6981
|
-
"conf": [
|
|
6982
|
-
{
|
|
6983
|
-
"description": {
|
|
6984
|
-
"title": "基本",
|
|
6985
|
-
"message": "标签支持多彩标签、可选择标签、可删除标签。"
|
|
6986
6960
|
},
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
"":
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
"
|
|
6997
|
-
"
|
|
6998
|
-
"tagList": [
|
|
6999
|
-
"Active",
|
|
7000
|
-
"Normal"
|
|
7001
|
-
]
|
|
7002
|
-
}
|
|
7003
|
-
},
|
|
7004
|
-
{
|
|
7005
|
-
"brick": "presentational-bricks.brick-tag",
|
|
7006
|
-
"properties": {
|
|
7007
|
-
"color": "var(--color-warning)",
|
|
7008
|
-
"showCard": true,
|
|
7009
|
-
"showTagCircle": false,
|
|
7010
|
-
"tagList": [
|
|
7011
|
-
"Active",
|
|
7012
|
-
"Normal"
|
|
7013
|
-
]
|
|
7014
|
-
}
|
|
7015
|
-
},
|
|
7016
|
-
{
|
|
7017
|
-
"brick": "presentational-bricks.brick-tag",
|
|
7018
|
-
"events": {
|
|
7019
|
-
"checked.update": {
|
|
7020
|
-
"action": "console.log"
|
|
7021
|
-
},
|
|
7022
|
-
"checked.update.v2": {
|
|
7023
|
-
"action": "console.log"
|
|
7024
|
-
}
|
|
7025
|
-
},
|
|
7026
|
-
"properties": {
|
|
7027
|
-
"showCard": true,
|
|
7028
|
-
"componentType": "CheckableTag",
|
|
7029
|
-
"default": "testB",
|
|
7030
|
-
"multipleCheck": false,
|
|
7031
|
-
"tagList": [
|
|
7032
|
-
{
|
|
7033
|
-
"key": "testA",
|
|
7034
|
-
"label": "testA"
|
|
7035
|
-
},
|
|
7036
|
-
{
|
|
7037
|
-
"key": "testB",
|
|
7038
|
-
"label": "testB",
|
|
7039
|
-
"icon": {
|
|
7040
|
-
"lib": "fa",
|
|
7041
|
-
"icon": "adjust",
|
|
7042
|
-
"prefix": "fas"
|
|
7043
|
-
}
|
|
7044
|
-
},
|
|
7045
|
-
{
|
|
7046
|
-
"key": "testC",
|
|
7047
|
-
"label": "testC"
|
|
7048
|
-
}
|
|
7049
|
-
]
|
|
7050
|
-
}
|
|
7051
|
-
},
|
|
7052
|
-
{
|
|
7053
|
-
"brick": "presentational-bricks.brick-tag",
|
|
7054
|
-
"properties": {
|
|
7055
|
-
"showCard": true,
|
|
7056
|
-
"closable": true,
|
|
7057
|
-
"tagList": [
|
|
7058
|
-
{
|
|
7059
|
-
"key": "close1",
|
|
7060
|
-
"label": "close1"
|
|
7061
|
-
},
|
|
6961
|
+
{
|
|
6962
|
+
"name": "CustomColumn",
|
|
6963
|
+
"typeParameter": null,
|
|
6964
|
+
"kind": "interface",
|
|
6965
|
+
"extendedTypes": [
|
|
6966
|
+
{
|
|
6967
|
+
"type": "reference",
|
|
6968
|
+
"typeArguments": [
|
|
6969
|
+
{
|
|
6970
|
+
"type": "reference",
|
|
6971
|
+
"typeArguments": [
|
|
7062
6972
|
{
|
|
7063
|
-
"
|
|
7064
|
-
"
|
|
6973
|
+
"type": "intrinsic",
|
|
6974
|
+
"name": "string"
|
|
7065
6975
|
},
|
|
7066
6976
|
{
|
|
7067
|
-
"
|
|
7068
|
-
"
|
|
6977
|
+
"type": "intrinsic",
|
|
6978
|
+
"name": "any"
|
|
7069
6979
|
}
|
|
7070
|
-
]
|
|
7071
|
-
|
|
7072
|
-
}
|
|
7073
|
-
]
|
|
7074
|
-
}
|
|
7075
|
-
}
|
|
7076
|
-
},
|
|
7077
|
-
{
|
|
7078
|
-
"description": {
|
|
7079
|
-
"title": "非填充色标签",
|
|
7080
|
-
"message": "设置color为内置主题色(颜色名称)时为非填充色标签。"
|
|
7081
|
-
},
|
|
7082
|
-
"brick": "presentational-bricks.card-item",
|
|
7083
|
-
"properties": {
|
|
7084
|
-
"cardLayoutType": "icon-as-background",
|
|
7085
|
-
"dataSource": {
|
|
7086
|
-
"descriptionList": [
|
|
7087
|
-
"Deployment 工作模式",
|
|
7088
|
-
"1 个负载均衡器",
|
|
7089
|
-
"啦啦"
|
|
7090
|
-
],
|
|
7091
|
-
"id": "1",
|
|
7092
|
-
"name": "k8s运行状态"
|
|
7093
|
-
},
|
|
7094
|
-
"fields": {
|
|
7095
|
-
"cardTitle": "name",
|
|
7096
|
-
"descriptionList": "descriptionList"
|
|
7097
|
-
},
|
|
7098
|
-
"style": {
|
|
7099
|
-
"width": "250px"
|
|
7100
|
-
}
|
|
7101
|
-
},
|
|
7102
|
-
"slots": {
|
|
7103
|
-
"topRightOperate": {
|
|
7104
|
-
"bricks": [
|
|
7105
|
-
{
|
|
7106
|
-
"brick": "presentational-bricks.brick-tag",
|
|
7107
|
-
"properties": {
|
|
7108
|
-
"color": "green",
|
|
7109
|
-
"showCard": false,
|
|
7110
|
-
"showTagCircle": true,
|
|
7111
|
-
"tagList": [
|
|
7112
|
-
"Active"
|
|
7113
|
-
]
|
|
7114
|
-
}
|
|
7115
|
-
}
|
|
7116
|
-
],
|
|
7117
|
-
"type": "bricks"
|
|
7118
|
-
}
|
|
7119
|
-
}
|
|
7120
|
-
},
|
|
7121
|
-
{
|
|
7122
|
-
"description": {
|
|
7123
|
-
"title": "填充色标签",
|
|
7124
|
-
"message": "设置color为非内置主题色时为填充色标签。填充色标签的重要等级更高。"
|
|
7125
|
-
},
|
|
7126
|
-
"brick": "presentational-bricks.card-item",
|
|
7127
|
-
"properties": {
|
|
7128
|
-
"cardLayoutType": "icon-as-background",
|
|
7129
|
-
"dataSource": {
|
|
7130
|
-
"descriptionList": [
|
|
7131
|
-
"Deployment 工作模式",
|
|
7132
|
-
"1 个负载均衡器",
|
|
7133
|
-
"啦啦"
|
|
7134
|
-
],
|
|
7135
|
-
"id": "1",
|
|
7136
|
-
"name": "k8s警告等级"
|
|
7137
|
-
},
|
|
7138
|
-
"fields": {
|
|
7139
|
-
"cardTitle": "name",
|
|
7140
|
-
"descriptionList": "descriptionList"
|
|
7141
|
-
},
|
|
7142
|
-
"style": {
|
|
7143
|
-
"width": "250px"
|
|
7144
|
-
}
|
|
7145
|
-
},
|
|
7146
|
-
"slots": {
|
|
7147
|
-
"topRightOperate": {
|
|
7148
|
-
"bricks": [
|
|
7149
|
-
{
|
|
7150
|
-
"brick": "presentational-bricks.brick-tag",
|
|
7151
|
-
"properties": {
|
|
7152
|
-
"showCard": false,
|
|
7153
|
-
"color": "var(--color-error)",
|
|
7154
|
-
"tagList": [
|
|
7155
|
-
"严重"
|
|
7156
|
-
]
|
|
6980
|
+
],
|
|
6981
|
+
"name": "Record"
|
|
7157
6982
|
}
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
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
|
+
]
|
|
7384
|
+
}
|
|
7385
|
+
},
|
|
7386
|
+
{
|
|
7387
|
+
"brick": "presentational-bricks.brick-tag",
|
|
7388
|
+
"properties": {
|
|
7389
|
+
"showCard": true,
|
|
7390
|
+
"closable": true,
|
|
7391
|
+
"tagList": [
|
|
7392
|
+
{
|
|
7393
|
+
"key": "close1",
|
|
7394
|
+
"label": "close1"
|
|
7395
|
+
},
|
|
7396
|
+
{
|
|
7397
|
+
"key": "close2",
|
|
7398
|
+
"label": "close2"
|
|
7399
|
+
},
|
|
7400
|
+
{
|
|
7401
|
+
"key": "close3",
|
|
7402
|
+
"label": "close3"
|
|
7403
|
+
}
|
|
7404
|
+
]
|
|
7405
|
+
}
|
|
7406
|
+
}
|
|
7407
|
+
]
|
|
7408
|
+
}
|
|
7409
|
+
}
|
|
7410
|
+
},
|
|
7411
|
+
{
|
|
7412
|
+
"description": {
|
|
7413
|
+
"title": "非填充色标签",
|
|
7414
|
+
"message": "设置color为内置主题色(颜色名称)时为非填充色标签。"
|
|
7415
|
+
},
|
|
7416
|
+
"brick": "presentational-bricks.card-item",
|
|
7417
|
+
"properties": {
|
|
7418
|
+
"cardLayoutType": "icon-as-background",
|
|
7419
|
+
"dataSource": {
|
|
7420
|
+
"descriptionList": [
|
|
7421
|
+
"Deployment 工作模式",
|
|
7422
|
+
"1 个负载均衡器",
|
|
7423
|
+
"啦啦"
|
|
7424
|
+
],
|
|
7425
|
+
"id": "1",
|
|
7426
|
+
"name": "k8s运行状态"
|
|
7427
|
+
},
|
|
7428
|
+
"fields": {
|
|
7429
|
+
"cardTitle": "name",
|
|
7430
|
+
"descriptionList": "descriptionList"
|
|
7431
|
+
},
|
|
7432
|
+
"style": {
|
|
7433
|
+
"width": "250px"
|
|
7434
|
+
}
|
|
7435
|
+
},
|
|
7436
|
+
"slots": {
|
|
7437
|
+
"topRightOperate": {
|
|
7438
|
+
"bricks": [
|
|
7439
|
+
{
|
|
7440
|
+
"brick": "presentational-bricks.brick-tag",
|
|
7441
|
+
"properties": {
|
|
7442
|
+
"color": "green",
|
|
7443
|
+
"showCard": false,
|
|
7444
|
+
"showTagCircle": true,
|
|
7445
|
+
"tagList": [
|
|
7446
|
+
"Active"
|
|
7447
|
+
]
|
|
7448
|
+
}
|
|
7449
|
+
}
|
|
7450
|
+
],
|
|
7451
|
+
"type": "bricks"
|
|
7452
|
+
}
|
|
7453
|
+
}
|
|
7454
|
+
},
|
|
7455
|
+
{
|
|
7456
|
+
"description": {
|
|
7457
|
+
"title": "填充色标签",
|
|
7458
|
+
"message": "设置color为非内置主题色时为填充色标签。填充色标签的重要等级更高。"
|
|
7459
|
+
},
|
|
7460
|
+
"brick": "presentational-bricks.card-item",
|
|
7461
|
+
"properties": {
|
|
7462
|
+
"cardLayoutType": "icon-as-background",
|
|
7463
|
+
"dataSource": {
|
|
7464
|
+
"descriptionList": [
|
|
7465
|
+
"Deployment 工作模式",
|
|
7466
|
+
"1 个负载均衡器",
|
|
7467
|
+
"啦啦"
|
|
7468
|
+
],
|
|
7469
|
+
"id": "1",
|
|
7470
|
+
"name": "k8s警告等级"
|
|
7471
|
+
},
|
|
7472
|
+
"fields": {
|
|
7473
|
+
"cardTitle": "name",
|
|
7474
|
+
"descriptionList": "descriptionList"
|
|
7475
|
+
},
|
|
7476
|
+
"style": {
|
|
7477
|
+
"width": "250px"
|
|
7478
|
+
}
|
|
7479
|
+
},
|
|
7480
|
+
"slots": {
|
|
7481
|
+
"topRightOperate": {
|
|
7482
|
+
"bricks": [
|
|
7483
|
+
{
|
|
7484
|
+
"brick": "presentational-bricks.brick-tag",
|
|
7485
|
+
"properties": {
|
|
7486
|
+
"showCard": false,
|
|
7487
|
+
"color": "var(--color-error)",
|
|
7488
|
+
"tagList": [
|
|
7489
|
+
"严重"
|
|
7490
|
+
]
|
|
7491
|
+
}
|
|
7492
|
+
}
|
|
7493
|
+
],
|
|
7494
|
+
"type": "bricks"
|
|
7495
|
+
}
|
|
7496
|
+
}
|
|
7497
|
+
},
|
|
7498
|
+
{
|
|
7499
|
+
"description": {
|
|
7500
|
+
"title": "可选择标签"
|
|
7501
|
+
},
|
|
7502
|
+
"brick": "forms.general-form",
|
|
7503
|
+
"events": {
|
|
7504
|
+
"validate.error": {
|
|
7505
|
+
"action": "console.warn",
|
|
7506
|
+
"args": [
|
|
7173
7507
|
"${EVENT.detail}"
|
|
7174
7508
|
]
|
|
7175
7509
|
},
|
|
@@ -7676,7 +8010,7 @@
|
|
|
7676
8010
|
},
|
|
7677
8011
|
{
|
|
7678
8012
|
"name": "afterBrick",
|
|
7679
|
-
"type": "
|
|
8013
|
+
"type": "{ data: unknown; useBrick: UseBrickConf; }",
|
|
7680
8014
|
"required": "false",
|
|
7681
8015
|
"description": "最后一个tag后面使用子构件,具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf)",
|
|
7682
8016
|
"group": "advanced"
|
|
@@ -8668,7 +9002,7 @@
|
|
|
8668
9002
|
"typeParameter": null,
|
|
8669
9003
|
"kind": "type",
|
|
8670
9004
|
"description": "",
|
|
8671
|
-
"type": "Omit<AntTreeNodeProps, \"children\"> &
|
|
9005
|
+
"type": "Omit<AntTreeNodeProps, \"children\"> & { children?: BrickTreeNodeProps[]; icon?: TreeIcon; key?: React.Key; title?: string; }"
|
|
8672
9006
|
}
|
|
8673
9007
|
]
|
|
8674
9008
|
}
|
|
@@ -8904,10 +9238,10 @@
|
|
|
8904
9238
|
"properties": [
|
|
8905
9239
|
{
|
|
8906
9240
|
"name": "messages",
|
|
8907
|
-
"type": "
|
|
8908
|
-
"default": "",
|
|
9241
|
+
"type": "{ error: string; success: string; }",
|
|
8909
9242
|
"required": "false",
|
|
8910
|
-
"description": "复制成功/失败时的提示,默认为“复制成功/失败”"
|
|
9243
|
+
"description": "复制成功/失败时的提示,默认为“复制成功/失败”",
|
|
9244
|
+
"group": "basic"
|
|
8911
9245
|
}
|
|
8912
9246
|
],
|
|
8913
9247
|
"methods": [
|
|
@@ -9281,59 +9615,62 @@
|
|
|
9281
9615
|
"properties": [
|
|
9282
9616
|
{
|
|
9283
9617
|
"name": "value",
|
|
9284
|
-
"type": "string|number",
|
|
9618
|
+
"type": "string | number",
|
|
9285
9619
|
"required": "false",
|
|
9286
|
-
"
|
|
9287
|
-
"
|
|
9620
|
+
"description": "原始值",
|
|
9621
|
+
"group": "basic"
|
|
9288
9622
|
},
|
|
9289
9623
|
{
|
|
9290
9624
|
"name": "dataSource",
|
|
9291
9625
|
"type": "Record<string, any>",
|
|
9292
9626
|
"required": "false",
|
|
9293
|
-
"
|
|
9294
|
-
"
|
|
9627
|
+
"description": "替代 `data` 属性,click 事件时传出的数据",
|
|
9628
|
+
"group": "basic"
|
|
9295
9629
|
},
|
|
9296
9630
|
{
|
|
9297
9631
|
"name": "fields",
|
|
9298
|
-
"type": "{ value: string }",
|
|
9632
|
+
"type": "{ value: string; }",
|
|
9299
9633
|
"required": "false",
|
|
9300
|
-
"
|
|
9301
|
-
"
|
|
9634
|
+
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
|
|
9635
|
+
"deprecated": true,
|
|
9636
|
+
"group": "other"
|
|
9302
9637
|
},
|
|
9303
9638
|
{
|
|
9304
9639
|
"name": "mapping",
|
|
9305
|
-
"type": "
|
|
9640
|
+
"type": "Record<string | number, MappingValue>",
|
|
9306
9641
|
"required": "true",
|
|
9307
|
-
"
|
|
9308
|
-
"
|
|
9642
|
+
"description": "映射规则",
|
|
9643
|
+
"group": "basic"
|
|
9309
9644
|
},
|
|
9310
9645
|
{
|
|
9311
9646
|
"name": "showTagCircle",
|
|
9312
9647
|
"type": "boolean",
|
|
9313
9648
|
"required": "false",
|
|
9314
|
-
"
|
|
9315
|
-
"
|
|
9649
|
+
"description": "显示文字旁边的小圈圈,按照平台规范通常表示状态的标签可设置为 true",
|
|
9650
|
+
"group": "ui"
|
|
9316
9651
|
},
|
|
9317
9652
|
{
|
|
9318
9653
|
"name": "triggerClickEvent",
|
|
9319
9654
|
"type": "boolean",
|
|
9320
9655
|
"required": "false",
|
|
9321
9656
|
"default": "false",
|
|
9322
|
-
"description": "是否触发点击事件"
|
|
9657
|
+
"description": "是否触发点击事件",
|
|
9658
|
+
"group": "basic"
|
|
9323
9659
|
},
|
|
9324
9660
|
{
|
|
9325
9661
|
"name": "link",
|
|
9326
9662
|
"type": "LinkProps",
|
|
9327
9663
|
"required": "false",
|
|
9328
|
-
"
|
|
9329
|
-
"
|
|
9664
|
+
"description": "若设置且 `triggerClickEvent` 为 false,则点击可跳转",
|
|
9665
|
+
"group": "basic"
|
|
9330
9666
|
},
|
|
9331
9667
|
{
|
|
9332
9668
|
"name": "data",
|
|
9333
9669
|
"type": "any",
|
|
9334
9670
|
"required": "false",
|
|
9335
|
-
"
|
|
9336
|
-
"
|
|
9671
|
+
"description": "[已废弃]可用于接收 useBrick 传递过来的数据",
|
|
9672
|
+
"deprecated": true,
|
|
9673
|
+
"group": "other"
|
|
9337
9674
|
}
|
|
9338
9675
|
],
|
|
9339
9676
|
"events": [
|
|
@@ -9717,6 +10054,7 @@
|
|
|
9717
10054
|
"name": "PanelEvent",
|
|
9718
10055
|
"typeParameter": null,
|
|
9719
10056
|
"kind": "interface",
|
|
10057
|
+
"description": "panelEvent",
|
|
9720
10058
|
"children": [
|
|
9721
10059
|
{
|
|
9722
10060
|
"name": "date",
|
|
@@ -10311,224 +10649,240 @@
|
|
|
10311
10649
|
"type": "CardLayoutType",
|
|
10312
10650
|
"required": "false",
|
|
10313
10651
|
"default": "\"icon-as-background\"",
|
|
10314
|
-
"description": "卡片布局类型,具体样式看 Demo"
|
|
10652
|
+
"description": "卡片布局类型,具体样式看 Demo",
|
|
10653
|
+
"group": "basic"
|
|
10315
10654
|
},
|
|
10316
10655
|
{
|
|
10317
10656
|
"name": "cardTitle",
|
|
10318
10657
|
"type": "string",
|
|
10319
10658
|
"required": "false",
|
|
10320
|
-
"
|
|
10321
|
-
"
|
|
10659
|
+
"description": "卡片 title",
|
|
10660
|
+
"group": "basic"
|
|
10322
10661
|
},
|
|
10323
10662
|
{
|
|
10324
10663
|
"name": "cardSubtitle",
|
|
10325
10664
|
"type": "string",
|
|
10326
10665
|
"required": "false",
|
|
10327
|
-
"
|
|
10328
|
-
"
|
|
10666
|
+
"description": "卡片 副标题",
|
|
10667
|
+
"group": "basic"
|
|
10329
10668
|
},
|
|
10330
10669
|
{
|
|
10331
10670
|
"name": "descriptionList",
|
|
10332
|
-
"type": "string[] | string |
|
|
10671
|
+
"type": "string[] | string | DescriptionItem[]",
|
|
10333
10672
|
"required": "false",
|
|
10334
|
-
"
|
|
10335
|
-
"
|
|
10673
|
+
"description": "描述信息",
|
|
10674
|
+
"group": "basic"
|
|
10336
10675
|
},
|
|
10337
10676
|
{
|
|
10338
10677
|
"name": "descMaxLine",
|
|
10339
10678
|
"type": "number",
|
|
10340
10679
|
"required": "false",
|
|
10341
10680
|
"default": "3",
|
|
10342
|
-
"description": "描述信息的最大行数,默认为 3 行,当信息比较少的时候可以设成 3 行以下。UI 规范建议 3 或者 3 以下。"
|
|
10681
|
+
"description": "描述信息的最大行数,默认为 3 行,当信息比较少的时候可以设成 3 行以下。UI 规范建议 3 或者 3 以下。",
|
|
10682
|
+
"group": "ui"
|
|
10343
10683
|
},
|
|
10344
10684
|
{
|
|
10345
10685
|
"name": "hideDescCircle",
|
|
10346
10686
|
"type": "boolean",
|
|
10347
10687
|
"required": "false",
|
|
10348
|
-
"
|
|
10349
|
-
"
|
|
10688
|
+
"description": "描述信息为数组的时候,默认显示每个`<li>`前面的小圈圈,不需要的时候可以隐藏",
|
|
10689
|
+
"group": "ui"
|
|
10350
10690
|
},
|
|
10351
10691
|
{
|
|
10352
10692
|
"name": "urlTemplate",
|
|
10353
10693
|
"type": "string",
|
|
10354
10694
|
"required": "false",
|
|
10355
|
-
"
|
|
10356
|
-
"
|
|
10695
|
+
"description": "卡片跳转 url,支持模版变量",
|
|
10696
|
+
"group": "basic"
|
|
10357
10697
|
},
|
|
10358
10698
|
{
|
|
10359
10699
|
"name": "url",
|
|
10360
10700
|
"type": "string",
|
|
10361
10701
|
"required": "false",
|
|
10362
|
-
"
|
|
10363
|
-
"
|
|
10702
|
+
"description": "卡片跳转 url, url 优先于 urlTemplate 执行",
|
|
10703
|
+
"group": "basic"
|
|
10364
10704
|
},
|
|
10365
10705
|
{
|
|
10366
10706
|
"name": "href",
|
|
10367
10707
|
"type": "string",
|
|
10368
10708
|
"required": "false",
|
|
10369
|
-
"
|
|
10370
|
-
"
|
|
10709
|
+
"description": "卡片跳转 href,优先于 url 执行",
|
|
10710
|
+
"group": "basic"
|
|
10371
10711
|
},
|
|
10372
10712
|
{
|
|
10373
10713
|
"name": "target",
|
|
10374
10714
|
"type": "string",
|
|
10375
10715
|
"required": "false",
|
|
10376
|
-
"
|
|
10377
|
-
"
|
|
10716
|
+
"description": "卡片跳转 target,例如可以设置成 _blank",
|
|
10717
|
+
"group": "basic"
|
|
10378
10718
|
},
|
|
10379
10719
|
{
|
|
10380
10720
|
"name": "dataSource",
|
|
10381
10721
|
"type": "Record<string, any>",
|
|
10382
10722
|
"required": "true",
|
|
10383
|
-
"
|
|
10384
|
-
"
|
|
10723
|
+
"description": "卡片信息数据源",
|
|
10724
|
+
"group": "basic"
|
|
10385
10725
|
},
|
|
10386
10726
|
{
|
|
10387
10727
|
"name": "fields",
|
|
10388
|
-
"type": "{
|
|
10389
|
-
"required": "
|
|
10390
|
-
"
|
|
10391
|
-
"
|
|
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"
|
|
10392
10732
|
},
|
|
10393
10733
|
{
|
|
10394
10734
|
"name": "icon",
|
|
10395
10735
|
"type": "MenuIcon",
|
|
10396
10736
|
"required": "false",
|
|
10397
|
-
"
|
|
10398
|
-
"
|
|
10737
|
+
"description": "卡片右下角的 icon, [详细配置](https://github.com/easyops-cn/next-core/blob/34a0808712ecaa925d0860d281ab23cf3bec7317/packages/brick-types/src/menu.ts#L104), 也可参照示例中的写法",
|
|
10738
|
+
"group": "basic"
|
|
10399
10739
|
},
|
|
10400
10740
|
{
|
|
10401
10741
|
"name": "iconStyle",
|
|
10402
10742
|
"type": "Record<string, any>",
|
|
10403
10743
|
"required": "false",
|
|
10404
|
-
"
|
|
10405
|
-
"
|
|
10744
|
+
"description": "卡片右下角的 icon 的样式,例如需要调整 opacity、right、bottom 的时候可以使用",
|
|
10745
|
+
"group": "ui"
|
|
10406
10746
|
},
|
|
10407
10747
|
{
|
|
10408
10748
|
"name": "iconColor",
|
|
10409
10749
|
"type": "Color",
|
|
10410
10750
|
"required": "false",
|
|
10411
|
-
"default": "
|
|
10412
|
-
"description": "卡片类型为 \"icon-small-align-left\"
|
|
10751
|
+
"default": "\"gray\"",
|
|
10752
|
+
"description": "卡片类型为 \"icon-small-align-left\" | \"icon-align-right\" | \"icon-align-left\" 的时候可以设置 icon 的颜色",
|
|
10753
|
+
"group": "ui"
|
|
10413
10754
|
},
|
|
10414
10755
|
{
|
|
10415
10756
|
"name": "iconSize",
|
|
10416
|
-
"type": "string|number",
|
|
10757
|
+
"type": "string | number",
|
|
10417
10758
|
"required": "false",
|
|
10418
10759
|
"default": "100px",
|
|
10419
|
-
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的大小"
|
|
10760
|
+
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的大小",
|
|
10761
|
+
"group": "ui"
|
|
10420
10762
|
},
|
|
10421
10763
|
{
|
|
10422
10764
|
"name": "iconOffsetX",
|
|
10423
|
-
"type": "string|number",
|
|
10765
|
+
"type": "string | number",
|
|
10424
10766
|
"required": "false",
|
|
10425
10767
|
"default": "0",
|
|
10426
|
-
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的 X 轴偏移量,向左为正数向右为负数"
|
|
10768
|
+
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的 X 轴偏移量,向左为正数向右为负数",
|
|
10769
|
+
"group": "basic"
|
|
10427
10770
|
},
|
|
10428
10771
|
{
|
|
10429
10772
|
"name": "iconOffsetY",
|
|
10430
|
-
"type": "string|number",
|
|
10773
|
+
"type": "string | number",
|
|
10431
10774
|
"required": "false",
|
|
10432
10775
|
"default": "0",
|
|
10433
|
-
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的 Y 轴偏移量,向上为正数向下为负数"
|
|
10776
|
+
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的 Y 轴偏移量,向上为正数向下为负数",
|
|
10777
|
+
"group": "basic"
|
|
10434
10778
|
},
|
|
10435
10779
|
{
|
|
10436
10780
|
"name": "iconOpacity",
|
|
10437
10781
|
"type": "number",
|
|
10438
10782
|
"required": "false",
|
|
10439
10783
|
"default": "0.45",
|
|
10440
|
-
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的透明度"
|
|
10784
|
+
"description": "卡片类型为 \"icon-as-background\" 的时候可以设置 icon 的透明度",
|
|
10785
|
+
"group": "ui"
|
|
10441
10786
|
},
|
|
10442
10787
|
{
|
|
10443
10788
|
"name": "tagConfig",
|
|
10444
|
-
"type": "{
|
|
10789
|
+
"type": "{ color?: Color; field?: string; hideOperate?: boolean; isNotEqual?: boolean; text: string; triangle?: boolean; value?: any; }",
|
|
10445
10790
|
"required": "false",
|
|
10446
|
-
"
|
|
10447
|
-
"
|
|
10791
|
+
"description": "右上角 tag 标签",
|
|
10792
|
+
"group": "other"
|
|
10448
10793
|
},
|
|
10449
10794
|
{
|
|
10450
10795
|
"name": "configProps",
|
|
10451
|
-
"type": "
|
|
10796
|
+
"type": "CardProps",
|
|
10452
10797
|
"required": "false",
|
|
10453
|
-
"
|
|
10454
|
-
"
|
|
10798
|
+
"description": "完全透传给 antd 的 Card 属性,详见:[antd卡片属性](https://ant.design/components/card-cn/#Card)",
|
|
10799
|
+
"group": "other"
|
|
10455
10800
|
},
|
|
10456
10801
|
{
|
|
10457
10802
|
"name": "bordered",
|
|
10458
10803
|
"type": "boolean",
|
|
10459
10804
|
"required": "false",
|
|
10460
10805
|
"default": "true",
|
|
10461
|
-
"description": "卡片项是否显示外边框"
|
|
10806
|
+
"description": "卡片项是否显示外边框",
|
|
10807
|
+
"group": "ui"
|
|
10462
10808
|
},
|
|
10463
10809
|
{
|
|
10464
10810
|
"name": "showOperationAreaWhenHovering",
|
|
10465
10811
|
"type": "boolean",
|
|
10466
10812
|
"required": "false",
|
|
10467
10813
|
"default": "false",
|
|
10468
|
-
"description": "是否鼠标悬浮显示操作区"
|
|
10814
|
+
"description": "是否鼠标悬浮显示操作区",
|
|
10815
|
+
"group": "basic"
|
|
10469
10816
|
},
|
|
10470
10817
|
{
|
|
10471
10818
|
"name": "alwaysShowDescription",
|
|
10472
10819
|
"type": "boolean",
|
|
10473
10820
|
"required": "false",
|
|
10474
10821
|
"default": "false",
|
|
10475
|
-
"description": "是否总是总是展示描述区域"
|
|
10822
|
+
"description": "是否总是总是展示描述区域",
|
|
10823
|
+
"group": "basic"
|
|
10476
10824
|
},
|
|
10477
10825
|
{
|
|
10478
10826
|
"name": "descriptionDataType",
|
|
10479
|
-
"type": "
|
|
10827
|
+
"type": "\"list\" | \"section\"",
|
|
10480
10828
|
"required": "false",
|
|
10481
10829
|
"default": "false",
|
|
10482
|
-
"description": "指定描述区的显示形式,若descriptionList为数组时,应当指定为 `list`,若descriptionList为字符串时,应当指定为 `section`,单独使用卡片时无需设置该属性"
|
|
10830
|
+
"description": "指定描述区的显示形式,若descriptionList为数组时,应当指定为 `list`,若descriptionList为字符串时,应当指定为 `section`,单独使用卡片时无需设置该属性",
|
|
10831
|
+
"group": "basic"
|
|
10483
10832
|
},
|
|
10484
10833
|
{
|
|
10485
10834
|
"name": "hoverable",
|
|
10486
10835
|
"type": "boolean",
|
|
10487
10836
|
"required": "false",
|
|
10488
10837
|
"default": "true",
|
|
10489
|
-
"description": "卡片项是否hover浮起"
|
|
10838
|
+
"description": "卡片项是否hover浮起",
|
|
10839
|
+
"group": "ui"
|
|
10490
10840
|
},
|
|
10491
10841
|
{
|
|
10492
10842
|
"name": "disabled",
|
|
10493
10843
|
"type": "boolean",
|
|
10494
10844
|
"required": "false",
|
|
10495
10845
|
"default": "false",
|
|
10496
|
-
"description": "禁用卡片,禁用的卡片不可点击跳转。操作区配置了 slot 的卡片,请按需配置子构件的属性,例如将按钮设置成 disabled 等。"
|
|
10846
|
+
"description": "禁用卡片,禁用的卡片不可点击跳转。操作区配置了 slot 的卡片,请按需配置子构件的属性,例如将按钮设置成 disabled 等。",
|
|
10847
|
+
"group": "basic"
|
|
10497
10848
|
},
|
|
10498
10849
|
{
|
|
10499
10850
|
"name": "reverseBgColor",
|
|
10500
10851
|
"type": "boolean",
|
|
10501
10852
|
"required": "false",
|
|
10502
10853
|
"default": "false",
|
|
10503
|
-
"description": "反转背景色,背景色为icon传入的颜色,icon为白色。"
|
|
10854
|
+
"description": "反转背景色,背景色为icon传入的颜色,icon为白色。",
|
|
10855
|
+
"group": "ui"
|
|
10504
10856
|
},
|
|
10505
10857
|
{
|
|
10506
10858
|
"name": "imgSrc",
|
|
10507
10859
|
"type": "string",
|
|
10508
10860
|
"required": "false",
|
|
10509
|
-
"
|
|
10510
|
-
"
|
|
10861
|
+
"description": "图片图标的src",
|
|
10862
|
+
"group": "basic"
|
|
10511
10863
|
},
|
|
10512
10864
|
{
|
|
10513
10865
|
"name": "showImg",
|
|
10514
10866
|
"type": "boolean",
|
|
10515
10867
|
"required": "false",
|
|
10516
10868
|
"default": "false",
|
|
10517
|
-
"description": "是否显示图片,默认显示图标,设置显示图片后,可配置 `imgSrc` 属性"
|
|
10869
|
+
"description": "是否显示图片,默认显示图标,设置显示图片后,可配置 `imgSrc` 属性",
|
|
10870
|
+
"group": "basic"
|
|
10518
10871
|
},
|
|
10519
10872
|
{
|
|
10520
10873
|
"name": "imgSize",
|
|
10521
10874
|
"type": "number",
|
|
10522
10875
|
"required": "false",
|
|
10523
|
-
"
|
|
10524
|
-
"
|
|
10876
|
+
"description": "图标是img时,可以设置 img 的大小,不设置时会铺满",
|
|
10877
|
+
"group": "basic"
|
|
10525
10878
|
},
|
|
10526
10879
|
{
|
|
10527
10880
|
"name": "shape",
|
|
10528
10881
|
"type": "\"circle\" | \"square\" | \"round-square\"",
|
|
10529
|
-
"default": "\"circle\"",
|
|
10530
10882
|
"required": "false",
|
|
10531
|
-
"
|
|
10883
|
+
"default": "\"circle\"",
|
|
10884
|
+
"description": "设置icon背景形状,仅在设置`bg`为true时有效",
|
|
10885
|
+
"group": "basic"
|
|
10532
10886
|
}
|
|
10533
10887
|
],
|
|
10534
10888
|
"events": [
|
|
@@ -10988,7 +11342,8 @@
|
|
|
10988
11342
|
},
|
|
10989
11343
|
{
|
|
10990
11344
|
"name": "subscriptConfig",
|
|
10991
|
-
"type": "any"
|
|
11345
|
+
"type": "any",
|
|
11346
|
+
"required": true
|
|
10992
11347
|
}
|
|
10993
11348
|
],
|
|
10994
11349
|
"methods": [
|
|
@@ -11081,8 +11436,8 @@
|
|
|
11081
11436
|
{
|
|
11082
11437
|
"name": "type",
|
|
11083
11438
|
"type": "string",
|
|
11084
|
-
"default": "custom",
|
|
11085
11439
|
"required": "false",
|
|
11440
|
+
"default": "custom",
|
|
11086
11441
|
"description": "构件样式,支持普通(`custom`)和输入框(`input`)和 中间省略(`text`) 样式(见示例)"
|
|
11087
11442
|
},
|
|
11088
11443
|
{
|
|
@@ -11150,43 +11505,45 @@
|
|
|
11150
11505
|
"name": "cost",
|
|
11151
11506
|
"type": "number",
|
|
11152
11507
|
"required": "false",
|
|
11153
|
-
"
|
|
11154
|
-
"
|
|
11508
|
+
"description": "消耗时间(毫秒级)",
|
|
11509
|
+
"group": "basic"
|
|
11155
11510
|
},
|
|
11156
11511
|
{
|
|
11157
11512
|
"name": "startTime",
|
|
11158
|
-
"type": "string|number",
|
|
11513
|
+
"type": "string | number",
|
|
11159
11514
|
"required": "false",
|
|
11160
|
-
"
|
|
11161
|
-
"
|
|
11515
|
+
"description": "起始时间",
|
|
11516
|
+
"group": "basic"
|
|
11162
11517
|
},
|
|
11163
11518
|
{
|
|
11164
11519
|
"name": "endTime",
|
|
11165
|
-
"type": "string|number",
|
|
11520
|
+
"type": "string | number",
|
|
11166
11521
|
"required": "false",
|
|
11167
|
-
"
|
|
11168
|
-
"
|
|
11522
|
+
"description": "结束时间",
|
|
11523
|
+
"group": "basic"
|
|
11169
11524
|
},
|
|
11170
11525
|
{
|
|
11171
11526
|
"name": "unitStyle",
|
|
11172
|
-
"type": "
|
|
11527
|
+
"type": "CSSProperties",
|
|
11173
11528
|
"required": "false",
|
|
11174
|
-
"
|
|
11175
|
-
"
|
|
11529
|
+
"description": "单位样式",
|
|
11530
|
+
"group": "ui"
|
|
11176
11531
|
},
|
|
11177
11532
|
{
|
|
11178
11533
|
"name": "dataSource",
|
|
11179
11534
|
"type": "any",
|
|
11180
11535
|
"required": "false",
|
|
11181
|
-
"
|
|
11182
|
-
"
|
|
11536
|
+
"description": "[已废弃]数据源",
|
|
11537
|
+
"deprecated": true,
|
|
11538
|
+
"group": "other"
|
|
11183
11539
|
},
|
|
11184
11540
|
{
|
|
11185
11541
|
"name": "fields",
|
|
11186
|
-
"type": "{ cost?: string;
|
|
11542
|
+
"type": "{ cost?: string; endTime?: string; startTime?: string; }",
|
|
11187
11543
|
"required": "false",
|
|
11188
|
-
"
|
|
11189
|
-
"
|
|
11544
|
+
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时对应字段",
|
|
11545
|
+
"deprecated": true,
|
|
11546
|
+
"group": "other"
|
|
11190
11547
|
}
|
|
11191
11548
|
],
|
|
11192
11549
|
"interface": []
|
|
@@ -11277,10 +11634,13 @@
|
|
|
11277
11634
|
},
|
|
11278
11635
|
"conf": [
|
|
11279
11636
|
{
|
|
11637
|
+
"description": {
|
|
11638
|
+
"title": "默认时间范围选项"
|
|
11639
|
+
},
|
|
11280
11640
|
"brick": "presentational-bricks.datetime-selector",
|
|
11281
11641
|
"properties": {
|
|
11282
|
-
"from": "
|
|
11283
|
-
"to": "
|
|
11642
|
+
"from": "<% QUERY.from || 'now/d' %>",
|
|
11643
|
+
"to": "<% QUERY.to %>"
|
|
11284
11644
|
},
|
|
11285
11645
|
"events": {
|
|
11286
11646
|
"datetime.selected.v2": {
|
|
@@ -11292,11 +11652,14 @@
|
|
|
11292
11652
|
}
|
|
11293
11653
|
},
|
|
11294
11654
|
{
|
|
11655
|
+
"description": {
|
|
11656
|
+
"title": "自定义时间范围选项"
|
|
11657
|
+
},
|
|
11295
11658
|
"brick": "presentational-bricks.datetime-selector",
|
|
11296
11659
|
"properties": {
|
|
11297
11660
|
"shouldUpdateUrlParams": false,
|
|
11298
|
-
"from": "
|
|
11299
|
-
"to": "
|
|
11661
|
+
"from": "<% QUERY.from || 'now/d' %>",
|
|
11662
|
+
"to": "<% QUERY.to %>",
|
|
11300
11663
|
"type": "custom",
|
|
11301
11664
|
"customTimeRange": [
|
|
11302
11665
|
{
|
|
@@ -11348,42 +11711,45 @@
|
|
|
11348
11711
|
"change": "新增属性 `resolution`"
|
|
11349
11712
|
}
|
|
11350
11713
|
],
|
|
11351
|
-
"memo": "> Tips: 第一个示例 demo 由于 shouldUpdateUrlParams=true 会更新 url 中的参数,会导致第二个示例时间选择器也会跟着变化, 而第二个示例 shouldUpdateUrlParams=false, 不会改变 url 所以第一示例不受它的影响,特作此说明。\n\n```typescript\
|
|
11714
|
+
"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)",
|
|
11352
11715
|
"properties": [
|
|
11353
11716
|
{
|
|
11354
11717
|
"name": "from",
|
|
11355
11718
|
"type": "string",
|
|
11356
11719
|
"required": "true",
|
|
11357
|
-
"default": "now-1d",
|
|
11358
|
-
"description": "
|
|
11720
|
+
"default": "\"now-1d\"",
|
|
11721
|
+
"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 占位符语法](https://admin.easyops.local/next-docs/docs/brick-next/evaluate-placeholders) 不支持 `/` 的特殊字符解析,所以该值需要用字符串的形式来书写(如 demo 所示)。",
|
|
11722
|
+
"group": "basic"
|
|
11359
11723
|
},
|
|
11360
11724
|
{
|
|
11361
11725
|
"name": "to",
|
|
11362
11726
|
"type": "string",
|
|
11363
11727
|
"required": "false",
|
|
11364
|
-
"
|
|
11365
|
-
"
|
|
11728
|
+
"description": "默认结束时间, 相关规则请参照from属性",
|
|
11729
|
+
"group": "basic"
|
|
11366
11730
|
},
|
|
11367
11731
|
{
|
|
11368
11732
|
"name": "shouldUpdateUrlParams",
|
|
11369
11733
|
"type": "boolean",
|
|
11370
11734
|
"required": "false",
|
|
11371
11735
|
"default": "true",
|
|
11372
|
-
"description": "是否更新 url 参数并刷新页面"
|
|
11736
|
+
"description": "是否更新 url 参数并刷新页面",
|
|
11737
|
+
"group": "basic"
|
|
11373
11738
|
},
|
|
11374
11739
|
{
|
|
11375
11740
|
"name": "type",
|
|
11376
|
-
"type": "default | custom",
|
|
11741
|
+
"type": "\"default\" | \"custom\"",
|
|
11377
11742
|
"required": "false",
|
|
11378
|
-
"default": "default",
|
|
11379
|
-
"description": "时间选择器支持两种类型,一种是默认的,固定显示常用的几种时间范围,一种是自定义的,可根据需求定制特定时间范围"
|
|
11743
|
+
"default": "\"default\"",
|
|
11744
|
+
"description": "时间选择器支持两种类型,一种是默认的,固定显示常用的几种时间范围,一种是自定义的,可根据需求定制特定时间范围",
|
|
11745
|
+
"group": "basic"
|
|
11380
11746
|
},
|
|
11381
11747
|
{
|
|
11382
11748
|
"name": "customTimeRange",
|
|
11383
11749
|
"type": "{range: string, text: string}",
|
|
11384
11750
|
"required": "false",
|
|
11385
|
-
"
|
|
11386
|
-
"
|
|
11751
|
+
"description": "当 type 为 custom 时,配置定制的时间范围,目前暂支持如下时间点,当 type 为 default 时,该配置项无效",
|
|
11752
|
+
"group": "basic"
|
|
11387
11753
|
},
|
|
11388
11754
|
{
|
|
11389
11755
|
"name": "placement",
|
|
@@ -11391,23 +11757,29 @@
|
|
|
11391
11757
|
"required": "false",
|
|
11392
11758
|
"default": "\"bottom\"",
|
|
11393
11759
|
"description": "弹出位置",
|
|
11394
|
-
"group": "
|
|
11760
|
+
"group": "other"
|
|
11395
11761
|
},
|
|
11396
11762
|
{
|
|
11397
11763
|
"name": "resolution",
|
|
11398
|
-
"type": "ms | s",
|
|
11764
|
+
"type": "\"ms\" | \"s\"",
|
|
11399
11765
|
"required": "false",
|
|
11400
|
-
"default": "
|
|
11766
|
+
"default": "\"ms\"",
|
|
11401
11767
|
"description": "指定时间戳的单位,目前支持秒和毫秒,默认为毫秒,切换为秒时,url 和事件传出的时间戳都会调整成以秒为单位",
|
|
11402
|
-
"group": "
|
|
11768
|
+
"group": "other"
|
|
11403
11769
|
},
|
|
11404
11770
|
{
|
|
11405
11771
|
"name": "size",
|
|
11406
11772
|
"type": "\"default\" | \"large\" | \"small\"",
|
|
11407
11773
|
"required": "false",
|
|
11408
|
-
"default": "-",
|
|
11409
11774
|
"description": "打开选择器的按钮的大小",
|
|
11410
|
-
"group": "
|
|
11775
|
+
"group": "other"
|
|
11776
|
+
},
|
|
11777
|
+
{
|
|
11778
|
+
"name": "selectNearDays",
|
|
11779
|
+
"type": "number",
|
|
11780
|
+
"required": "false",
|
|
11781
|
+
"description": "限制选择近n天",
|
|
11782
|
+
"group": "other"
|
|
11411
11783
|
}
|
|
11412
11784
|
],
|
|
11413
11785
|
"events": [
|
|
@@ -11427,7 +11799,15 @@
|
|
|
11427
11799
|
"description": "选择当前时间,与 `datetime.selected` 不同的是虽然还是区分时间戳和时间段两种类型,但是调整了输出字段格式, 这样更利于某些监控场景的使用和编排"
|
|
11428
11800
|
}
|
|
11429
11801
|
],
|
|
11430
|
-
"interface": [
|
|
11802
|
+
"interface": [
|
|
11803
|
+
{
|
|
11804
|
+
"name": "TooltipPlacement",
|
|
11805
|
+
"typeParameter": null,
|
|
11806
|
+
"kind": "type",
|
|
11807
|
+
"description": "",
|
|
11808
|
+
"type": "\"top\" | \"left\" | \"right\" | \"bottom\" | \"topLeft\" | \"topRight\" | \"bottomLeft\" | \"bottomRight\" | \"leftTop\" | \"leftBottom\" | \"rightTop\" | \"rightBottom\""
|
|
11809
|
+
}
|
|
11810
|
+
]
|
|
11431
11811
|
}
|
|
11432
11812
|
},
|
|
11433
11813
|
{
|
|
@@ -11449,26 +11829,31 @@
|
|
|
11449
11829
|
},
|
|
11450
11830
|
"conf": [
|
|
11451
11831
|
{
|
|
11832
|
+
"description": {
|
|
11833
|
+
"title": "单选示例"
|
|
11834
|
+
},
|
|
11452
11835
|
"brick": "presentational-bricks.dropdown-select",
|
|
11453
11836
|
"properties": {
|
|
11454
|
-
"
|
|
11837
|
+
"options": [
|
|
11455
11838
|
{
|
|
11456
11839
|
"label": "应用1",
|
|
11457
|
-
"value": "
|
|
11458
|
-
"
|
|
11840
|
+
"value": "aaaa",
|
|
11841
|
+
"content": "描述1"
|
|
11459
11842
|
},
|
|
11460
11843
|
{
|
|
11461
11844
|
"label": "应用2",
|
|
11462
|
-
"value": "
|
|
11463
|
-
"
|
|
11845
|
+
"value": "bbbb",
|
|
11846
|
+
"content": "描述2"
|
|
11847
|
+
},
|
|
11848
|
+
{
|
|
11849
|
+
"label": "应用3",
|
|
11850
|
+
"value": "cccc",
|
|
11851
|
+
"content": "描述3"
|
|
11464
11852
|
}
|
|
11465
11853
|
],
|
|
11466
|
-
"
|
|
11467
|
-
"
|
|
11468
|
-
"
|
|
11469
|
-
"optionTitle": "#{item.label}",
|
|
11470
|
-
"optionContent": "#{item.desc}",
|
|
11471
|
-
"valuePath": "item.value"
|
|
11854
|
+
"placeholder": "请选择",
|
|
11855
|
+
"value": "aaaa",
|
|
11856
|
+
"labelFontSize": "16px"
|
|
11472
11857
|
},
|
|
11473
11858
|
"events": {
|
|
11474
11859
|
"select.change": {
|
|
@@ -11477,26 +11862,36 @@
|
|
|
11477
11862
|
}
|
|
11478
11863
|
},
|
|
11479
11864
|
{
|
|
11865
|
+
"description": {
|
|
11866
|
+
"title": "多选示例"
|
|
11867
|
+
},
|
|
11480
11868
|
"brick": "presentational-bricks.dropdown-select",
|
|
11481
11869
|
"properties": {
|
|
11482
|
-
"
|
|
11870
|
+
"options": [
|
|
11483
11871
|
{
|
|
11484
|
-
"label": "应用
|
|
11485
|
-
"value": "
|
|
11486
|
-
"
|
|
11872
|
+
"label": "应用1",
|
|
11873
|
+
"value": "aaaa",
|
|
11874
|
+
"content": "描述1"
|
|
11487
11875
|
},
|
|
11488
11876
|
{
|
|
11489
|
-
"label": "应用
|
|
11490
|
-
"value": "
|
|
11491
|
-
"
|
|
11877
|
+
"label": "应用2",
|
|
11878
|
+
"value": "bbbb",
|
|
11879
|
+
"content": "描述2"
|
|
11880
|
+
},
|
|
11881
|
+
{
|
|
11882
|
+
"label": "应用3",
|
|
11883
|
+
"value": "cccc",
|
|
11884
|
+
"content": "描述3"
|
|
11492
11885
|
}
|
|
11493
11886
|
],
|
|
11494
|
-
"value": "
|
|
11495
|
-
"
|
|
11496
|
-
"
|
|
11497
|
-
"
|
|
11498
|
-
"
|
|
11499
|
-
|
|
11887
|
+
"value": "bbbb",
|
|
11888
|
+
"placeholder": "请选择",
|
|
11889
|
+
"labelFontSize": "14px",
|
|
11890
|
+
"multipleSelect": true,
|
|
11891
|
+
"selectedKeys": [
|
|
11892
|
+
"aaaa",
|
|
11893
|
+
"bbbb"
|
|
11894
|
+
]
|
|
11500
11895
|
},
|
|
11501
11896
|
"events": {
|
|
11502
11897
|
"select.change": {
|
|
@@ -11524,150 +11919,162 @@
|
|
|
11524
11919
|
"name": "options",
|
|
11525
11920
|
"type": "Option[]",
|
|
11526
11921
|
"required": "false",
|
|
11527
|
-
"
|
|
11528
|
-
"
|
|
11922
|
+
"description": "选项列表,不能与 dataSource + label + optionTitle + optionContent + valuePath 同时使用",
|
|
11923
|
+
"group": "basic"
|
|
11529
11924
|
},
|
|
11530
11925
|
{
|
|
11531
11926
|
"name": "dataSource",
|
|
11532
11927
|
"type": "any[]",
|
|
11533
11928
|
"required": "false",
|
|
11534
11929
|
"default": "[]",
|
|
11535
|
-
"description": "数据源"
|
|
11930
|
+
"description": "数据源",
|
|
11931
|
+
"group": "other",
|
|
11932
|
+
"deprecated": true
|
|
11536
11933
|
},
|
|
11537
11934
|
{
|
|
11538
11935
|
"name": "value",
|
|
11539
|
-
"type": "any",
|
|
11936
|
+
"type": "any[]",
|
|
11540
11937
|
"required": "false",
|
|
11541
|
-
"
|
|
11542
|
-
"
|
|
11938
|
+
"description": "选中项的值,跟 `valuePath` 搭配使用,根据指定的字段路径与 value 的值得出当前选中项",
|
|
11939
|
+
"group": "basic"
|
|
11543
11940
|
},
|
|
11544
11941
|
{
|
|
11545
11942
|
"name": "label",
|
|
11546
11943
|
"type": "string",
|
|
11547
11944
|
"required": "false",
|
|
11548
11945
|
"default": "使用 optionTitle 的值",
|
|
11549
|
-
"description": "选中项显示的 label,支持模板替换,替换上下文为当前项 `item` 使用时需要带上 item 前缀 `#{item.xxx}`"
|
|
11946
|
+
"description": "选中项显示的 label,支持模板替换,替换上下文为当前项 `item` 使用时需要带上 item 前缀 `#{item.xxx}`",
|
|
11947
|
+
"group": "other",
|
|
11948
|
+
"deprecated": true
|
|
11949
|
+
},
|
|
11950
|
+
{
|
|
11951
|
+
"name": "disabled",
|
|
11952
|
+
"type": "boolean",
|
|
11953
|
+
"required": "false",
|
|
11954
|
+
"default": "false",
|
|
11955
|
+
"description": "是否禁用",
|
|
11956
|
+
"group": "basic"
|
|
11957
|
+
},
|
|
11958
|
+
{
|
|
11959
|
+
"name": "heightFix",
|
|
11960
|
+
"type": "boolean",
|
|
11961
|
+
"required": "false",
|
|
11962
|
+
"default": "false",
|
|
11963
|
+
"description": "单选时,下拉内容区高度是否固定",
|
|
11964
|
+
"group": "basic"
|
|
11965
|
+
},
|
|
11966
|
+
{
|
|
11967
|
+
"name": "buttonIcon",
|
|
11968
|
+
"type": "MenuIcon",
|
|
11969
|
+
"required": "false",
|
|
11970
|
+
"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)",
|
|
11971
|
+
"group": "basic"
|
|
11972
|
+
},
|
|
11973
|
+
{
|
|
11974
|
+
"name": "dropdownButtonType",
|
|
11975
|
+
"type": "\"default\" | \"shape\"",
|
|
11976
|
+
"required": "false",
|
|
11977
|
+
"default": "\"default\"",
|
|
11978
|
+
"description": "设置下拉选择器按钮样式",
|
|
11979
|
+
"group": "ui"
|
|
11550
11980
|
},
|
|
11551
11981
|
{
|
|
11552
11982
|
"name": "labelFontSize",
|
|
11553
11983
|
"type": "string",
|
|
11554
11984
|
"required": "false",
|
|
11555
|
-
"
|
|
11556
|
-
"
|
|
11985
|
+
"description": "label 的 fontSize",
|
|
11986
|
+
"group": "ui"
|
|
11557
11987
|
},
|
|
11558
11988
|
{
|
|
11559
11989
|
"name": "placeholder",
|
|
11560
11990
|
"type": "string",
|
|
11561
11991
|
"required": "false",
|
|
11562
|
-
"
|
|
11563
|
-
"
|
|
11992
|
+
"description": "placeholder, 当没有当前项选中时显示",
|
|
11993
|
+
"group": "basic"
|
|
11564
11994
|
},
|
|
11565
11995
|
{
|
|
11566
11996
|
"name": "optionTitle",
|
|
11567
11997
|
"type": "string",
|
|
11568
11998
|
"required": "false",
|
|
11569
11999
|
"default": "#{item}",
|
|
11570
|
-
"description": "选项的标题,支持模板替换,使用跟 label 字段一样"
|
|
12000
|
+
"description": "选项的标题,支持模板替换,使用跟 label 字段一样",
|
|
12001
|
+
"group": "other",
|
|
12002
|
+
"deprecated": true
|
|
11571
12003
|
},
|
|
11572
12004
|
{
|
|
11573
12005
|
"name": "optionContent",
|
|
11574
12006
|
"type": "string",
|
|
11575
12007
|
"required": "false",
|
|
11576
|
-
"
|
|
11577
|
-
"
|
|
12008
|
+
"description": "选项的内容,支持模板替换,使用跟 label 字段一样",
|
|
12009
|
+
"group": "other",
|
|
12010
|
+
"deprecated": true
|
|
11578
12011
|
},
|
|
11579
12012
|
{
|
|
11580
12013
|
"name": "valuePath",
|
|
11581
12014
|
"type": "string",
|
|
11582
12015
|
"required": "false",
|
|
11583
12016
|
"default": "item",
|
|
11584
|
-
"description": "依据当前项 `item`,指定选项值的 path"
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
"name": "selectedKeys",
|
|
11588
|
-
"type": "string[]",
|
|
11589
|
-
"required": "false",
|
|
11590
|
-
"default": "[]",
|
|
11591
|
-
"description": "多选的选中项"
|
|
11592
|
-
},
|
|
11593
|
-
{
|
|
11594
|
-
"name": "defaultSelectedKeys",
|
|
11595
|
-
"type": "string[]",
|
|
11596
|
-
"required": "false",
|
|
11597
|
-
"default": "[]",
|
|
11598
|
-
"description": "多选的默认选中项"
|
|
12017
|
+
"description": "依据当前项 `item`,指定选项值的 path",
|
|
12018
|
+
"group": "other",
|
|
12019
|
+
"deprecated": true
|
|
11599
12020
|
},
|
|
11600
12021
|
{
|
|
11601
12022
|
"name": "multipleSelect",
|
|
11602
12023
|
"type": "boolean",
|
|
11603
12024
|
"required": "false",
|
|
11604
12025
|
"default": "false",
|
|
11605
|
-
"description": "是否支持多选,支持多选时,单选的value属性失效"
|
|
11606
|
-
},
|
|
11607
|
-
{
|
|
11608
|
-
"name": "minSelectedItemLength",
|
|
11609
|
-
"type": "boolean",
|
|
11610
|
-
"required": "false",
|
|
11611
|
-
"default": "false",
|
|
11612
|
-
"description": "最小选择数量(多选)"
|
|
11613
|
-
},
|
|
11614
|
-
{
|
|
11615
|
-
"name": "tipBrick",
|
|
11616
|
-
"type": "{ useBrick: UseBrickConf }",
|
|
11617
|
-
"required": "false",
|
|
11618
|
-
"default": "-",
|
|
11619
|
-
"description": "提示构件",
|
|
12026
|
+
"description": "是否支持多选,支持多选时,单选的value属性失效",
|
|
11620
12027
|
"group": "basic"
|
|
11621
12028
|
},
|
|
11622
12029
|
{
|
|
11623
|
-
"name": "
|
|
11624
|
-
"type": "
|
|
12030
|
+
"name": "selectedKeys",
|
|
12031
|
+
"type": "string[]",
|
|
11625
12032
|
"required": "false",
|
|
11626
|
-
"default": "
|
|
11627
|
-
"description": "
|
|
12033
|
+
"default": "[]",
|
|
12034
|
+
"description": "多选的选中项",
|
|
12035
|
+
"group": "basic"
|
|
11628
12036
|
},
|
|
11629
12037
|
{
|
|
11630
|
-
"name": "
|
|
11631
|
-
"type": "
|
|
12038
|
+
"name": "selectTipText",
|
|
12039
|
+
"type": "string",
|
|
11632
12040
|
"required": "false",
|
|
11633
|
-
"default": "
|
|
11634
|
-
"description": "
|
|
12041
|
+
"default": "-",
|
|
12042
|
+
"description": "下拉框提示信息"
|
|
11635
12043
|
},
|
|
11636
12044
|
{
|
|
11637
|
-
"name": "
|
|
11638
|
-
"type": "
|
|
11639
|
-
"required": "false",
|
|
11640
|
-
"
|
|
11641
|
-
"description": "按钮 icon,支持[icon 图标库](developers/icon),可直接复制图标图标的配置(antd、fa 及 easyops 三种库都支持),也可只取 icon 字段的值(仅支持 antd 库)。配置{ \"lib\": \"antd\", \"icon\": \"edit\" }与 \"edit\"等价",
|
|
11642
|
-
"group": "basic"
|
|
12045
|
+
"name": "selectBoxStyle",
|
|
12046
|
+
"type": "CSSProperties",
|
|
12047
|
+
"required": "false",
|
|
12048
|
+
"description": "下拉框样式"
|
|
11643
12049
|
},
|
|
11644
12050
|
{
|
|
11645
|
-
"name": "
|
|
11646
|
-
"type": "string",
|
|
12051
|
+
"name": "defaultSelectedKeys",
|
|
12052
|
+
"type": "string[]",
|
|
11647
12053
|
"required": "false",
|
|
11648
|
-
"default": "
|
|
11649
|
-
"description": "
|
|
12054
|
+
"default": "[]",
|
|
12055
|
+
"description": "多选的默认选中项",
|
|
12056
|
+
"group": "basic"
|
|
11650
12057
|
},
|
|
11651
12058
|
{
|
|
11652
|
-
"name": "
|
|
11653
|
-
"type": "
|
|
12059
|
+
"name": "minSelectedItemLength",
|
|
12060
|
+
"type": "number",
|
|
11654
12061
|
"required": "false",
|
|
11655
|
-
"
|
|
11656
|
-
"
|
|
12062
|
+
"description": "最小选择数量(多选)",
|
|
12063
|
+
"group": "basic"
|
|
11657
12064
|
},
|
|
11658
12065
|
{
|
|
11659
|
-
"name": "
|
|
12066
|
+
"name": "multipleLabel",
|
|
11660
12067
|
"type": "string",
|
|
11661
12068
|
"required": "false",
|
|
11662
|
-
"
|
|
11663
|
-
"
|
|
12069
|
+
"description": "多选时,当前label仅支持显示从构件外部传入,multipleLabel属性仅在dropdownButtonType为multiple时生效",
|
|
12070
|
+
"group": "basic"
|
|
11664
12071
|
},
|
|
11665
12072
|
{
|
|
11666
|
-
"name": "
|
|
11667
|
-
"type": "
|
|
12073
|
+
"name": "tipBrick",
|
|
12074
|
+
"type": "{ useBrick: UseBrickConf; }",
|
|
11668
12075
|
"required": "false",
|
|
11669
|
-
"
|
|
11670
|
-
"
|
|
12076
|
+
"description": "提示构件",
|
|
12077
|
+
"group": "other"
|
|
11671
12078
|
}
|
|
11672
12079
|
],
|
|
11673
12080
|
"events": [
|
|
@@ -12758,83 +13165,83 @@
|
|
|
12758
13165
|
{
|
|
12759
13166
|
"name": "imgSrc",
|
|
12760
13167
|
"type": "string",
|
|
12761
|
-
"default": "-",
|
|
12762
13168
|
"required": "",
|
|
13169
|
+
"default": "-",
|
|
12763
13170
|
"description": "图片地址"
|
|
12764
13171
|
},
|
|
12765
13172
|
{
|
|
12766
13173
|
"name": "preview",
|
|
12767
13174
|
"type": "boolean",
|
|
12768
|
-
"default": "true",
|
|
12769
13175
|
"required": "",
|
|
13176
|
+
"default": "true",
|
|
12770
13177
|
"description": "是否开启预览"
|
|
12771
13178
|
},
|
|
12772
13179
|
{
|
|
12773
13180
|
"name": "imgHeight",
|
|
12774
13181
|
"type": "string | number",
|
|
12775
|
-
"default": "-",
|
|
12776
13182
|
"required": "",
|
|
13183
|
+
"default": "-",
|
|
12777
13184
|
"description": "图像高度"
|
|
12778
13185
|
},
|
|
12779
13186
|
{
|
|
12780
13187
|
"name": "imgWidth",
|
|
12781
13188
|
"type": "string | number",
|
|
12782
|
-
"default": "-",
|
|
12783
13189
|
"required": "",
|
|
13190
|
+
"default": "-",
|
|
12784
13191
|
"description": "图像宽度"
|
|
12785
13192
|
},
|
|
12786
13193
|
{
|
|
12787
13194
|
"name": "dataSource",
|
|
12788
13195
|
"type": "Record<string, any>",
|
|
12789
|
-
"default": "-",
|
|
12790
13196
|
"required": "-",
|
|
13197
|
+
"default": "-",
|
|
12791
13198
|
"description": "数据源,搭配 extra 使用时会把该数据传入到自定义构件中使用"
|
|
12792
13199
|
},
|
|
12793
13200
|
{
|
|
12794
13201
|
"name": "placeholder",
|
|
12795
13202
|
"type": "string",
|
|
12796
|
-
"default": "-",
|
|
12797
13203
|
"required": "",
|
|
13204
|
+
"default": "-",
|
|
12798
13205
|
"description": "加载占位, 为 true 时使用默认占位",
|
|
12799
13206
|
"group": "advanced"
|
|
12800
13207
|
},
|
|
12801
13208
|
{
|
|
12802
13209
|
"name": "imgAlt",
|
|
12803
13210
|
"type": "string",
|
|
12804
|
-
"default": "-",
|
|
12805
13211
|
"required": "",
|
|
13212
|
+
"default": "-",
|
|
12806
13213
|
"description": "图像描述",
|
|
12807
13214
|
"group": "advanced"
|
|
12808
13215
|
},
|
|
12809
13216
|
{
|
|
12810
13217
|
"name": "fallback",
|
|
12811
13218
|
"type": "string",
|
|
12812
|
-
"default": "-",
|
|
12813
13219
|
"required": "",
|
|
13220
|
+
"default": "-",
|
|
12814
13221
|
"description": "加载失败容错地址",
|
|
12815
13222
|
"group": "advanced"
|
|
12816
13223
|
},
|
|
12817
13224
|
{
|
|
12818
13225
|
"name": "extra",
|
|
12819
13226
|
"type": "UseBrickConf",
|
|
12820
|
-
"default": "-",
|
|
12821
13227
|
"required": "-",
|
|
13228
|
+
"default": "-",
|
|
12822
13229
|
"description": "支持在图片下方增加自定义构件",
|
|
12823
13230
|
"group": "advanced"
|
|
12824
13231
|
},
|
|
12825
13232
|
{
|
|
12826
13233
|
"name": "extraContainerStyle",
|
|
12827
13234
|
"type": "Record<string, any>",
|
|
12828
|
-
"default": "-",
|
|
12829
13235
|
"required": "-",
|
|
13236
|
+
"default": "-",
|
|
12830
13237
|
"description": "包裹自定义构件容器的样式",
|
|
12831
13238
|
"group": "advanced"
|
|
12832
13239
|
},
|
|
12833
13240
|
{
|
|
12834
13241
|
"name": "visible",
|
|
12835
13242
|
"type": "boolean",
|
|
12836
|
-
"default": "-",
|
|
12837
13243
|
"required": "",
|
|
13244
|
+
"default": "-",
|
|
12838
13245
|
"description": "是否显示预览",
|
|
12839
13246
|
"group": "advanced"
|
|
12840
13247
|
}
|
|
@@ -13616,8 +14023,8 @@
|
|
|
13616
14023
|
{
|
|
13617
14024
|
"name": "wrapperConfig",
|
|
13618
14025
|
"type": "BrickWrapperConfig",
|
|
13619
|
-
"default": "-",
|
|
13620
14026
|
"required": "false",
|
|
14027
|
+
"default": "-",
|
|
13621
14028
|
"description": "设置容器空状态时显示`empty`构件属性",
|
|
13622
14029
|
"group": "advanced"
|
|
13623
14030
|
},
|
|
@@ -14696,7 +15103,7 @@
|
|
|
14696
15103
|
},
|
|
14697
15104
|
{
|
|
14698
15105
|
"name": "fields",
|
|
14699
|
-
"type": "
|
|
15106
|
+
"type": "{ value?: string; }",
|
|
14700
15107
|
"required": "false",
|
|
14701
15108
|
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
|
|
14702
15109
|
"deprecated": true,
|
|
@@ -14902,7 +15309,8 @@
|
|
|
14902
15309
|
"type": "{ value?: string; }",
|
|
14903
15310
|
"required": "false",
|
|
14904
15311
|
"default": "-",
|
|
14905
|
-
"description": "",
|
|
15312
|
+
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
|
|
15313
|
+
"deprecated": true,
|
|
14906
15314
|
"group": "advanced"
|
|
14907
15315
|
},
|
|
14908
15316
|
{
|
|
@@ -16037,50 +16445,51 @@
|
|
|
16037
16445
|
"change": " 新增构件 `presentational-bricks.brick-illustration`"
|
|
16038
16446
|
}
|
|
16039
16447
|
],
|
|
16040
|
-
"memo": ">更多类型插画请移至[插画库](/developers/illustrations)",
|
|
16448
|
+
"memo": ">更多类型插画请移至[插画库](/next/developers/illustrations)",
|
|
16041
16449
|
"dockind": "brick",
|
|
16042
16450
|
"properties": [
|
|
16043
16451
|
{
|
|
16044
16452
|
"name": "name",
|
|
16045
16453
|
"type": "string",
|
|
16046
|
-
"default": "-",
|
|
16047
16454
|
"required": "true",
|
|
16048
16455
|
"description": "插画名称"
|
|
16049
16456
|
},
|
|
16050
16457
|
{
|
|
16051
16458
|
"name": "category",
|
|
16052
16459
|
"type": "string",
|
|
16053
|
-
"default": "`default`",
|
|
16054
16460
|
"required": "true",
|
|
16055
|
-
"
|
|
16461
|
+
"default": "\"default\"",
|
|
16462
|
+
"description": "插画类型",
|
|
16463
|
+
"group": "basic"
|
|
16056
16464
|
},
|
|
16057
16465
|
{
|
|
16058
16466
|
"name": "header",
|
|
16059
16467
|
"type": "IllustrationHeader",
|
|
16060
|
-
"
|
|
16061
|
-
"
|
|
16062
|
-
"
|
|
16468
|
+
"required": "false",
|
|
16469
|
+
"description": "插画头部内容",
|
|
16470
|
+
"group": "other"
|
|
16063
16471
|
},
|
|
16064
16472
|
{
|
|
16065
16473
|
"name": "footer",
|
|
16066
16474
|
"type": "IllustrationFooter",
|
|
16067
|
-
"default": "-",
|
|
16068
16475
|
"required": "false",
|
|
16069
|
-
"description": "插画底部内容"
|
|
16476
|
+
"description": "插画底部内容",
|
|
16477
|
+
"group": "other"
|
|
16070
16478
|
},
|
|
16071
16479
|
{
|
|
16072
16480
|
"name": "mode",
|
|
16073
16481
|
"type": "IllustrationMode",
|
|
16074
|
-
"
|
|
16075
|
-
"
|
|
16076
|
-
"
|
|
16482
|
+
"required": "false",
|
|
16483
|
+
"description": "插画模式",
|
|
16484
|
+
"group": "other",
|
|
16485
|
+
"deprecated": true
|
|
16077
16486
|
},
|
|
16078
16487
|
{
|
|
16079
16488
|
"name": "imageStyle",
|
|
16080
16489
|
"type": "CSSProperties",
|
|
16081
|
-
"
|
|
16082
|
-
"
|
|
16083
|
-
"
|
|
16490
|
+
"required": "false",
|
|
16491
|
+
"description": "图片样式",
|
|
16492
|
+
"group": "ui"
|
|
16084
16493
|
}
|
|
16085
16494
|
],
|
|
16086
16495
|
"interface": [
|
|
@@ -16917,18 +17326,264 @@
|
|
|
16917
17326
|
"children": [
|
|
16918
17327
|
{
|
|
16919
17328
|
"name": "extra",
|
|
16920
|
-
"type": "string |
|
|
17329
|
+
"type": "string | { useBrick?: UseBrickConf; }",
|
|
16921
17330
|
"required": false,
|
|
16922
17331
|
"description": "表格头部右边内容显示区域"
|
|
16923
17332
|
},
|
|
16924
17333
|
{
|
|
16925
17334
|
"name": "title",
|
|
16926
|
-
"type": "string |
|
|
17335
|
+
"type": "string | { useBrick?: UseBrickConf; }",
|
|
16927
17336
|
"required": true,
|
|
16928
17337
|
"description": "表格头部左边内容显示区域"
|
|
16929
17338
|
}
|
|
16930
17339
|
],
|
|
16931
17340
|
"indexSignature": []
|
|
17341
|
+
},
|
|
17342
|
+
{
|
|
17343
|
+
"name": "CustomColumn",
|
|
17344
|
+
"typeParameter": null,
|
|
17345
|
+
"kind": "interface",
|
|
17346
|
+
"extendedTypes": [
|
|
17347
|
+
{
|
|
17348
|
+
"type": "reference",
|
|
17349
|
+
"typeArguments": [
|
|
17350
|
+
{
|
|
17351
|
+
"type": "reference",
|
|
17352
|
+
"typeArguments": [
|
|
17353
|
+
{
|
|
17354
|
+
"type": "intrinsic",
|
|
17355
|
+
"name": "string"
|
|
17356
|
+
},
|
|
17357
|
+
{
|
|
17358
|
+
"type": "intrinsic",
|
|
17359
|
+
"name": "any"
|
|
17360
|
+
}
|
|
17361
|
+
],
|
|
17362
|
+
"name": "Record"
|
|
17363
|
+
}
|
|
17364
|
+
],
|
|
17365
|
+
"name": "ColumnProps"
|
|
17366
|
+
}
|
|
17367
|
+
],
|
|
17368
|
+
"children": [
|
|
17369
|
+
{
|
|
17370
|
+
"name": "align",
|
|
17371
|
+
"type": "AlignType",
|
|
17372
|
+
"required": false,
|
|
17373
|
+
"description": ""
|
|
17374
|
+
},
|
|
17375
|
+
{
|
|
17376
|
+
"name": "children",
|
|
17377
|
+
"type": "null",
|
|
17378
|
+
"required": false,
|
|
17379
|
+
"description": ""
|
|
17380
|
+
},
|
|
17381
|
+
{
|
|
17382
|
+
"name": "className",
|
|
17383
|
+
"type": "string",
|
|
17384
|
+
"required": false,
|
|
17385
|
+
"description": ""
|
|
17386
|
+
},
|
|
17387
|
+
{
|
|
17388
|
+
"name": "colSpan",
|
|
17389
|
+
"type": "number",
|
|
17390
|
+
"required": false,
|
|
17391
|
+
"description": ""
|
|
17392
|
+
},
|
|
17393
|
+
{
|
|
17394
|
+
"name": "dataIndex",
|
|
17395
|
+
"type": "DataIndex",
|
|
17396
|
+
"required": false,
|
|
17397
|
+
"description": ""
|
|
17398
|
+
},
|
|
17399
|
+
{
|
|
17400
|
+
"name": "defaultFilteredValue",
|
|
17401
|
+
"type": "Key[] | null",
|
|
17402
|
+
"required": false,
|
|
17403
|
+
"description": ""
|
|
17404
|
+
},
|
|
17405
|
+
{
|
|
17406
|
+
"name": "defaultSortOrder",
|
|
17407
|
+
"type": "SortOrder",
|
|
17408
|
+
"required": false,
|
|
17409
|
+
"description": ""
|
|
17410
|
+
},
|
|
17411
|
+
{
|
|
17412
|
+
"name": "ellipsis",
|
|
17413
|
+
"type": "CellEllipsisType",
|
|
17414
|
+
"required": false,
|
|
17415
|
+
"description": ""
|
|
17416
|
+
},
|
|
17417
|
+
{
|
|
17418
|
+
"name": "filterDropdown",
|
|
17419
|
+
"type": "React.ReactNode | { }",
|
|
17420
|
+
"required": false,
|
|
17421
|
+
"description": ""
|
|
17422
|
+
},
|
|
17423
|
+
{
|
|
17424
|
+
"name": "filterDropdownVisible",
|
|
17425
|
+
"type": "boolean",
|
|
17426
|
+
"required": false,
|
|
17427
|
+
"description": ""
|
|
17428
|
+
},
|
|
17429
|
+
{
|
|
17430
|
+
"name": "filterIcon",
|
|
17431
|
+
"type": "React.ReactNode | { }",
|
|
17432
|
+
"required": false,
|
|
17433
|
+
"description": ""
|
|
17434
|
+
},
|
|
17435
|
+
{
|
|
17436
|
+
"name": "filterMultiple",
|
|
17437
|
+
"type": "boolean",
|
|
17438
|
+
"required": false,
|
|
17439
|
+
"description": ""
|
|
17440
|
+
},
|
|
17441
|
+
{
|
|
17442
|
+
"name": "filtered",
|
|
17443
|
+
"type": "boolean",
|
|
17444
|
+
"required": false,
|
|
17445
|
+
"description": ""
|
|
17446
|
+
},
|
|
17447
|
+
{
|
|
17448
|
+
"name": "filteredValue",
|
|
17449
|
+
"type": "Key[] | null",
|
|
17450
|
+
"required": false,
|
|
17451
|
+
"description": ""
|
|
17452
|
+
},
|
|
17453
|
+
{
|
|
17454
|
+
"name": "filters",
|
|
17455
|
+
"type": "ColumnFilterItem[]",
|
|
17456
|
+
"required": false,
|
|
17457
|
+
"description": ""
|
|
17458
|
+
},
|
|
17459
|
+
{
|
|
17460
|
+
"name": "fixed",
|
|
17461
|
+
"type": "FixedType",
|
|
17462
|
+
"required": false,
|
|
17463
|
+
"description": ""
|
|
17464
|
+
},
|
|
17465
|
+
{
|
|
17466
|
+
"name": "headerBrick",
|
|
17467
|
+
"type": "{ useBrick: UseBrickConf; }",
|
|
17468
|
+
"required": false,
|
|
17469
|
+
"description": "支持为某列的表头自定义展示构件,可通过 DATA.title 获取标题文本"
|
|
17470
|
+
},
|
|
17471
|
+
{
|
|
17472
|
+
"name": "key",
|
|
17473
|
+
"type": "Key",
|
|
17474
|
+
"required": false,
|
|
17475
|
+
"description": ""
|
|
17476
|
+
},
|
|
17477
|
+
{
|
|
17478
|
+
"name": "onCell",
|
|
17479
|
+
"type": "GetComponentProps<Record<string, any>>",
|
|
17480
|
+
"required": false,
|
|
17481
|
+
"description": ""
|
|
17482
|
+
},
|
|
17483
|
+
{
|
|
17484
|
+
"name": "onCellClick",
|
|
17485
|
+
"type": "{ }",
|
|
17486
|
+
"required": false,
|
|
17487
|
+
"description": ""
|
|
17488
|
+
},
|
|
17489
|
+
{
|
|
17490
|
+
"name": "onFilter",
|
|
17491
|
+
"type": "{ }",
|
|
17492
|
+
"required": false,
|
|
17493
|
+
"description": ""
|
|
17494
|
+
},
|
|
17495
|
+
{
|
|
17496
|
+
"name": "onFilterDropdownVisibleChange",
|
|
17497
|
+
"type": "{ }",
|
|
17498
|
+
"required": false,
|
|
17499
|
+
"description": ""
|
|
17500
|
+
},
|
|
17501
|
+
{
|
|
17502
|
+
"name": "onHeaderCell",
|
|
17503
|
+
"type": "GetComponentProps<>",
|
|
17504
|
+
"required": false,
|
|
17505
|
+
"description": ""
|
|
17506
|
+
},
|
|
17507
|
+
{
|
|
17508
|
+
"name": "render",
|
|
17509
|
+
"type": "{ }",
|
|
17510
|
+
"required": false,
|
|
17511
|
+
"description": ""
|
|
17512
|
+
},
|
|
17513
|
+
{
|
|
17514
|
+
"name": "responsive",
|
|
17515
|
+
"type": "Breakpoint[]",
|
|
17516
|
+
"required": false,
|
|
17517
|
+
"description": ""
|
|
17518
|
+
},
|
|
17519
|
+
{
|
|
17520
|
+
"name": "rowSpan",
|
|
17521
|
+
"type": "number",
|
|
17522
|
+
"required": false,
|
|
17523
|
+
"description": ""
|
|
17524
|
+
},
|
|
17525
|
+
{
|
|
17526
|
+
"name": "shouldCellUpdate",
|
|
17527
|
+
"type": "{ }",
|
|
17528
|
+
"required": false,
|
|
17529
|
+
"description": ""
|
|
17530
|
+
},
|
|
17531
|
+
{
|
|
17532
|
+
"name": "showSorterTooltip",
|
|
17533
|
+
"type": "boolean | TooltipProps",
|
|
17534
|
+
"required": false,
|
|
17535
|
+
"description": ""
|
|
17536
|
+
},
|
|
17537
|
+
{
|
|
17538
|
+
"name": "sortDirections",
|
|
17539
|
+
"type": "SortOrder[]",
|
|
17540
|
+
"required": false,
|
|
17541
|
+
"description": ""
|
|
17542
|
+
},
|
|
17543
|
+
{
|
|
17544
|
+
"name": "sortOrder",
|
|
17545
|
+
"type": "SortOrder",
|
|
17546
|
+
"required": false,
|
|
17547
|
+
"description": ""
|
|
17548
|
+
},
|
|
17549
|
+
{
|
|
17550
|
+
"name": "sorter",
|
|
17551
|
+
"type": "boolean | CompareFn<Record<string, any>> | { compare?: CompareFn<Record<string, any>>; multiple?: number; }",
|
|
17552
|
+
"required": false,
|
|
17553
|
+
"description": ""
|
|
17554
|
+
},
|
|
17555
|
+
{
|
|
17556
|
+
"name": "title",
|
|
17557
|
+
"type": "ColumnTitle<Record<string, any>>",
|
|
17558
|
+
"required": false,
|
|
17559
|
+
"description": ""
|
|
17560
|
+
},
|
|
17561
|
+
{
|
|
17562
|
+
"name": "useBrick",
|
|
17563
|
+
"type": "UseBrickConf",
|
|
17564
|
+
"required": false,
|
|
17565
|
+
"description": "支持为某列自定义展示构件"
|
|
17566
|
+
},
|
|
17567
|
+
{
|
|
17568
|
+
"name": "valueSuffix",
|
|
17569
|
+
"type": "string",
|
|
17570
|
+
"required": false,
|
|
17571
|
+
"description": "字段的值展示时的后缀"
|
|
17572
|
+
},
|
|
17573
|
+
{
|
|
17574
|
+
"name": "verticalAlign",
|
|
17575
|
+
"type": "\"top\" | \"bottom\"",
|
|
17576
|
+
"required": false,
|
|
17577
|
+
"description": "单元格内元素的垂直对齐方式"
|
|
17578
|
+
},
|
|
17579
|
+
{
|
|
17580
|
+
"name": "width",
|
|
17581
|
+
"type": "number | string",
|
|
17582
|
+
"required": false,
|
|
17583
|
+
"description": ""
|
|
17584
|
+
}
|
|
17585
|
+
],
|
|
17586
|
+
"indexSignature": []
|
|
16932
17587
|
}
|
|
16933
17588
|
]
|
|
16934
17589
|
}
|
|
@@ -17270,6 +17925,7 @@
|
|
|
17270
17925
|
{
|
|
17271
17926
|
"name": "dataSource",
|
|
17272
17927
|
"type": "unknown",
|
|
17928
|
+
"required": true,
|
|
17273
17929
|
"description": "数据源"
|
|
17274
17930
|
}
|
|
17275
17931
|
],
|
|
@@ -17385,54 +18041,55 @@
|
|
|
17385
18041
|
{
|
|
17386
18042
|
"name": "dataSource",
|
|
17387
18043
|
"type": "any[]",
|
|
17388
|
-
"default": "",
|
|
17389
18044
|
"required": "true",
|
|
18045
|
+
"default": "",
|
|
17390
18046
|
"description": "数据源,其中的数据将会被渲染到左边一栏中,targetKeys 中指定的除外,必须有key字段作为唯一标识"
|
|
17391
18047
|
},
|
|
17392
18048
|
{
|
|
17393
18049
|
"name": "columns",
|
|
17394
18050
|
"type": "ColumnsType<Record<string, any>>",
|
|
17395
|
-
"default": "",
|
|
17396
18051
|
"required": "true",
|
|
18052
|
+
"default": "",
|
|
17397
18053
|
"description": "表格column配置"
|
|
17398
18054
|
},
|
|
17399
18055
|
{
|
|
17400
18056
|
"name": "targetKeys",
|
|
17401
18057
|
"type": "string[]",
|
|
17402
|
-
"default": "",
|
|
17403
18058
|
"required": "false",
|
|
18059
|
+
"default": "",
|
|
17404
18060
|
"description": "显示在右栏数据的 key 集合"
|
|
17405
18061
|
},
|
|
17406
18062
|
{
|
|
17407
18063
|
"name": "selectedKeys",
|
|
17408
18064
|
"type": "string[]",
|
|
17409
|
-
"default": "",
|
|
17410
18065
|
"required": "false",
|
|
18066
|
+
"default": "",
|
|
17411
18067
|
"description": "设置哪些项被选中"
|
|
17412
18068
|
},
|
|
17413
18069
|
{
|
|
17414
18070
|
"name": "disabled",
|
|
17415
18071
|
"type": "boolean",
|
|
17416
|
-
"default": "`false`",
|
|
17417
18072
|
"required": "false",
|
|
18073
|
+
"default": "`false`",
|
|
17418
18074
|
"description": "是否禁用"
|
|
17419
18075
|
},
|
|
17420
18076
|
{
|
|
17421
18077
|
"name": "dragSortable",
|
|
17422
|
-
"type": "boolean"
|
|
18078
|
+
"type": "boolean",
|
|
18079
|
+
"required": true
|
|
17423
18080
|
},
|
|
17424
18081
|
{
|
|
17425
18082
|
"name": "sortTitle",
|
|
17426
18083
|
"type": "string",
|
|
17427
|
-
"default": "`sort`",
|
|
17428
18084
|
"required": "false",
|
|
18085
|
+
"default": "`sort`",
|
|
17429
18086
|
"description": "支持右栏表格排序时,排序列的title"
|
|
17430
18087
|
},
|
|
17431
18088
|
{
|
|
17432
18089
|
"name": "maxSelected",
|
|
17433
18090
|
"type": "number",
|
|
17434
|
-
"default": "",
|
|
17435
18091
|
"required": "false",
|
|
18092
|
+
"default": "",
|
|
17436
18093
|
"description": "最大可选数量,当 dataSource 个数大于该值时,不显示全勾选框"
|
|
17437
18094
|
},
|
|
17438
18095
|
{
|