@next-bricks/presentational-bricks 1.253.0 → 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 +16 -0
- package/deploy/contract.yaml +124 -124
- package/dist/bricks.json +33 -33
- package/dist/{index.98c10686.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.ed1f9278.js → ~bricks-use-form-and-markdown.dd92.f52e6797.js} +1 -1
- package/dist/lazy-bricks/{~bricks-use-form-and-markdown.dd92.ed1f9278.js.map → ~bricks-use-form-and-markdown.dd92.f52e6797.js.map} +1 -1
- package/dist/stories.json +936 -292
- package/package.json +2 -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,6 +6957,334 @@
|
|
|
6951
6957
|
}
|
|
6952
6958
|
],
|
|
6953
6959
|
"indexSignature": []
|
|
6960
|
+
},
|
|
6961
|
+
{
|
|
6962
|
+
"name": "CustomColumn",
|
|
6963
|
+
"typeParameter": null,
|
|
6964
|
+
"kind": "interface",
|
|
6965
|
+
"extendedTypes": [
|
|
6966
|
+
{
|
|
6967
|
+
"type": "reference",
|
|
6968
|
+
"typeArguments": [
|
|
6969
|
+
{
|
|
6970
|
+
"type": "reference",
|
|
6971
|
+
"typeArguments": [
|
|
6972
|
+
{
|
|
6973
|
+
"type": "intrinsic",
|
|
6974
|
+
"name": "string"
|
|
6975
|
+
},
|
|
6976
|
+
{
|
|
6977
|
+
"type": "intrinsic",
|
|
6978
|
+
"name": "any"
|
|
6979
|
+
}
|
|
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": []
|
|
6954
7288
|
}
|
|
6955
7289
|
]
|
|
6956
7290
|
}
|
|
@@ -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": []
|
|
@@ -11348,42 +11705,45 @@
|
|
|
11348
11705
|
"change": "新增属性 `resolution`"
|
|
11349
11706
|
}
|
|
11350
11707
|
],
|
|
11351
|
-
"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)",
|
|
11352
11709
|
"properties": [
|
|
11353
11710
|
{
|
|
11354
11711
|
"name": "from",
|
|
11355
11712
|
"type": "string",
|
|
11356
11713
|
"required": "true",
|
|
11357
|
-
"default": "now-1d",
|
|
11358
|
-
"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"
|
|
11359
11717
|
},
|
|
11360
11718
|
{
|
|
11361
11719
|
"name": "to",
|
|
11362
11720
|
"type": "string",
|
|
11363
11721
|
"required": "false",
|
|
11364
|
-
"
|
|
11365
|
-
"
|
|
11722
|
+
"description": "默认结束时间, 相关规则请参照from属性",
|
|
11723
|
+
"group": "basic"
|
|
11366
11724
|
},
|
|
11367
11725
|
{
|
|
11368
11726
|
"name": "shouldUpdateUrlParams",
|
|
11369
11727
|
"type": "boolean",
|
|
11370
11728
|
"required": "false",
|
|
11371
11729
|
"default": "true",
|
|
11372
|
-
"description": "是否更新 url 参数并刷新页面"
|
|
11730
|
+
"description": "是否更新 url 参数并刷新页面",
|
|
11731
|
+
"group": "basic"
|
|
11373
11732
|
},
|
|
11374
11733
|
{
|
|
11375
11734
|
"name": "type",
|
|
11376
|
-
"type": "default | custom",
|
|
11735
|
+
"type": "\"default\" | \"custom\"",
|
|
11377
11736
|
"required": "false",
|
|
11378
|
-
"default": "default",
|
|
11379
|
-
"description": "时间选择器支持两种类型,一种是默认的,固定显示常用的几种时间范围,一种是自定义的,可根据需求定制特定时间范围"
|
|
11737
|
+
"default": "\"default\"",
|
|
11738
|
+
"description": "时间选择器支持两种类型,一种是默认的,固定显示常用的几种时间范围,一种是自定义的,可根据需求定制特定时间范围",
|
|
11739
|
+
"group": "basic"
|
|
11380
11740
|
},
|
|
11381
11741
|
{
|
|
11382
11742
|
"name": "customTimeRange",
|
|
11383
11743
|
"type": "{range: string, text: string}",
|
|
11384
11744
|
"required": "false",
|
|
11385
|
-
"
|
|
11386
|
-
"
|
|
11745
|
+
"description": "当 type 为 custom 时,配置定制的时间范围,目前暂支持如下时间点,当 type 为 default 时,该配置项无效",
|
|
11746
|
+
"group": "basic"
|
|
11387
11747
|
},
|
|
11388
11748
|
{
|
|
11389
11749
|
"name": "placement",
|
|
@@ -11391,23 +11751,22 @@
|
|
|
11391
11751
|
"required": "false",
|
|
11392
11752
|
"default": "\"bottom\"",
|
|
11393
11753
|
"description": "弹出位置",
|
|
11394
|
-
"group": "
|
|
11754
|
+
"group": "other"
|
|
11395
11755
|
},
|
|
11396
11756
|
{
|
|
11397
11757
|
"name": "resolution",
|
|
11398
|
-
"type": "ms | s",
|
|
11758
|
+
"type": "\"ms\" | \"s\"",
|
|
11399
11759
|
"required": "false",
|
|
11400
|
-
"default": "
|
|
11760
|
+
"default": "\"ms\"",
|
|
11401
11761
|
"description": "指定时间戳的单位,目前支持秒和毫秒,默认为毫秒,切换为秒时,url 和事件传出的时间戳都会调整成以秒为单位",
|
|
11402
|
-
"group": "
|
|
11762
|
+
"group": "other"
|
|
11403
11763
|
},
|
|
11404
11764
|
{
|
|
11405
11765
|
"name": "size",
|
|
11406
11766
|
"type": "\"default\" | \"large\" | \"small\"",
|
|
11407
11767
|
"required": "false",
|
|
11408
|
-
"default": "-",
|
|
11409
11768
|
"description": "打开选择器的按钮的大小",
|
|
11410
|
-
"group": "
|
|
11769
|
+
"group": "other"
|
|
11411
11770
|
}
|
|
11412
11771
|
],
|
|
11413
11772
|
"events": [
|
|
@@ -11427,7 +11786,15 @@
|
|
|
11427
11786
|
"description": "选择当前时间,与 `datetime.selected` 不同的是虽然还是区分时间戳和时间段两种类型,但是调整了输出字段格式, 这样更利于某些监控场景的使用和编排"
|
|
11428
11787
|
}
|
|
11429
11788
|
],
|
|
11430
|
-
"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
|
+
]
|
|
11431
11798
|
}
|
|
11432
11799
|
},
|
|
11433
11800
|
{
|
|
@@ -11449,26 +11816,31 @@
|
|
|
11449
11816
|
},
|
|
11450
11817
|
"conf": [
|
|
11451
11818
|
{
|
|
11819
|
+
"description": {
|
|
11820
|
+
"title": "单选示例"
|
|
11821
|
+
},
|
|
11452
11822
|
"brick": "presentational-bricks.dropdown-select",
|
|
11453
11823
|
"properties": {
|
|
11454
|
-
"
|
|
11824
|
+
"options": [
|
|
11455
11825
|
{
|
|
11456
11826
|
"label": "应用1",
|
|
11457
|
-
"value": "
|
|
11458
|
-
"
|
|
11827
|
+
"value": "aaaa",
|
|
11828
|
+
"content": "描述1"
|
|
11459
11829
|
},
|
|
11460
11830
|
{
|
|
11461
11831
|
"label": "应用2",
|
|
11462
|
-
"value": "
|
|
11463
|
-
"
|
|
11832
|
+
"value": "bbbb",
|
|
11833
|
+
"content": "描述2"
|
|
11834
|
+
},
|
|
11835
|
+
{
|
|
11836
|
+
"label": "应用3",
|
|
11837
|
+
"value": "cccc",
|
|
11838
|
+
"content": "描述3"
|
|
11464
11839
|
}
|
|
11465
11840
|
],
|
|
11466
|
-
"
|
|
11467
|
-
"
|
|
11468
|
-
"
|
|
11469
|
-
"optionTitle": "#{item.label}",
|
|
11470
|
-
"optionContent": "#{item.desc}",
|
|
11471
|
-
"valuePath": "item.value"
|
|
11841
|
+
"placeholder": "请选择",
|
|
11842
|
+
"value": "aaaa",
|
|
11843
|
+
"labelFontSize": "16px"
|
|
11472
11844
|
},
|
|
11473
11845
|
"events": {
|
|
11474
11846
|
"select.change": {
|
|
@@ -11477,26 +11849,36 @@
|
|
|
11477
11849
|
}
|
|
11478
11850
|
},
|
|
11479
11851
|
{
|
|
11852
|
+
"description": {
|
|
11853
|
+
"title": "多选示例"
|
|
11854
|
+
},
|
|
11480
11855
|
"brick": "presentational-bricks.dropdown-select",
|
|
11481
11856
|
"properties": {
|
|
11482
|
-
"
|
|
11857
|
+
"options": [
|
|
11483
11858
|
{
|
|
11484
|
-
"label": "应用
|
|
11485
|
-
"value": "
|
|
11486
|
-
"
|
|
11859
|
+
"label": "应用1",
|
|
11860
|
+
"value": "aaaa",
|
|
11861
|
+
"content": "描述1"
|
|
11862
|
+
},
|
|
11863
|
+
{
|
|
11864
|
+
"label": "应用2",
|
|
11865
|
+
"value": "bbbb",
|
|
11866
|
+
"content": "描述2"
|
|
11487
11867
|
},
|
|
11488
11868
|
{
|
|
11489
|
-
"label": "应用
|
|
11490
|
-
"value": "
|
|
11491
|
-
"
|
|
11869
|
+
"label": "应用3",
|
|
11870
|
+
"value": "cccc",
|
|
11871
|
+
"content": "描述3"
|
|
11492
11872
|
}
|
|
11493
11873
|
],
|
|
11494
|
-
"value": "
|
|
11495
|
-
"
|
|
11496
|
-
"
|
|
11497
|
-
"
|
|
11498
|
-
"
|
|
11499
|
-
|
|
11874
|
+
"value": "bbbb",
|
|
11875
|
+
"placeholder": "请选择",
|
|
11876
|
+
"labelFontSize": "14px",
|
|
11877
|
+
"multipleSelect": true,
|
|
11878
|
+
"selectedKeys": [
|
|
11879
|
+
"aaaa",
|
|
11880
|
+
"bbbb"
|
|
11881
|
+
]
|
|
11500
11882
|
},
|
|
11501
11883
|
"events": {
|
|
11502
11884
|
"select.change": {
|
|
@@ -11524,150 +11906,162 @@
|
|
|
11524
11906
|
"name": "options",
|
|
11525
11907
|
"type": "Option[]",
|
|
11526
11908
|
"required": "false",
|
|
11527
|
-
"
|
|
11528
|
-
"
|
|
11909
|
+
"description": "选项列表,不能与 dataSource + label + optionTitle + optionContent + valuePath 同时使用",
|
|
11910
|
+
"group": "basic"
|
|
11529
11911
|
},
|
|
11530
11912
|
{
|
|
11531
11913
|
"name": "dataSource",
|
|
11532
11914
|
"type": "any[]",
|
|
11533
11915
|
"required": "false",
|
|
11534
11916
|
"default": "[]",
|
|
11535
|
-
"description": "数据源"
|
|
11917
|
+
"description": "数据源",
|
|
11918
|
+
"group": "other",
|
|
11919
|
+
"deprecated": true
|
|
11536
11920
|
},
|
|
11537
11921
|
{
|
|
11538
11922
|
"name": "value",
|
|
11539
|
-
"type": "any",
|
|
11923
|
+
"type": "any[]",
|
|
11540
11924
|
"required": "false",
|
|
11541
|
-
"
|
|
11542
|
-
"
|
|
11925
|
+
"description": "选中项的值,跟 `valuePath` 搭配使用,根据指定的字段路径与 value 的值得出当前选中项",
|
|
11926
|
+
"group": "basic"
|
|
11543
11927
|
},
|
|
11544
11928
|
{
|
|
11545
11929
|
"name": "label",
|
|
11546
11930
|
"type": "string",
|
|
11547
11931
|
"required": "false",
|
|
11548
11932
|
"default": "使用 optionTitle 的值",
|
|
11549
|
-
"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"
|
|
11550
11967
|
},
|
|
11551
11968
|
{
|
|
11552
11969
|
"name": "labelFontSize",
|
|
11553
11970
|
"type": "string",
|
|
11554
11971
|
"required": "false",
|
|
11555
|
-
"
|
|
11556
|
-
"
|
|
11972
|
+
"description": "label 的 fontSize",
|
|
11973
|
+
"group": "ui"
|
|
11557
11974
|
},
|
|
11558
11975
|
{
|
|
11559
11976
|
"name": "placeholder",
|
|
11560
11977
|
"type": "string",
|
|
11561
11978
|
"required": "false",
|
|
11562
|
-
"
|
|
11563
|
-
"
|
|
11979
|
+
"description": "placeholder, 当没有当前项选中时显示",
|
|
11980
|
+
"group": "basic"
|
|
11564
11981
|
},
|
|
11565
11982
|
{
|
|
11566
11983
|
"name": "optionTitle",
|
|
11567
11984
|
"type": "string",
|
|
11568
11985
|
"required": "false",
|
|
11569
11986
|
"default": "#{item}",
|
|
11570
|
-
"description": "选项的标题,支持模板替换,使用跟 label 字段一样"
|
|
11987
|
+
"description": "选项的标题,支持模板替换,使用跟 label 字段一样",
|
|
11988
|
+
"group": "other",
|
|
11989
|
+
"deprecated": true
|
|
11571
11990
|
},
|
|
11572
11991
|
{
|
|
11573
11992
|
"name": "optionContent",
|
|
11574
11993
|
"type": "string",
|
|
11575
11994
|
"required": "false",
|
|
11576
|
-
"
|
|
11577
|
-
"
|
|
11995
|
+
"description": "选项的内容,支持模板替换,使用跟 label 字段一样",
|
|
11996
|
+
"group": "other",
|
|
11997
|
+
"deprecated": true
|
|
11578
11998
|
},
|
|
11579
11999
|
{
|
|
11580
12000
|
"name": "valuePath",
|
|
11581
12001
|
"type": "string",
|
|
11582
12002
|
"required": "false",
|
|
11583
12003
|
"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": "多选的默认选中项"
|
|
12004
|
+
"description": "依据当前项 `item`,指定选项值的 path",
|
|
12005
|
+
"group": "other",
|
|
12006
|
+
"deprecated": true
|
|
11599
12007
|
},
|
|
11600
12008
|
{
|
|
11601
12009
|
"name": "multipleSelect",
|
|
11602
12010
|
"type": "boolean",
|
|
11603
12011
|
"required": "false",
|
|
11604
12012
|
"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": "提示构件",
|
|
12013
|
+
"description": "是否支持多选,支持多选时,单选的value属性失效",
|
|
11620
12014
|
"group": "basic"
|
|
11621
12015
|
},
|
|
11622
12016
|
{
|
|
11623
|
-
"name": "
|
|
11624
|
-
"type": "
|
|
12017
|
+
"name": "selectedKeys",
|
|
12018
|
+
"type": "string[]",
|
|
11625
12019
|
"required": "false",
|
|
11626
|
-
"default": "
|
|
11627
|
-
"description": "
|
|
12020
|
+
"default": "[]",
|
|
12021
|
+
"description": "多选的选中项",
|
|
12022
|
+
"group": "basic"
|
|
11628
12023
|
},
|
|
11629
12024
|
{
|
|
11630
|
-
"name": "
|
|
11631
|
-
"type": "
|
|
12025
|
+
"name": "selectTipText",
|
|
12026
|
+
"type": "string",
|
|
11632
12027
|
"required": "false",
|
|
11633
|
-
"default": "
|
|
11634
|
-
"description": "
|
|
12028
|
+
"default": "-",
|
|
12029
|
+
"description": "下拉框提示信息"
|
|
11635
12030
|
},
|
|
11636
12031
|
{
|
|
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"
|
|
12032
|
+
"name": "selectBoxStyle",
|
|
12033
|
+
"type": "CSSProperties",
|
|
12034
|
+
"required": "false",
|
|
12035
|
+
"description": "下拉框样式"
|
|
11643
12036
|
},
|
|
11644
12037
|
{
|
|
11645
|
-
"name": "
|
|
11646
|
-
"type": "string",
|
|
12038
|
+
"name": "defaultSelectedKeys",
|
|
12039
|
+
"type": "string[]",
|
|
11647
12040
|
"required": "false",
|
|
11648
|
-
"default": "
|
|
11649
|
-
"description": "
|
|
12041
|
+
"default": "[]",
|
|
12042
|
+
"description": "多选的默认选中项",
|
|
12043
|
+
"group": "basic"
|
|
11650
12044
|
},
|
|
11651
12045
|
{
|
|
11652
|
-
"name": "
|
|
11653
|
-
"type": "
|
|
12046
|
+
"name": "minSelectedItemLength",
|
|
12047
|
+
"type": "number",
|
|
11654
12048
|
"required": "false",
|
|
11655
|
-
"
|
|
11656
|
-
"
|
|
12049
|
+
"description": "最小选择数量(多选)",
|
|
12050
|
+
"group": "basic"
|
|
11657
12051
|
},
|
|
11658
12052
|
{
|
|
11659
|
-
"name": "
|
|
12053
|
+
"name": "multipleLabel",
|
|
11660
12054
|
"type": "string",
|
|
11661
12055
|
"required": "false",
|
|
11662
|
-
"
|
|
11663
|
-
"
|
|
12056
|
+
"description": "多选时,当前label仅支持显示从构件外部传入,multipleLabel属性仅在dropdownButtonType为multiple时生效",
|
|
12057
|
+
"group": "basic"
|
|
11664
12058
|
},
|
|
11665
12059
|
{
|
|
11666
|
-
"name": "
|
|
11667
|
-
"type": "
|
|
12060
|
+
"name": "tipBrick",
|
|
12061
|
+
"type": "{ useBrick: UseBrickConf; }",
|
|
11668
12062
|
"required": "false",
|
|
11669
|
-
"
|
|
11670
|
-
"
|
|
12063
|
+
"description": "提示构件",
|
|
12064
|
+
"group": "other"
|
|
11671
12065
|
}
|
|
11672
12066
|
],
|
|
11673
12067
|
"events": [
|
|
@@ -12758,83 +13152,83 @@
|
|
|
12758
13152
|
{
|
|
12759
13153
|
"name": "imgSrc",
|
|
12760
13154
|
"type": "string",
|
|
12761
|
-
"default": "-",
|
|
12762
13155
|
"required": "",
|
|
13156
|
+
"default": "-",
|
|
12763
13157
|
"description": "图片地址"
|
|
12764
13158
|
},
|
|
12765
13159
|
{
|
|
12766
13160
|
"name": "preview",
|
|
12767
13161
|
"type": "boolean",
|
|
12768
|
-
"default": "true",
|
|
12769
13162
|
"required": "",
|
|
13163
|
+
"default": "true",
|
|
12770
13164
|
"description": "是否开启预览"
|
|
12771
13165
|
},
|
|
12772
13166
|
{
|
|
12773
13167
|
"name": "imgHeight",
|
|
12774
13168
|
"type": "string | number",
|
|
12775
|
-
"default": "-",
|
|
12776
13169
|
"required": "",
|
|
13170
|
+
"default": "-",
|
|
12777
13171
|
"description": "图像高度"
|
|
12778
13172
|
},
|
|
12779
13173
|
{
|
|
12780
13174
|
"name": "imgWidth",
|
|
12781
13175
|
"type": "string | number",
|
|
12782
|
-
"default": "-",
|
|
12783
13176
|
"required": "",
|
|
13177
|
+
"default": "-",
|
|
12784
13178
|
"description": "图像宽度"
|
|
12785
13179
|
},
|
|
12786
13180
|
{
|
|
12787
13181
|
"name": "dataSource",
|
|
12788
13182
|
"type": "Record<string, any>",
|
|
12789
|
-
"default": "-",
|
|
12790
13183
|
"required": "-",
|
|
13184
|
+
"default": "-",
|
|
12791
13185
|
"description": "数据源,搭配 extra 使用时会把该数据传入到自定义构件中使用"
|
|
12792
13186
|
},
|
|
12793
13187
|
{
|
|
12794
13188
|
"name": "placeholder",
|
|
12795
13189
|
"type": "string",
|
|
12796
|
-
"default": "-",
|
|
12797
13190
|
"required": "",
|
|
13191
|
+
"default": "-",
|
|
12798
13192
|
"description": "加载占位, 为 true 时使用默认占位",
|
|
12799
13193
|
"group": "advanced"
|
|
12800
13194
|
},
|
|
12801
13195
|
{
|
|
12802
13196
|
"name": "imgAlt",
|
|
12803
13197
|
"type": "string",
|
|
12804
|
-
"default": "-",
|
|
12805
13198
|
"required": "",
|
|
13199
|
+
"default": "-",
|
|
12806
13200
|
"description": "图像描述",
|
|
12807
13201
|
"group": "advanced"
|
|
12808
13202
|
},
|
|
12809
13203
|
{
|
|
12810
13204
|
"name": "fallback",
|
|
12811
13205
|
"type": "string",
|
|
12812
|
-
"default": "-",
|
|
12813
13206
|
"required": "",
|
|
13207
|
+
"default": "-",
|
|
12814
13208
|
"description": "加载失败容错地址",
|
|
12815
13209
|
"group": "advanced"
|
|
12816
13210
|
},
|
|
12817
13211
|
{
|
|
12818
13212
|
"name": "extra",
|
|
12819
13213
|
"type": "UseBrickConf",
|
|
12820
|
-
"default": "-",
|
|
12821
13214
|
"required": "-",
|
|
13215
|
+
"default": "-",
|
|
12822
13216
|
"description": "支持在图片下方增加自定义构件",
|
|
12823
13217
|
"group": "advanced"
|
|
12824
13218
|
},
|
|
12825
13219
|
{
|
|
12826
13220
|
"name": "extraContainerStyle",
|
|
12827
13221
|
"type": "Record<string, any>",
|
|
12828
|
-
"default": "-",
|
|
12829
13222
|
"required": "-",
|
|
13223
|
+
"default": "-",
|
|
12830
13224
|
"description": "包裹自定义构件容器的样式",
|
|
12831
13225
|
"group": "advanced"
|
|
12832
13226
|
},
|
|
12833
13227
|
{
|
|
12834
13228
|
"name": "visible",
|
|
12835
13229
|
"type": "boolean",
|
|
12836
|
-
"default": "-",
|
|
12837
13230
|
"required": "",
|
|
13231
|
+
"default": "-",
|
|
12838
13232
|
"description": "是否显示预览",
|
|
12839
13233
|
"group": "advanced"
|
|
12840
13234
|
}
|
|
@@ -13616,8 +14010,8 @@
|
|
|
13616
14010
|
{
|
|
13617
14011
|
"name": "wrapperConfig",
|
|
13618
14012
|
"type": "BrickWrapperConfig",
|
|
13619
|
-
"default": "-",
|
|
13620
14013
|
"required": "false",
|
|
14014
|
+
"default": "-",
|
|
13621
14015
|
"description": "设置容器空状态时显示`empty`构件属性",
|
|
13622
14016
|
"group": "advanced"
|
|
13623
14017
|
},
|
|
@@ -14696,7 +15090,7 @@
|
|
|
14696
15090
|
},
|
|
14697
15091
|
{
|
|
14698
15092
|
"name": "fields",
|
|
14699
|
-
"type": "
|
|
15093
|
+
"type": "{ value?: string; }",
|
|
14700
15094
|
"required": "false",
|
|
14701
15095
|
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
|
|
14702
15096
|
"deprecated": true,
|
|
@@ -14902,7 +15296,8 @@
|
|
|
14902
15296
|
"type": "{ value?: string; }",
|
|
14903
15297
|
"required": "false",
|
|
14904
15298
|
"default": "-",
|
|
14905
|
-
"description": "",
|
|
15299
|
+
"description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
|
|
15300
|
+
"deprecated": true,
|
|
14906
15301
|
"group": "advanced"
|
|
14907
15302
|
},
|
|
14908
15303
|
{
|
|
@@ -16037,50 +16432,51 @@
|
|
|
16037
16432
|
"change": " 新增构件 `presentational-bricks.brick-illustration`"
|
|
16038
16433
|
}
|
|
16039
16434
|
],
|
|
16040
|
-
"memo": ">更多类型插画请移至[插画库](/developers/illustrations)",
|
|
16435
|
+
"memo": ">更多类型插画请移至[插画库](/next/developers/illustrations)",
|
|
16041
16436
|
"dockind": "brick",
|
|
16042
16437
|
"properties": [
|
|
16043
16438
|
{
|
|
16044
16439
|
"name": "name",
|
|
16045
16440
|
"type": "string",
|
|
16046
|
-
"default": "-",
|
|
16047
16441
|
"required": "true",
|
|
16048
16442
|
"description": "插画名称"
|
|
16049
16443
|
},
|
|
16050
16444
|
{
|
|
16051
16445
|
"name": "category",
|
|
16052
16446
|
"type": "string",
|
|
16053
|
-
"default": "`default`",
|
|
16054
16447
|
"required": "true",
|
|
16055
|
-
"
|
|
16448
|
+
"default": "\"default\"",
|
|
16449
|
+
"description": "插画类型",
|
|
16450
|
+
"group": "basic"
|
|
16056
16451
|
},
|
|
16057
16452
|
{
|
|
16058
16453
|
"name": "header",
|
|
16059
16454
|
"type": "IllustrationHeader",
|
|
16060
|
-
"
|
|
16061
|
-
"
|
|
16062
|
-
"
|
|
16455
|
+
"required": "false",
|
|
16456
|
+
"description": "插画头部内容",
|
|
16457
|
+
"group": "other"
|
|
16063
16458
|
},
|
|
16064
16459
|
{
|
|
16065
16460
|
"name": "footer",
|
|
16066
16461
|
"type": "IllustrationFooter",
|
|
16067
|
-
"default": "-",
|
|
16068
16462
|
"required": "false",
|
|
16069
|
-
"description": "插画底部内容"
|
|
16463
|
+
"description": "插画底部内容",
|
|
16464
|
+
"group": "other"
|
|
16070
16465
|
},
|
|
16071
16466
|
{
|
|
16072
16467
|
"name": "mode",
|
|
16073
16468
|
"type": "IllustrationMode",
|
|
16074
|
-
"
|
|
16075
|
-
"
|
|
16076
|
-
"
|
|
16469
|
+
"required": "false",
|
|
16470
|
+
"description": "插画模式",
|
|
16471
|
+
"group": "other",
|
|
16472
|
+
"deprecated": true
|
|
16077
16473
|
},
|
|
16078
16474
|
{
|
|
16079
16475
|
"name": "imageStyle",
|
|
16080
16476
|
"type": "CSSProperties",
|
|
16081
|
-
"
|
|
16082
|
-
"
|
|
16083
|
-
"
|
|
16477
|
+
"required": "false",
|
|
16478
|
+
"description": "图片样式",
|
|
16479
|
+
"group": "ui"
|
|
16084
16480
|
}
|
|
16085
16481
|
],
|
|
16086
16482
|
"interface": [
|
|
@@ -16917,18 +17313,264 @@
|
|
|
16917
17313
|
"children": [
|
|
16918
17314
|
{
|
|
16919
17315
|
"name": "extra",
|
|
16920
|
-
"type": "string |
|
|
17316
|
+
"type": "string | { useBrick?: UseBrickConf; }",
|
|
16921
17317
|
"required": false,
|
|
16922
17318
|
"description": "表格头部右边内容显示区域"
|
|
16923
17319
|
},
|
|
16924
17320
|
{
|
|
16925
17321
|
"name": "title",
|
|
16926
|
-
"type": "string |
|
|
17322
|
+
"type": "string | { useBrick?: UseBrickConf; }",
|
|
16927
17323
|
"required": true,
|
|
16928
17324
|
"description": "表格头部左边内容显示区域"
|
|
16929
17325
|
}
|
|
16930
17326
|
],
|
|
16931
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": []
|
|
16932
17574
|
}
|
|
16933
17575
|
]
|
|
16934
17576
|
}
|
|
@@ -17270,6 +17912,7 @@
|
|
|
17270
17912
|
{
|
|
17271
17913
|
"name": "dataSource",
|
|
17272
17914
|
"type": "unknown",
|
|
17915
|
+
"required": true,
|
|
17273
17916
|
"description": "数据源"
|
|
17274
17917
|
}
|
|
17275
17918
|
],
|
|
@@ -17385,54 +18028,55 @@
|
|
|
17385
18028
|
{
|
|
17386
18029
|
"name": "dataSource",
|
|
17387
18030
|
"type": "any[]",
|
|
17388
|
-
"default": "",
|
|
17389
18031
|
"required": "true",
|
|
18032
|
+
"default": "",
|
|
17390
18033
|
"description": "数据源,其中的数据将会被渲染到左边一栏中,targetKeys 中指定的除外,必须有key字段作为唯一标识"
|
|
17391
18034
|
},
|
|
17392
18035
|
{
|
|
17393
18036
|
"name": "columns",
|
|
17394
18037
|
"type": "ColumnsType<Record<string, any>>",
|
|
17395
|
-
"default": "",
|
|
17396
18038
|
"required": "true",
|
|
18039
|
+
"default": "",
|
|
17397
18040
|
"description": "表格column配置"
|
|
17398
18041
|
},
|
|
17399
18042
|
{
|
|
17400
18043
|
"name": "targetKeys",
|
|
17401
18044
|
"type": "string[]",
|
|
17402
|
-
"default": "",
|
|
17403
18045
|
"required": "false",
|
|
18046
|
+
"default": "",
|
|
17404
18047
|
"description": "显示在右栏数据的 key 集合"
|
|
17405
18048
|
},
|
|
17406
18049
|
{
|
|
17407
18050
|
"name": "selectedKeys",
|
|
17408
18051
|
"type": "string[]",
|
|
17409
|
-
"default": "",
|
|
17410
18052
|
"required": "false",
|
|
18053
|
+
"default": "",
|
|
17411
18054
|
"description": "设置哪些项被选中"
|
|
17412
18055
|
},
|
|
17413
18056
|
{
|
|
17414
18057
|
"name": "disabled",
|
|
17415
18058
|
"type": "boolean",
|
|
17416
|
-
"default": "`false`",
|
|
17417
18059
|
"required": "false",
|
|
18060
|
+
"default": "`false`",
|
|
17418
18061
|
"description": "是否禁用"
|
|
17419
18062
|
},
|
|
17420
18063
|
{
|
|
17421
18064
|
"name": "dragSortable",
|
|
17422
|
-
"type": "boolean"
|
|
18065
|
+
"type": "boolean",
|
|
18066
|
+
"required": true
|
|
17423
18067
|
},
|
|
17424
18068
|
{
|
|
17425
18069
|
"name": "sortTitle",
|
|
17426
18070
|
"type": "string",
|
|
17427
|
-
"default": "`sort`",
|
|
17428
18071
|
"required": "false",
|
|
18072
|
+
"default": "`sort`",
|
|
17429
18073
|
"description": "支持右栏表格排序时,排序列的title"
|
|
17430
18074
|
},
|
|
17431
18075
|
{
|
|
17432
18076
|
"name": "maxSelected",
|
|
17433
18077
|
"type": "number",
|
|
17434
|
-
"default": "",
|
|
17435
18078
|
"required": "false",
|
|
18079
|
+
"default": "",
|
|
17436
18080
|
"description": "最大可选数量,当 dataSource 个数大于该值时,不显示全勾选框"
|
|
17437
18081
|
},
|
|
17438
18082
|
{
|