@next-bricks/presentational-bricks 1.252.3 → 1.255.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/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
- "default": "-",
2022
- "description": "[已废弃]显示的字段值,支持通过 path 指定"
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
- "default": "-",
2029
- "description": "数据"
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": "object",
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": "object",
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
- "default": "-",
2693
- "description": "标题"
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": "Record<string,any>",
2713
+ "type": "CSSProperties",
2712
2714
  "required": "false",
2713
- "default": "-",
2714
- "description": "分割线自定义样式"
2715
+ "description": "分割线自定义样式",
2716
+ "group": "basic"
2715
2717
  },
2716
2718
  {
2717
2719
  "name": "orientation",
2718
- "type": "\"center\" \"left\" \"right\"",
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": "`boolean`",
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": "`number[]`",
2736
+ "type": "number[]",
2733
2737
  "required": "false",
2734
- "default": "false",
2735
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 `radiation`"
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": "object",
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": []
@@ -6410,7 +6415,7 @@
6410
6415
  "change": "新增 `shouldUpdateUrlParams` 属性和 `sort.update` 事件"
6411
6416
  }
6412
6417
  ],
6413
- "memo": "> Tips: 在 react 中,boolean 类型的值是合法的子元素,但是不会被渲染出来。如果希望 boolean 值在表格单元格中展示成 `true`|`false`,可以使用平台管道进行转换,例如`@{someProperties|string}`。更多场景下可以结合 [基本数值映射构件](developers/brick-book/brick/presentational-bricks.brick-value-mapping) 把 boolean 类型的值转换成有意义的文本进行展示。\n### CustomColumn\n| property | type | required | default | description |\n| -------------------- | --------------------- | -------- | ------- | -------------------------------------------------------------- |\n| valueSuffix | string | - | - | 字段的值展示时的后缀 |\n| useBrick | UseBrickConf | - | - | 支持为某列自定义展示构件, 具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf) |\n| titleUseBrick | UseBrickConf | - | - | 支持为某列的标题自定义展示构件,可通过 DATA.title 获取标题文本,具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf) |\n| filters | {text:string,value:any}[] | - | - | 表头的筛选菜单项 |\n| verticalAlign | top \\| bottom | - | - | 单元格内元素的垂直对齐方式 |\n| colSpanKey | string | - | - | 每条记录的控制列合并的值的 key |\n| rowSpanKey | string | - | - | 每条记录的控制行合并的值的 key。如果希望将树形列表展平,并计算行合并的值,可以使用 flattenTreeDataListAndCalcRowSpan 自定义加工函数 |、* | ~~component~~ | ~~CustomColumnComponent~~ | - | - | ~~Deprecated。支持为某列自定义展示构件~~ |\n\n### UseBrickConf\n\n| property | type | required | default | description |\n| ------------- | -------------- | -------- | ------- | -------------------------------------------------- |\n| brick | string | ✔️ | - | 构件名称 |\n| properties | object | - | - | 构件属性 |\n| events | BrickEventsMap | - | - | 事件 |\n| transform | string\\|object | - | - | 属性数据转换 |\n| transformFrom | string | - | - | 属性数据转换来自数据源的哪个字段,不填则为整个数据 |\n\n`<presentational-bricks.brick-table>` 为某列自定义展示构件传递的数据源为:\n\n| field | type | description |\n| ----------- | ------ | ----------- |\n| cellData | any | 单元格数据 |\n| rowData | any | 整行数据 |\n| columnIndex | number | 列序号 |\n\n`<presentational-bricks.brick-table>` 为自定义行展开的构件传递的数据源为:\n\n| field | type | description |\n| -------- | ------ | ----------- |\n| rowData | any | 整行数据 |\n| rowIndex | number | 行序号 |\n\n### <del>CustomColumnComponent</del>\n\n<details>\n<summary>展开</summary>\n\n| property | type | required | default | description |\n| ---------- | -------------------------------------------- | -------- | ------- | ----------------------------------------------- |\n| brick | string | ✔️ | - | 构件名称 |\n| fields | {value: string; item: string; index: string} | ✔️ | - | 字段值、列表项和 index 对应所用构件的属性的 key |\n| properties | object | - | - | 构件属性 |\n| events | BrickEventsMap | - | - | 事件 |\n\n</details>\n\n### fields\n| property | type | required | default | description |\n| ---------- | ------ | -------- | -------- | -------------------------------------------------------------------------------------------------------- |\n| fields | fieldsType | - | - | 设置相关字段取自哪里,具体描述见下表 |\n\n### fieldsType\n| property | type | required | default | description |\n| ---------- | ------ | -------- | -------- | -------------------------------------------------------------------------------------------------------- |\n| dataSource | string | - | list | 指定 dataSource 从哪里来,默认为列表接口返回格式是{list:[],page:1,pageSize:10,total:20},即默认取自 list |\n| total | string | - | total | 指定 total 从哪里来,默认为列表接口返回格式是{list:[],page:1,pageSize:10,total:20},即默认取自 total |\n| page | string | - | page | 指定下表中 \"page.update\" 事件 detail 的 pagePath |\n| pageSize | string | - | pageSize | 指定下表 \"filter.update\" 事件 detail 的 pageSizePath |\n| ascend | string | - | ascend | 指定 ascend 升序排序对应字段,例如有些后台对应为 1 ,有些对应为 \"asc\"。这里默认为 \"ascend\" |\n| descend | string | - | descend | 指定 descend 降序排序对应字段,例如有些后台对应为 0 ,有些对应为 \"desc\"。这里默认为 \"descend\" |\n\n### pagination 默认配置\n\n如果不希望分页,只需在 storyboard 中如下设置即可:\n\n```\n{\n \"configProps\": {\n \"pagination\": false\n }\n}\n```\n\n如果希望覆盖默认配置,只需在 storyboard 中覆盖对应项即可,相关配置项具体查阅:[pagination](https://ant.design/components/pagination-cn/#API)\n\n```\n{\n \"configProps\": {\n \"pagination\": {\n \"pageSizeOptions\": [\"10\",\"100\",\"1000\"]\n }\n }\n}\n```\n\n| property | type | required | default | description |\n| --------------- | -------- | -------- | ------------------ | ------------------------------------- |\n| current | string | - | - | 页码,从 page properties 获取 |\n| pageSize | string | - | - | 每页条数,从 pageSize properties 获取 |\n| total | object | - | - | 总数,从 dataSource.total 获取 |\n| showSizeChanger | boolean | - | true | 展示页码变化器 |\n| pageSizeOptions | array | - | [\"10\", \"20\", \"50\"] | 每页条数选项 |\n| showTotal | function | - | - | 渲染成\"共 xx 条\" |\n\n\n### rowSelection 默认配置\n\n行选择默认为 false,即如果不在 storyboard 中配置就不显示。如果要开启只需在 storyboard 中如下设置即可,这时 brick-table 会默认配置 onChange 事件:\n\n```\n{\n \"configProps\": {\n \"rowSelection\": true\n }\n}\n```\n\n如果希望覆盖或者扩展默认配置,只需在 storyboard 中覆盖对应项即可,相关配置项具体查阅:[rowSelection](https://ant.design/components/table-cn/#rowSelection)\n\n```\n{\n \"configProps\": {\n \"rowSelection\": {\n \"columnWidth\": \"88px\"\n }\n }\n}\n```\n\n| property | type | required | default | description |\n| -------- | -------- | -------- | ------- | --------------------------------- |\n| onChange | function | - | - | 选择行,会抛出事件\"select.update\" |\n\n### 排序\n\n如果某一列希望排序,则可以设对应列 `sorter:true`,例如:\n\n```\n{\n \"columns\": [\n {\n \"title\": \"主机\",\n \"key\": \"hostname\",\n \"dataIndex\": \"hostname\",\n \"sorter\": true\n }\n ]\n}\n```\n\n## flattenTreeDataListAndCalcRowSpan 自定义加工函数\n\n将树形数据列表按照 `options.flattenConfigs` 进行展平,并生成相应的行合并数据\n\n### Params\n\n| param | type | required | default | description |\n| ------------ | ------------------------------------------ | -------- | ------- | ------------------------------------------------------------------------ |\n| treeDataList | Record<string, unknown>[] | ✔️ | - | 树形数据列表 |\n| options | FlattenTreeDataListAndCalcRowSpanOptions | ✔️ | - | 函数选项 |\n| depth | number | - | 0 | 当前展平的深度,用于确定 `options.flattenConfigs` 中的当前层级的展平配置 |\n\n### Returns\n\n| type | description |\n| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Record<string, unknown>[] | 展平后的列表,除了按照 `options.flattenConfigs` 进行展平外,还会生成相应层级以 `options.flattenConfigs[].parentInChildKey + \"RowSpan\"` 为 key 的行合并数据 |\n\n### FlattenTreeDataListAndCalcRowSpanOptions\n\n| property | type | required | default | description |\n| -------------------- | ----------------- | -------- | ------- | ---------------------------------------- |\n| flattenConfigs | FlattenConfig[] | ✔️ | - | 展平配置列表,按照由父到子的顺序一一对应 |\n| omitChildrenInParent | boolean | - | - | 展平后,是否省略父级里的子列表 |\n\n### FlattenConfig\n\n| property | type | required | default | description |\n| ---------------- | -------- | -------- | ------- | ------------------------ |\n| childrenKey | string | ✔️ | - | 对应层级子列表的 key |\n| parentInChildKey | string | ✔️ | - | 展平后,父级在子级的 key |",
6418
+ "memo": "> Tips: 在 react 中,boolean 类型的值是合法的子元素,但是不会被渲染出来。如果希望 boolean 值在表格单元格中展示成 `true`|`false`,可以使用平台管道进行转换,例如`@{someProperties|string}`。更多场景下可以结合 [基本数值映射构件](developers/brick-book/brick/presentational-bricks.brick-value-mapping) 把 boolean 类型的值转换成有意义的文本进行展示。\n### CustomColumn\n| property | type | required | default | description |\n| -------------------- | --------------------- | -------- | ------- | -------------------------------------------------------------- |\n| valueSuffix | string | - | - | 字段的值展示时的后缀 |\n| useBrick | UseBrickConf | - | - | 支持为某列自定义展示构件, 具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf) |\n| titleUseBrick | UseBrickConf | - | - | 支持为某列的标题自定义展示构件,可通过 DATA.title 获取标题文本,具体查看 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf) |\n| filters | {text:string,value:any}[] | - | - | 表头的筛选菜单项 |\n| verticalAlign | top \\| bottom | - | - | 单元格内元素的垂直对齐方式 |\n| colSpanKey | string | - | - | 每条记录的控制列合并的值的 key |\n| rowSpanKey | string | - | - | 每条记录的控制行合并的值的 key。如果希望将树形列表展平,并计算行合并的值,可以使用 flattenTreeDataListAndCalcRowSpan 自定义加工函数 |\n| ~~component~~ | ~~CustomColumnComponent~~ | - | - | ~~Deprecated。支持为某列自定义展示构件~~ |\n\n### UseBrickConf\n\n| property | type | required | default | description |\n| ------------- | -------------- | -------- | ------- | -------------------------------------------------- |\n| brick | string | ✔️ | - | 构件名称 |\n| properties | object | - | - | 构件属性 |\n| events | BrickEventsMap | - | - | 事件 |\n| transform | string\\|object | - | - | 属性数据转换 |\n| transformFrom | string | - | - | 属性数据转换来自数据源的哪个字段,不填则为整个数据 |\n\n`<presentational-bricks.brick-table>` 为某列自定义展示构件传递的数据源为:\n\n| field | type | description |\n| ----------- | ------ | ----------- |\n| cellData | any | 单元格数据 |\n| rowData | any | 整行数据 |\n| columnIndex | number | 列序号 |\n\n`<presentational-bricks.brick-table>` 为自定义行展开的构件传递的数据源为:\n\n| field | type | description |\n| -------- | ------ | ----------- |\n| rowData | any | 整行数据 |\n| rowIndex | number | 行序号 |\n\n### <del>CustomColumnComponent</del>\n\n<details>\n<summary>展开</summary>\n\n| property | type | required | default | description |\n| ---------- | -------------------------------------------- | -------- | ------- | ----------------------------------------------- |\n| brick | string | ✔️ | - | 构件名称 |\n| fields | {value: string; item: string; index: string} | ✔️ | - | 字段值、列表项和 index 对应所用构件的属性的 key |\n| properties | object | - | - | 构件属性 |\n| events | BrickEventsMap | - | - | 事件 |\n\n</details>\n\n### fields\n| property | type | required | default | description |\n| ---------- | ------ | -------- | -------- | -------------------------------------------------------------------------------------------------------- |\n| fields | fieldsType | - | - | 设置相关字段取自哪里,具体描述见下表 |\n\n### fieldsType\n| property | type | required | default | description |\n| ---------- | ------ | -------- | -------- | -------------------------------------------------------------------------------------------------------- |\n| dataSource | string | - | list | 指定 dataSource 从哪里来,默认为列表接口返回格式是{list:[],page:1,pageSize:10,total:20},即默认取自 list |\n| total | string | - | total | 指定 total 从哪里来,默认为列表接口返回格式是{list:[],page:1,pageSize:10,total:20},即默认取自 total |\n| page | string | - | page | 指定下表中 \"page.update\" 事件 detail 的 pagePath |\n| pageSize | string | - | pageSize | 指定下表 \"filter.update\" 事件 detail 的 pageSizePath |\n| ascend | string | - | ascend | 指定 ascend 升序排序对应字段,例如有些后台对应为 1 ,有些对应为 \"asc\"。这里默认为 \"ascend\" |\n| descend | string | - | descend | 指定 descend 降序排序对应字段,例如有些后台对应为 0 ,有些对应为 \"desc\"。这里默认为 \"descend\" |\n\n### pagination 默认配置\n\n如果不希望分页,如下设置即可:\n\n```\n{\n \"configProps\": {\n \"pagination\": false\n }\n}\n```\n\n如果希望覆盖默认配置,覆盖对应项即可,相关配置项具体查阅:[pagination](https://ant.design/components/pagination-cn/#API)\n\n```\n{\n \"configProps\": {\n \"pagination\": {\n \"pageSizeOptions\": [\"10\",\"100\",\"1000\"]\n }\n }\n}\n```\n\n| property | type | required | default | description |\n| --------------- | -------- | -------- | ------------------ | ------------------------------------- |\n| current | string | - | - | 页码,从 page properties 获取 |\n| pageSize | string | - | - | 每页条数,从 pageSize properties 获取 |\n| total | object | - | - | 总数,从 dataSource.total 获取 |\n| showSizeChanger | boolean | - | true | 展示页码变化器 |\n| pageSizeOptions | array | - | [\"10\", \"20\", \"50\"] | 每页条数选项 |\n| showTotal | function | - | - | 渲染成\"共 xx 条\" |\n\n\n### rowSelection 默认配置\n\n行选择默认为 false,不配置就不显示。如果要开启如下设置即可,这时 brick-table 会默认配置 onChange 事件:\n\n```\n{\n \"configProps\": {\n \"rowSelection\": true\n }\n}\n```\n\n如果希望覆盖或者扩展默认配置,覆盖对应项即可,相关配置项具体查阅:[rowSelection](https://ant.design/components/table-cn/#rowSelection)\n\n```\n{\n \"configProps\": {\n \"rowSelection\": {\n \"columnWidth\": \"88px\"\n }\n }\n}\n```\n\n| property | type | required | default | description |\n| -------- | -------- | -------- | ------- | --------------------------------- |\n| onChange | function | - | - | 选择行,会抛出事件\"select.update\" |\n\n### 排序\n\n如果某一列希望排序,则可以设对应列 `sorter:true`,例如:\n\n```\n{\n \"columns\": [\n {\n \"title\": \"主机\",\n \"key\": \"hostname\",\n \"dataIndex\": \"hostname\",\n \"sorter\": true\n }\n ]\n}\n```\n\n## flattenTreeDataListAndCalcRowSpan 自定义加工函数\n\n将树形数据列表按照 `options.flattenConfigs` 进行展平,并生成相应的行合并数据\n\n### Params\n\n| param | type | required | default | description |\n| ------------ | ------------------------------------------ | -------- | ------- | ------------------------------------------------------------------------ |\n| treeDataList | Record<string, unknown>[] | ✔️ | - | 树形数据列表 |\n| options | FlattenTreeDataListAndCalcRowSpanOptions | ✔️ | - | 函数选项 |\n| depth | number | - | 0 | 当前展平的深度,用于确定 `options.flattenConfigs` 中的当前层级的展平配置 |\n\n### Returns\n\n| type | description |\n| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Record<string, unknown>[] | 展平后的列表,除了按照 `options.flattenConfigs` 进行展平外,还会生成相应层级以 `options.flattenConfigs[].parentInChildKey + \"RowSpan\"` 为 key 的行合并数据 |\n\n### FlattenTreeDataListAndCalcRowSpanOptions\n\n| property | type | required | default | description |\n| -------------------- | ----------------- | -------- | ------- | ---------------------------------------- |\n| flattenConfigs | FlattenConfig[] | ✔️ | - | 展平配置列表,按照由父到子的顺序一一对应 |\n| omitChildrenInParent | boolean | - | - | 展平后,是否省略父级里的子列表 |\n\n### FlattenConfig\n\n| property | type | required | default | description |\n| ---------------- | -------- | -------- | ------- | ------------------------ |\n| childrenKey | string | ✔️ | - | 对应层级子列表的 key |\n| parentInChildKey | string | ✔️ | - | 展平后,父级在子级的 key |",
6414
6419
  "properties": [
6415
6420
  {
6416
6421
  "name": "columns",
@@ -6422,7 +6427,7 @@
6422
6427
  },
6423
6428
  {
6424
6429
  "name": "dataSource",
6425
- "type": "any",
6430
+ "type": "any[]",
6426
6431
  "required": "false",
6427
6432
  "default": "-",
6428
6433
  "description": "数据源,通过 useResolves 从后台接口获取或者直接在 storyboard 中配置",
@@ -6438,7 +6443,7 @@
6438
6443
  },
6439
6444
  {
6440
6445
  "name": "hiddenColumns",
6441
- "type": "(string|number)[]",
6446
+ "type": "Array<string | number>",
6442
6447
  "required": "false",
6443
6448
  "default": "-",
6444
6449
  "description": "隐藏相应列(输入对应的 dataIndex 或者 key 即可)",
@@ -6454,7 +6459,7 @@
6454
6459
  },
6455
6460
  {
6456
6461
  "name": "filters",
6457
- "type": "Record<string,string[]>",
6462
+ "type": "Record<string, string[]>",
6458
6463
  "required": "false",
6459
6464
  "default": "-",
6460
6465
  "description": "表头过滤的过滤项,key 为 column 的 dataIndex,value 为过滤值集合。",
@@ -6470,7 +6475,7 @@
6470
6475
  },
6471
6476
  {
6472
6477
  "name": "configProps",
6473
- "type": "object",
6478
+ "type": "any",
6474
6479
  "required": "false",
6475
6480
  "default": "-",
6476
6481
  "description": "ant-design 的 Table 相关配置项,具体查阅:[Table](https://ant.design/components/table-cn/#Table),其中分页配置和行选择配值在构件中设置了常用的默认配置,也可自行覆盖,具体描述见下表",
@@ -6542,7 +6547,7 @@
6542
6547
  },
6543
6548
  {
6544
6549
  "name": "optimizedColumns",
6545
- "type": "(string|number)[]",
6550
+ "type": "Array<string | number>",
6546
6551
  "required": "false",
6547
6552
  "default": "-",
6548
6553
  "description": "优化渲染的列(输入对应的 dataIndex),针对配置了 useBrick 的列。当前 antd 在更新 state 的时候,会全量渲染单元格,如果确定某一列在后续操作中不需要重新渲染,例如仅作为展示的单元格,可通过该属性设置以优化性能。注意,在树形表格中,当某一列内包含展开/收起按钮,则不应该设置该列。",
@@ -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
  },
@@ -6766,7 +6771,7 @@
6766
6771
  },
6767
6772
  {
6768
6773
  "name": "rowSelection",
6769
- "type": "false | TableRowSelection",
6774
+ "type": "false | TableRowSelection<any>",
6770
6775
  "required": "false",
6771
6776
  "default": "-",
6772
6777
  "description": "表格行是否可选择,具体查阅:[rowSelection](https://ant.design/components/table-cn/#rowSelection)"
@@ -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,219 +6957,547 @@
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
- "brick": "div",
6988
- "slots": {
6989
- "": {
6990
- "type": "bricks",
6991
- "bricks": [
6992
- {
6993
- "brick": "presentational-bricks.brick-tag",
6994
- "properties": {
6995
- "color": "green",
6996
- "showCard": true,
6997
- "showTagCircle": true,
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
- "key": "close2",
7064
- "label": "close2"
6973
+ "type": "intrinsic",
6974
+ "name": "string"
7065
6975
  },
7066
6976
  {
7067
- "key": "close3",
7068
- "label": "close3"
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
- "type": "bricks"
7161
- }
7162
- }
7163
- },
7164
- {
7165
- "description": {
7166
- "title": "可选择标签"
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": "可选择标签"
7167
7501
  },
7168
7502
  "brick": "forms.general-form",
7169
7503
  "events": {
@@ -7676,7 +8010,7 @@
7676
8010
  },
7677
8011
  {
7678
8012
  "name": "afterBrick",
7679
- "type": "object",
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\"> & object"
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": "object",
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
- "default": "-",
9287
- "description": "原始值"
9620
+ "description": "原始值",
9621
+ "group": "basic"
9288
9622
  },
9289
9623
  {
9290
9624
  "name": "dataSource",
9291
9625
  "type": "Record<string, any>",
9292
9626
  "required": "false",
9293
- "default": "-",
9294
- "description": "替代 `data` 属性,click 事件时传出的数据"
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
- "default": "-",
9301
- "description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value"
9634
+ "description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
9635
+ "deprecated": true,
9636
+ "group": "other"
9302
9637
  },
9303
9638
  {
9304
9639
  "name": "mapping",
9305
- "type": "{ [value: string/number ]: MappingValue }",
9640
+ "type": "Record<string | number, MappingValue>",
9306
9641
  "required": "true",
9307
- "default": "-",
9308
- "description": "映射规则"
9642
+ "description": "映射规则",
9643
+ "group": "basic"
9309
9644
  },
9310
9645
  {
9311
9646
  "name": "showTagCircle",
9312
9647
  "type": "boolean",
9313
9648
  "required": "false",
9314
- "default": "-",
9315
- "description": "显示文字旁边的小圈圈,按照平台规范通常表示状态的标签可设置为 true"
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
- "default": "-",
9329
- "description": "若设置且 `triggerClickEvent` 为 false,则点击可跳转"
9664
+ "description": "若设置且 `triggerClickEvent` 为 false,则点击可跳转",
9665
+ "group": "basic"
9330
9666
  },
9331
9667
  {
9332
9668
  "name": "data",
9333
9669
  "type": "any",
9334
9670
  "required": "false",
9335
- "default": "-",
9336
- "description": "[已废弃]可用于接收 useBrick 传递过来的数据"
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
- "default": "-",
10321
- "description": "卡片 title"
10659
+ "description": "卡片 title",
10660
+ "group": "basic"
10322
10661
  },
10323
10662
  {
10324
10663
  "name": "cardSubtitle",
10325
10664
  "type": "string",
10326
10665
  "required": "false",
10327
- "default": "-",
10328
- "description": "卡片 副标题"
10666
+ "description": "卡片 副标题",
10667
+ "group": "basic"
10329
10668
  },
10330
10669
  {
10331
10670
  "name": "descriptionList",
10332
- "type": "string[] | string |{ label: string; field?: string; value?: string }[]",
10671
+ "type": "string[] | string | DescriptionItem[]",
10333
10672
  "required": "false",
10334
- "default": "-",
10335
- "description": "描述信息"
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
- "default": "-",
10349
- "description": "描述信息为数组的时候,默认显示每个`<li>`前面的小圈圈,不需要的时候可以隐藏"
10688
+ "description": "描述信息为数组的时候,默认显示每个`<li>`前面的小圈圈,不需要的时候可以隐藏",
10689
+ "group": "ui"
10350
10690
  },
10351
10691
  {
10352
10692
  "name": "urlTemplate",
10353
10693
  "type": "string",
10354
10694
  "required": "false",
10355
- "default": "-",
10356
- "description": "卡片跳转 url,支持模版变量"
10695
+ "description": "卡片跳转 url,支持模版变量",
10696
+ "group": "basic"
10357
10697
  },
10358
10698
  {
10359
10699
  "name": "url",
10360
10700
  "type": "string",
10361
10701
  "required": "false",
10362
- "default": "-",
10363
- "description": "卡片跳转 url, url 优先于 urlTemplate 执行"
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
- "default": "-",
10370
- "description": "卡片跳转 href,优先于 url 执行"
10709
+ "description": "卡片跳转 href,优先于 url 执行",
10710
+ "group": "basic"
10371
10711
  },
10372
10712
  {
10373
10713
  "name": "target",
10374
10714
  "type": "string",
10375
10715
  "required": "false",
10376
- "default": "-",
10377
- "description": "卡片跳转 target,例如可以设置成 _blank"
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
- "default": "-",
10384
- "description": "卡片信息数据源"
10723
+ "description": "卡片信息数据源",
10724
+ "group": "basic"
10385
10725
  },
10386
10726
  {
10387
10727
  "name": "fields",
10388
- "type": "{ cardTitle?: string;cardSubtitle?:string;descriptionList?: string;icon?:string;iconColor?:string;\niconStyle?: string;\niconSize?: string;\niconOffsetX?: string;\niconOffsetY?: string;\niconOpacity?: string;disabled?:string; }",
10389
- "required": "-",
10390
- "default": "-",
10391
- "description": "字段映射, 跟 dataSource 一起使用来获得运行时 cardTitle、cardSubtitle、descriptionList、icon、iconColor、iconStyle、iconSize、iconOffsetX、iconOffsetY、iconOpacity、disabled"
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
- "default": "-",
10398
- "description": "卡片右下角的 icon"
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
- "default": "-",
10405
- "description": "卡片右下角的 icon 的样式,例如需要调整 opacity、right、bottom 的时候可以使用"
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\" \\| \"icon-align-right\" \\| \"icon-align-left\" 的时候可以设置 icon 的颜色"
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": "{text: string; color?: Color; triangle?: boolean; field?: string; value?: any; isNotEqual?: boolean; hideOperate?: boolean;}",
10789
+ "type": "{ color?: Color; field?: string; hideOperate?: boolean; isNotEqual?: boolean; text: string; triangle?: boolean; value?: any; }",
10445
10790
  "required": "false",
10446
- "default": "-",
10447
- "description": "右上角 tag 标签"
10791
+ "description": "右上角 tag 标签",
10792
+ "group": "other"
10448
10793
  },
10449
10794
  {
10450
10795
  "name": "configProps",
10451
- "type": "map",
10796
+ "type": "CardProps",
10452
10797
  "required": "false",
10453
- "default": "-",
10454
- "description": "完全透传给 antd 的 Card 属性,详见:[https://ant.design/components/card-cn/#Card](https://ant.design/components/card-cn/#Card)"
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": "'list'|\"section\"",
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
- "default": "-",
10510
- "description": "图片图标的src"
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
- "default": "-",
10524
- "description": "图标是img时,可以设置 img 的大小,不设置时会铺满"
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
- "description": "设置icon背景形状,仅在设置`bg`为true时有效"
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
- "default": "-",
11154
- "description": "消耗时间(毫秒级)"
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
- "default": "-",
11161
- "description": "起始时间"
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
- "default": "-",
11168
- "description": "结束时间"
11522
+ "description": "结束时间",
11523
+ "group": "basic"
11169
11524
  },
11170
11525
  {
11171
11526
  "name": "unitStyle",
11172
- "type": "React.CSSProperties",
11527
+ "type": "CSSProperties",
11173
11528
  "required": "false",
11174
- "default": "-",
11175
- "description": "单位样式"
11529
+ "description": "单位样式",
11530
+ "group": "ui"
11176
11531
  },
11177
11532
  {
11178
11533
  "name": "dataSource",
11179
11534
  "type": "any",
11180
11535
  "required": "false",
11181
- "default": "-",
11182
- "description": "[已废弃]数据源"
11536
+ "description": "[已废弃]数据源",
11537
+ "deprecated": true,
11538
+ "group": "other"
11183
11539
  },
11184
11540
  {
11185
11541
  "name": "fields",
11186
- "type": "{ cost?: string; startTime?: string; endTime?: string; }",
11542
+ "type": "{ cost?: string; endTime?: string; startTime?: string; }",
11187
11543
  "required": "false",
11188
- "default": "-",
11189
- "description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时对应字段"
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": "${query.from=\"now/d\"}",
11283
- "to": "${query.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": "${query.from=\"now/d\"}",
11299
- "to": "${query.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\nexport declare type TooltipPlacement =\n | \"top\"\n | \"left\"\n | \"right\"\n | \"bottom\"\n | \"topLeft\"\n | \"topRight\"\n | \"bottomLeft\"\n | \"bottomRight\"\n | \"leftTop\"\n | \"leftBottom\"\n | \"rightTop\"\n | \"rightBottom\";\n```\n```\n目前支持时间段范围如下:\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 的解析函数,统一转化为时间戳处理,不必额外再写转换函数。",
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": "默认起始时间,支持特定时间范围(\"now-1h\", \"now-1d\", \"now/d\", \"now-7d\", \"now-30d\"),注意当通过 \\${query.from=now/d} 赋默认值给 form 属性时,由于 [placeholder 占位符语法](http://docs.developers.easyops.cn/docs/brick-next/placeholders) 不支持 `/` 的特殊字符解析,所以该值需要用字符串的形式来书写(如 demo 所示)。"
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
- "default": "-",
11365
- "description": "默认结束时间"
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
- "default": "-",
11386
- "description": "当 type 为 custom 时,配置定制的时间范围,目前暂支持如下时间点,当 type 为 default 时,该配置项无效"
11751
+ "description": "当 type 为 custom 时,配置定制的时间范围,目前暂支持如下时间点,当 type 为 default 时,该配置项无效",
11752
+ "group": "basic"
11387
11753
  },
11388
11754
  {
11389
11755
  "name": "placement",
@@ -11391,23 +11757,22 @@
11391
11757
  "required": "false",
11392
11758
  "default": "\"bottom\"",
11393
11759
  "description": "弹出位置",
11394
- "group": "advanced"
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": "`ms`",
11766
+ "default": "\"ms\"",
11401
11767
  "description": "指定时间戳的单位,目前支持秒和毫秒,默认为毫秒,切换为秒时,url 和事件传出的时间戳都会调整成以秒为单位",
11402
- "group": "advanced"
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": "advanced"
11775
+ "group": "other"
11411
11776
  }
11412
11777
  ],
11413
11778
  "events": [
@@ -11427,7 +11792,15 @@
11427
11792
  "description": "选择当前时间,与 `datetime.selected` 不同的是虽然还是区分时间戳和时间段两种类型,但是调整了输出字段格式, 这样更利于某些监控场景的使用和编排"
11428
11793
  }
11429
11794
  ],
11430
- "interface": []
11795
+ "interface": [
11796
+ {
11797
+ "name": "TooltipPlacement",
11798
+ "typeParameter": null,
11799
+ "kind": "type",
11800
+ "description": "",
11801
+ "type": "\"top\" | \"left\" | \"right\" | \"bottom\" | \"topLeft\" | \"topRight\" | \"bottomLeft\" | \"bottomRight\" | \"leftTop\" | \"leftBottom\" | \"rightTop\" | \"rightBottom\""
11802
+ }
11803
+ ]
11431
11804
  }
11432
11805
  },
11433
11806
  {
@@ -11449,26 +11822,31 @@
11449
11822
  },
11450
11823
  "conf": [
11451
11824
  {
11825
+ "description": {
11826
+ "title": "单选示例"
11827
+ },
11452
11828
  "brick": "presentational-bricks.dropdown-select",
11453
11829
  "properties": {
11454
- "dataSource": [
11830
+ "options": [
11455
11831
  {
11456
11832
  "label": "应用1",
11457
- "value": "132b4a",
11458
- "desc": "作为测试用"
11833
+ "value": "aaaa",
11834
+ "content": "描述1"
11459
11835
  },
11460
11836
  {
11461
11837
  "label": "应用2",
11462
- "value": "43bca6",
11463
- "desc": "记录相关修改信息"
11838
+ "value": "bbbb",
11839
+ "content": "描述2"
11840
+ },
11841
+ {
11842
+ "label": "应用3",
11843
+ "value": "cccc",
11844
+ "content": "描述3"
11464
11845
  }
11465
11846
  ],
11466
- "value": "43bca6",
11467
- "label": "#{item.label}",
11468
- "placeholder": "placeholder",
11469
- "optionTitle": "#{item.label}",
11470
- "optionContent": "#{item.desc}",
11471
- "valuePath": "item.value"
11847
+ "placeholder": "请选择",
11848
+ "value": "aaaa",
11849
+ "labelFontSize": "16px"
11472
11850
  },
11473
11851
  "events": {
11474
11852
  "select.change": {
@@ -11477,26 +11855,36 @@
11477
11855
  }
11478
11856
  },
11479
11857
  {
11858
+ "description": {
11859
+ "title": "多选示例"
11860
+ },
11480
11861
  "brick": "presentational-bricks.dropdown-select",
11481
11862
  "properties": {
11482
- "dataSource": [
11863
+ "options": [
11483
11864
  {
11484
- "label": "应用3",
11485
- "value": "132b4a",
11486
- "desc": "作为开发用"
11865
+ "label": "应用1",
11866
+ "value": "aaaa",
11867
+ "content": "描述1"
11487
11868
  },
11488
11869
  {
11489
- "label": "应用4",
11490
- "value": "43bca6",
11491
- "desc": "记录相关创建信息"
11870
+ "label": "应用2",
11871
+ "value": "bbbb",
11872
+ "content": "描述2"
11873
+ },
11874
+ {
11875
+ "label": "应用3",
11876
+ "value": "cccc",
11877
+ "content": "描述3"
11492
11878
  }
11493
11879
  ],
11494
- "value": "应用4",
11495
- "label": "#{item.label}",
11496
- "placeholder": "placeholder",
11497
- "optionTitle": "#{item.label}",
11498
- "optionContent": "#{item.desc}",
11499
- "valuePath": "item.label"
11880
+ "value": "bbbb",
11881
+ "placeholder": "请选择",
11882
+ "labelFontSize": "14px",
11883
+ "multipleSelect": true,
11884
+ "selectedKeys": [
11885
+ "aaaa",
11886
+ "bbbb"
11887
+ ]
11500
11888
  },
11501
11889
  "events": {
11502
11890
  "select.change": {
@@ -11524,150 +11912,162 @@
11524
11912
  "name": "options",
11525
11913
  "type": "Option[]",
11526
11914
  "required": "false",
11527
- "default": "-",
11528
- "description": "选项列表,不能与 dataSource + label + optionTitle + optionContent + valuePath 同时使用"
11915
+ "description": "选项列表,不能与 dataSource + label + optionTitle + optionContent + valuePath 同时使用",
11916
+ "group": "basic"
11529
11917
  },
11530
11918
  {
11531
11919
  "name": "dataSource",
11532
11920
  "type": "any[]",
11533
11921
  "required": "false",
11534
11922
  "default": "[]",
11535
- "description": "数据源"
11923
+ "description": "数据源",
11924
+ "group": "other",
11925
+ "deprecated": true
11536
11926
  },
11537
11927
  {
11538
11928
  "name": "value",
11539
- "type": "any",
11929
+ "type": "any[]",
11540
11930
  "required": "false",
11541
- "default": "-",
11542
- "description": "选中项的值,跟 `valuePath` 搭配使用,根据指定的字段路径与 value 的值得出当前选中项"
11931
+ "description": "选中项的值,跟 `valuePath` 搭配使用,根据指定的字段路径与 value 的值得出当前选中项",
11932
+ "group": "basic"
11543
11933
  },
11544
11934
  {
11545
11935
  "name": "label",
11546
11936
  "type": "string",
11547
11937
  "required": "false",
11548
11938
  "default": "使用 optionTitle 的值",
11549
- "description": "选中项显示的 label,支持模板替换,替换上下文为当前项 `item` 使用时需要带上 item 前缀 `#{item.xxx}`"
11939
+ "description": "选中项显示的 label,支持模板替换,替换上下文为当前项 `item` 使用时需要带上 item 前缀 `#{item.xxx}`",
11940
+ "group": "other",
11941
+ "deprecated": true
11942
+ },
11943
+ {
11944
+ "name": "disabled",
11945
+ "type": "boolean",
11946
+ "required": "false",
11947
+ "default": "false",
11948
+ "description": "是否禁用",
11949
+ "group": "basic"
11950
+ },
11951
+ {
11952
+ "name": "heightFix",
11953
+ "type": "boolean",
11954
+ "required": "false",
11955
+ "default": "false",
11956
+ "description": "单选时,下拉内容区高度是否固定",
11957
+ "group": "basic"
11958
+ },
11959
+ {
11960
+ "name": "buttonIcon",
11961
+ "type": "MenuIcon",
11962
+ "required": "false",
11963
+ "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)",
11964
+ "group": "basic"
11965
+ },
11966
+ {
11967
+ "name": "dropdownButtonType",
11968
+ "type": "\"default\" | \"shape\"",
11969
+ "required": "false",
11970
+ "default": "\"default\"",
11971
+ "description": "设置下拉选择器按钮样式",
11972
+ "group": "ui"
11550
11973
  },
11551
11974
  {
11552
11975
  "name": "labelFontSize",
11553
11976
  "type": "string",
11554
11977
  "required": "false",
11555
- "default": "-",
11556
- "description": "label 的 fontSize"
11978
+ "description": "label 的 fontSize",
11979
+ "group": "ui"
11557
11980
  },
11558
11981
  {
11559
11982
  "name": "placeholder",
11560
11983
  "type": "string",
11561
11984
  "required": "false",
11562
- "default": "-",
11563
- "description": "placeholder, 当没有当前项选中时显示"
11985
+ "description": "placeholder, 当没有当前项选中时显示",
11986
+ "group": "basic"
11564
11987
  },
11565
11988
  {
11566
11989
  "name": "optionTitle",
11567
11990
  "type": "string",
11568
11991
  "required": "false",
11569
11992
  "default": "#{item}",
11570
- "description": "选项的标题,支持模板替换,使用跟 label 字段一样"
11993
+ "description": "选项的标题,支持模板替换,使用跟 label 字段一样",
11994
+ "group": "other",
11995
+ "deprecated": true
11571
11996
  },
11572
11997
  {
11573
11998
  "name": "optionContent",
11574
11999
  "type": "string",
11575
12000
  "required": "false",
11576
- "default": "-",
11577
- "description": "选项的内容,支持模板替换,使用跟 label 字段一样"
12001
+ "description": "选项的内容,支持模板替换,使用跟 label 字段一样",
12002
+ "group": "other",
12003
+ "deprecated": true
11578
12004
  },
11579
12005
  {
11580
12006
  "name": "valuePath",
11581
12007
  "type": "string",
11582
12008
  "required": "false",
11583
12009
  "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": "多选的默认选中项"
12010
+ "description": "依据当前项 `item`,指定选项值的 path",
12011
+ "group": "other",
12012
+ "deprecated": true
11599
12013
  },
11600
12014
  {
11601
12015
  "name": "multipleSelect",
11602
12016
  "type": "boolean",
11603
12017
  "required": "false",
11604
12018
  "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": "提示构件",
12019
+ "description": "是否支持多选,支持多选时,单选的value属性失效",
11620
12020
  "group": "basic"
11621
12021
  },
11622
12022
  {
11623
- "name": "disabled",
11624
- "type": "boolean",
12023
+ "name": "selectedKeys",
12024
+ "type": "string[]",
11625
12025
  "required": "false",
11626
- "default": "false",
11627
- "description": "是否禁用"
12026
+ "default": "[]",
12027
+ "description": "多选的选中项",
12028
+ "group": "basic"
11628
12029
  },
11629
12030
  {
11630
- "name": "heightFix",
11631
- "type": "boolean",
12031
+ "name": "selectTipText",
12032
+ "type": "string",
11632
12033
  "required": "false",
11633
- "default": "false",
11634
- "description": "单选时,下拉内容区高度是否固定"
12034
+ "default": "-",
12035
+ "description": "下拉框提示信息"
11635
12036
  },
11636
12037
  {
11637
- "name": "buttonIcon",
11638
- "type": "MenuIcon",
11639
- "required": "false",
11640
- "default": "-",
11641
- "description": "按钮 icon,支持[icon 图标库](developers/icon),可直接复制图标图标的配置(antd、fa 及 easyops 三种库都支持),也可只取 icon 字段的值(仅支持 antd 库)。配置{ \"lib\": \"antd\", \"icon\": \"edit\" }与 \"edit\"等价",
11642
- "group": "basic"
12038
+ "name": "selectBoxStyle",
12039
+ "type": "CSSProperties",
12040
+ "required": "false",
12041
+ "description": "下拉框样式"
11643
12042
  },
11644
12043
  {
11645
- "name": "multipleLabel",
11646
- "type": "string",
12044
+ "name": "defaultSelectedKeys",
12045
+ "type": "string[]",
11647
12046
  "required": "false",
11648
- "default": "-",
11649
- "description": "多选时,当前label仅支持显示从构件外部传入,multipleLabel属性仅在dropdownButtonType为multiple时生效"
12047
+ "default": "[]",
12048
+ "description": "多选的默认选中项",
12049
+ "group": "basic"
11650
12050
  },
11651
12051
  {
11652
- "name": "selectTipText",
11653
- "type": "string",
12052
+ "name": "minSelectedItemLength",
12053
+ "type": "number",
11654
12054
  "required": "false",
11655
- "default": "-",
11656
- "description": "下拉框提示信息"
12055
+ "description": "最小选择数量(多选)",
12056
+ "group": "basic"
11657
12057
  },
11658
12058
  {
11659
- "name": "selectBoxStyle",
12059
+ "name": "multipleLabel",
11660
12060
  "type": "string",
11661
12061
  "required": "false",
11662
- "default": "-",
11663
- "description": "下拉框样式"
12062
+ "description": "多选时,当前label仅支持显示从构件外部传入,multipleLabel属性仅在dropdownButtonType为multiple时生效",
12063
+ "group": "basic"
11664
12064
  },
11665
12065
  {
11666
- "name": "dropdownButtonType",
11667
- "type": "\"default\" | \"shape\"",
12066
+ "name": "tipBrick",
12067
+ "type": "{ useBrick: UseBrickConf; }",
11668
12068
  "required": "false",
11669
- "default": "\"default\"",
11670
- "description": "设置下拉选择器按钮样式"
12069
+ "description": "提示构件",
12070
+ "group": "other"
11671
12071
  }
11672
12072
  ],
11673
12073
  "events": [
@@ -12758,83 +13158,83 @@
12758
13158
  {
12759
13159
  "name": "imgSrc",
12760
13160
  "type": "string",
12761
- "default": "-",
12762
13161
  "required": "",
13162
+ "default": "-",
12763
13163
  "description": "图片地址"
12764
13164
  },
12765
13165
  {
12766
13166
  "name": "preview",
12767
13167
  "type": "boolean",
12768
- "default": "true",
12769
13168
  "required": "",
13169
+ "default": "true",
12770
13170
  "description": "是否开启预览"
12771
13171
  },
12772
13172
  {
12773
13173
  "name": "imgHeight",
12774
13174
  "type": "string | number",
12775
- "default": "-",
12776
13175
  "required": "",
13176
+ "default": "-",
12777
13177
  "description": "图像高度"
12778
13178
  },
12779
13179
  {
12780
13180
  "name": "imgWidth",
12781
13181
  "type": "string | number",
12782
- "default": "-",
12783
13182
  "required": "",
13183
+ "default": "-",
12784
13184
  "description": "图像宽度"
12785
13185
  },
12786
13186
  {
12787
13187
  "name": "dataSource",
12788
13188
  "type": "Record<string, any>",
12789
- "default": "-",
12790
13189
  "required": "-",
13190
+ "default": "-",
12791
13191
  "description": "数据源,搭配 extra 使用时会把该数据传入到自定义构件中使用"
12792
13192
  },
12793
13193
  {
12794
13194
  "name": "placeholder",
12795
13195
  "type": "string",
12796
- "default": "-",
12797
13196
  "required": "",
13197
+ "default": "-",
12798
13198
  "description": "加载占位, 为 true 时使用默认占位",
12799
13199
  "group": "advanced"
12800
13200
  },
12801
13201
  {
12802
13202
  "name": "imgAlt",
12803
13203
  "type": "string",
12804
- "default": "-",
12805
13204
  "required": "",
13205
+ "default": "-",
12806
13206
  "description": "图像描述",
12807
13207
  "group": "advanced"
12808
13208
  },
12809
13209
  {
12810
13210
  "name": "fallback",
12811
13211
  "type": "string",
12812
- "default": "-",
12813
13212
  "required": "",
13213
+ "default": "-",
12814
13214
  "description": "加载失败容错地址",
12815
13215
  "group": "advanced"
12816
13216
  },
12817
13217
  {
12818
13218
  "name": "extra",
12819
13219
  "type": "UseBrickConf",
12820
- "default": "-",
12821
13220
  "required": "-",
13221
+ "default": "-",
12822
13222
  "description": "支持在图片下方增加自定义构件",
12823
13223
  "group": "advanced"
12824
13224
  },
12825
13225
  {
12826
13226
  "name": "extraContainerStyle",
12827
13227
  "type": "Record<string, any>",
12828
- "default": "-",
12829
13228
  "required": "-",
13229
+ "default": "-",
12830
13230
  "description": "包裹自定义构件容器的样式",
12831
13231
  "group": "advanced"
12832
13232
  },
12833
13233
  {
12834
13234
  "name": "visible",
12835
13235
  "type": "boolean",
12836
- "default": "-",
12837
13236
  "required": "",
13237
+ "default": "-",
12838
13238
  "description": "是否显示预览",
12839
13239
  "group": "advanced"
12840
13240
  }
@@ -13616,8 +14016,8 @@
13616
14016
  {
13617
14017
  "name": "wrapperConfig",
13618
14018
  "type": "BrickWrapperConfig",
13619
- "default": "-",
13620
14019
  "required": "false",
14020
+ "default": "-",
13621
14021
  "description": "设置容器空状态时显示`empty`构件属性",
13622
14022
  "group": "advanced"
13623
14023
  },
@@ -14696,7 +15096,7 @@
14696
15096
  },
14697
15097
  {
14698
15098
  "name": "fields",
14699
- "type": "object",
15099
+ "type": "{ value?: string; }",
14700
15100
  "required": "false",
14701
15101
  "description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
14702
15102
  "deprecated": true,
@@ -14902,7 +15302,8 @@
14902
15302
  "type": "{ value?: string; }",
14903
15303
  "required": "false",
14904
15304
  "default": "-",
14905
- "description": "",
15305
+ "description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时 value",
15306
+ "deprecated": true,
14906
15307
  "group": "advanced"
14907
15308
  },
14908
15309
  {
@@ -16037,50 +16438,51 @@
16037
16438
  "change": " 新增构件 `presentational-bricks.brick-illustration`"
16038
16439
  }
16039
16440
  ],
16040
- "memo": ">更多类型插画请移至[插画库](/developers/illustrations)",
16441
+ "memo": ">更多类型插画请移至[插画库](/next/developers/illustrations)",
16041
16442
  "dockind": "brick",
16042
16443
  "properties": [
16043
16444
  {
16044
16445
  "name": "name",
16045
16446
  "type": "string",
16046
- "default": "-",
16047
16447
  "required": "true",
16048
16448
  "description": "插画名称"
16049
16449
  },
16050
16450
  {
16051
16451
  "name": "category",
16052
16452
  "type": "string",
16053
- "default": "`default`",
16054
16453
  "required": "true",
16055
- "description": "插画类型"
16454
+ "default": "\"default\"",
16455
+ "description": "插画类型",
16456
+ "group": "basic"
16056
16457
  },
16057
16458
  {
16058
16459
  "name": "header",
16059
16460
  "type": "IllustrationHeader",
16060
- "default": "-",
16061
- "required": "-",
16062
- "description": "插画头部内容"
16461
+ "required": "false",
16462
+ "description": "插画头部内容",
16463
+ "group": "other"
16063
16464
  },
16064
16465
  {
16065
16466
  "name": "footer",
16066
16467
  "type": "IllustrationFooter",
16067
- "default": "-",
16068
16468
  "required": "false",
16069
- "description": "插画底部内容"
16469
+ "description": "插画底部内容",
16470
+ "group": "other"
16070
16471
  },
16071
16472
  {
16072
16473
  "name": "mode",
16073
16474
  "type": "IllustrationMode",
16074
- "default": "-",
16075
- "required": "-",
16076
- "description": "插画模式"
16475
+ "required": "false",
16476
+ "description": "插画模式",
16477
+ "group": "other",
16478
+ "deprecated": true
16077
16479
  },
16078
16480
  {
16079
16481
  "name": "imageStyle",
16080
16482
  "type": "CSSProperties",
16081
- "default": "-",
16082
- "required": "-",
16083
- "description": "图片样式"
16483
+ "required": "false",
16484
+ "description": "图片样式",
16485
+ "group": "ui"
16084
16486
  }
16085
16487
  ],
16086
16488
  "interface": [
@@ -16917,18 +17319,264 @@
16917
17319
  "children": [
16918
17320
  {
16919
17321
  "name": "extra",
16920
- "type": "string | object",
17322
+ "type": "string | { useBrick?: UseBrickConf; }",
16921
17323
  "required": false,
16922
17324
  "description": "表格头部右边内容显示区域"
16923
17325
  },
16924
17326
  {
16925
17327
  "name": "title",
16926
- "type": "string | object",
17328
+ "type": "string | { useBrick?: UseBrickConf; }",
16927
17329
  "required": true,
16928
17330
  "description": "表格头部左边内容显示区域"
16929
17331
  }
16930
17332
  ],
16931
17333
  "indexSignature": []
17334
+ },
17335
+ {
17336
+ "name": "CustomColumn",
17337
+ "typeParameter": null,
17338
+ "kind": "interface",
17339
+ "extendedTypes": [
17340
+ {
17341
+ "type": "reference",
17342
+ "typeArguments": [
17343
+ {
17344
+ "type": "reference",
17345
+ "typeArguments": [
17346
+ {
17347
+ "type": "intrinsic",
17348
+ "name": "string"
17349
+ },
17350
+ {
17351
+ "type": "intrinsic",
17352
+ "name": "any"
17353
+ }
17354
+ ],
17355
+ "name": "Record"
17356
+ }
17357
+ ],
17358
+ "name": "ColumnProps"
17359
+ }
17360
+ ],
17361
+ "children": [
17362
+ {
17363
+ "name": "align",
17364
+ "type": "AlignType",
17365
+ "required": false,
17366
+ "description": ""
17367
+ },
17368
+ {
17369
+ "name": "children",
17370
+ "type": "null",
17371
+ "required": false,
17372
+ "description": ""
17373
+ },
17374
+ {
17375
+ "name": "className",
17376
+ "type": "string",
17377
+ "required": false,
17378
+ "description": ""
17379
+ },
17380
+ {
17381
+ "name": "colSpan",
17382
+ "type": "number",
17383
+ "required": false,
17384
+ "description": ""
17385
+ },
17386
+ {
17387
+ "name": "dataIndex",
17388
+ "type": "DataIndex",
17389
+ "required": false,
17390
+ "description": ""
17391
+ },
17392
+ {
17393
+ "name": "defaultFilteredValue",
17394
+ "type": "Key[] | null",
17395
+ "required": false,
17396
+ "description": ""
17397
+ },
17398
+ {
17399
+ "name": "defaultSortOrder",
17400
+ "type": "SortOrder",
17401
+ "required": false,
17402
+ "description": ""
17403
+ },
17404
+ {
17405
+ "name": "ellipsis",
17406
+ "type": "CellEllipsisType",
17407
+ "required": false,
17408
+ "description": ""
17409
+ },
17410
+ {
17411
+ "name": "filterDropdown",
17412
+ "type": "React.ReactNode | { }",
17413
+ "required": false,
17414
+ "description": ""
17415
+ },
17416
+ {
17417
+ "name": "filterDropdownVisible",
17418
+ "type": "boolean",
17419
+ "required": false,
17420
+ "description": ""
17421
+ },
17422
+ {
17423
+ "name": "filterIcon",
17424
+ "type": "React.ReactNode | { }",
17425
+ "required": false,
17426
+ "description": ""
17427
+ },
17428
+ {
17429
+ "name": "filterMultiple",
17430
+ "type": "boolean",
17431
+ "required": false,
17432
+ "description": ""
17433
+ },
17434
+ {
17435
+ "name": "filtered",
17436
+ "type": "boolean",
17437
+ "required": false,
17438
+ "description": ""
17439
+ },
17440
+ {
17441
+ "name": "filteredValue",
17442
+ "type": "Key[] | null",
17443
+ "required": false,
17444
+ "description": ""
17445
+ },
17446
+ {
17447
+ "name": "filters",
17448
+ "type": "ColumnFilterItem[]",
17449
+ "required": false,
17450
+ "description": ""
17451
+ },
17452
+ {
17453
+ "name": "fixed",
17454
+ "type": "FixedType",
17455
+ "required": false,
17456
+ "description": ""
17457
+ },
17458
+ {
17459
+ "name": "headerBrick",
17460
+ "type": "{ useBrick: UseBrickConf; }",
17461
+ "required": false,
17462
+ "description": "支持为某列的表头自定义展示构件,可通过 DATA.title 获取标题文本"
17463
+ },
17464
+ {
17465
+ "name": "key",
17466
+ "type": "Key",
17467
+ "required": false,
17468
+ "description": ""
17469
+ },
17470
+ {
17471
+ "name": "onCell",
17472
+ "type": "GetComponentProps<Record<string, any>>",
17473
+ "required": false,
17474
+ "description": ""
17475
+ },
17476
+ {
17477
+ "name": "onCellClick",
17478
+ "type": "{ }",
17479
+ "required": false,
17480
+ "description": ""
17481
+ },
17482
+ {
17483
+ "name": "onFilter",
17484
+ "type": "{ }",
17485
+ "required": false,
17486
+ "description": ""
17487
+ },
17488
+ {
17489
+ "name": "onFilterDropdownVisibleChange",
17490
+ "type": "{ }",
17491
+ "required": false,
17492
+ "description": ""
17493
+ },
17494
+ {
17495
+ "name": "onHeaderCell",
17496
+ "type": "GetComponentProps<>",
17497
+ "required": false,
17498
+ "description": ""
17499
+ },
17500
+ {
17501
+ "name": "render",
17502
+ "type": "{ }",
17503
+ "required": false,
17504
+ "description": ""
17505
+ },
17506
+ {
17507
+ "name": "responsive",
17508
+ "type": "Breakpoint[]",
17509
+ "required": false,
17510
+ "description": ""
17511
+ },
17512
+ {
17513
+ "name": "rowSpan",
17514
+ "type": "number",
17515
+ "required": false,
17516
+ "description": ""
17517
+ },
17518
+ {
17519
+ "name": "shouldCellUpdate",
17520
+ "type": "{ }",
17521
+ "required": false,
17522
+ "description": ""
17523
+ },
17524
+ {
17525
+ "name": "showSorterTooltip",
17526
+ "type": "boolean | TooltipProps",
17527
+ "required": false,
17528
+ "description": ""
17529
+ },
17530
+ {
17531
+ "name": "sortDirections",
17532
+ "type": "SortOrder[]",
17533
+ "required": false,
17534
+ "description": ""
17535
+ },
17536
+ {
17537
+ "name": "sortOrder",
17538
+ "type": "SortOrder",
17539
+ "required": false,
17540
+ "description": ""
17541
+ },
17542
+ {
17543
+ "name": "sorter",
17544
+ "type": "boolean | CompareFn<Record<string, any>> | { compare?: CompareFn<Record<string, any>>; multiple?: number; }",
17545
+ "required": false,
17546
+ "description": ""
17547
+ },
17548
+ {
17549
+ "name": "title",
17550
+ "type": "ColumnTitle<Record<string, any>>",
17551
+ "required": false,
17552
+ "description": ""
17553
+ },
17554
+ {
17555
+ "name": "useBrick",
17556
+ "type": "UseBrickConf",
17557
+ "required": false,
17558
+ "description": "支持为某列自定义展示构件"
17559
+ },
17560
+ {
17561
+ "name": "valueSuffix",
17562
+ "type": "string",
17563
+ "required": false,
17564
+ "description": "字段的值展示时的后缀"
17565
+ },
17566
+ {
17567
+ "name": "verticalAlign",
17568
+ "type": "\"top\" | \"bottom\"",
17569
+ "required": false,
17570
+ "description": "单元格内元素的垂直对齐方式"
17571
+ },
17572
+ {
17573
+ "name": "width",
17574
+ "type": "number | string",
17575
+ "required": false,
17576
+ "description": ""
17577
+ }
17578
+ ],
17579
+ "indexSignature": []
16932
17580
  }
16933
17581
  ]
16934
17582
  }
@@ -17270,6 +17918,7 @@
17270
17918
  {
17271
17919
  "name": "dataSource",
17272
17920
  "type": "unknown",
17921
+ "required": true,
17273
17922
  "description": "数据源"
17274
17923
  }
17275
17924
  ],
@@ -17385,54 +18034,55 @@
17385
18034
  {
17386
18035
  "name": "dataSource",
17387
18036
  "type": "any[]",
17388
- "default": "",
17389
18037
  "required": "true",
18038
+ "default": "",
17390
18039
  "description": "数据源,其中的数据将会被渲染到左边一栏中,targetKeys 中指定的除外,必须有key字段作为唯一标识"
17391
18040
  },
17392
18041
  {
17393
18042
  "name": "columns",
17394
18043
  "type": "ColumnsType<Record<string, any>>",
17395
- "default": "",
17396
18044
  "required": "true",
18045
+ "default": "",
17397
18046
  "description": "表格column配置"
17398
18047
  },
17399
18048
  {
17400
18049
  "name": "targetKeys",
17401
18050
  "type": "string[]",
17402
- "default": "",
17403
18051
  "required": "false",
18052
+ "default": "",
17404
18053
  "description": "显示在右栏数据的 key 集合"
17405
18054
  },
17406
18055
  {
17407
18056
  "name": "selectedKeys",
17408
18057
  "type": "string[]",
17409
- "default": "",
17410
18058
  "required": "false",
18059
+ "default": "",
17411
18060
  "description": "设置哪些项被选中"
17412
18061
  },
17413
18062
  {
17414
18063
  "name": "disabled",
17415
18064
  "type": "boolean",
17416
- "default": "`false`",
17417
18065
  "required": "false",
18066
+ "default": "`false`",
17418
18067
  "description": "是否禁用"
17419
18068
  },
17420
18069
  {
17421
18070
  "name": "dragSortable",
17422
- "type": "boolean"
18071
+ "type": "boolean",
18072
+ "required": true
17423
18073
  },
17424
18074
  {
17425
18075
  "name": "sortTitle",
17426
18076
  "type": "string",
17427
- "default": "`sort`",
17428
18077
  "required": "false",
18078
+ "default": "`sort`",
17429
18079
  "description": "支持右栏表格排序时,排序列的title"
17430
18080
  },
17431
18081
  {
17432
18082
  "name": "maxSelected",
17433
18083
  "type": "number",
17434
- "default": "",
17435
18084
  "required": "false",
18085
+ "default": "",
17436
18086
  "description": "最大可选数量,当 dataSource 个数大于该值时,不显示全勾选框"
17437
18087
  },
17438
18088
  {