@next-bricks/presentational-bricks 1.222.2 → 1.224.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
@@ -10869,7 +10869,7 @@
10869
10869
  "type": "string",
10870
10870
  "default": "custom",
10871
10871
  "required": "false",
10872
- "description": "构件样式,支持普通(`custom`)和输入框(`input`)样式(见示例)"
10872
+ "description": "构件样式,支持普通(`custom`)和输入框(`input`)和 中间省略(`text`) 样式(见示例)"
10873
10873
  },
10874
10874
  {
10875
10875
  "name": "dataSource",
@@ -11390,6 +11390,14 @@
11390
11390
  "default": "false",
11391
11391
  "description": "是否支持多选,支持多选时,单选的value属性失效"
11392
11392
  },
11393
+ {
11394
+ "name": "tipBrick",
11395
+ "type": "{ userBrick: UseBrickConf }",
11396
+ "required": "false",
11397
+ "default": "-",
11398
+ "description": "提示构件",
11399
+ "group": "basic"
11400
+ },
11393
11401
  {
11394
11402
  "name": "disabled",
11395
11403
  "type": "boolean",
@@ -16005,7 +16013,7 @@
16005
16013
  }
16006
16014
  },
16007
16015
  {
16008
- "storyId": "presentational-bricks.trend-table",
16016
+ "storyId": "presentational-bricks.rank-table",
16009
16017
  "category": "general-tables",
16010
16018
  "type": "brick",
16011
16019
  "author": "Alex",
@@ -16298,113 +16306,7 @@
16298
16306
  }
16299
16307
  }
16300
16308
  ],
16301
- "doc": {
16302
- "id": "presentational-bricks.trend-table",
16303
- "author": "alexchen",
16304
- "history": [
16305
- {
16306
- "version": "1.x.0",
16307
- "change": " 新增构件 `presentational-bricks.trend-table`"
16308
- }
16309
- ],
16310
- "dockind": "brick",
16311
- "memo": "## dataSource 表格数据源\n| property | type | required | default | description |\n| ------------- | -------------- | -------- | ------- | -------------------------------------------------- |\n| dataSource | any | - | - | 数据源,通过 useResolves 从后台接口获取或者直接在 storyboard 中配置 |\n\n## columns 表格列配置\n| property | type | required | default | description |\n| ------------- | -------------- | -------- | ------- | -------------------------------------------------- |\n| columns | CustomColumn[] | - | - | 扩展自 ant-design 的 Column 相关配置项,具体查阅:[https://ant.design/components/table-cn/#Column](https://ant.design/components/table-cn/#Column) |\n\n### CustomColumn\n| property | type | required | default | description |\n| -------------------- | --------------------- | -------- | ------- | -------------------------------------------------------------- |\n| valueSuffix | string | - | - | 字段的值展示时的后缀 |\n| useBrick | UseBrickConf | - | - | 支持为某列自定义展示构件 |\n| titleUseBrick | UseBrickConf | - | - | 支持为某列的标题自定义展示构件,可通过 DATA.title 获取标题文本 |\n| verticalAlign | `top` | `bottom` | - | - | 单元格内元素的垂直对齐方式 |\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 | - | - | 属性数据转换来自数据源的哪个字段,不填则为整个数据 |",
16312
- "properties": [
16313
- {
16314
- "name": "header",
16315
- "type": "Header",
16316
- "required": "false",
16317
- "default": "-",
16318
- "description": "表格表头,如不填将不会显示表头"
16319
- },
16320
- {
16321
- "name": "columns",
16322
- "type": "CustomColumn[]",
16323
- "required": "false",
16324
- "default": "-",
16325
- "description": "扩展自 ant-design 的 Column 相关配置项,具体查阅:<a href=\"https://ant.design/components/table-cn/#Column\" target=\"_blank\">https://ant.design/components/table-cn/#Column</a>"
16326
- },
16327
- {
16328
- "name": "dataSource",
16329
- "type": "any",
16330
- "required": "false",
16331
- "default": "-",
16332
- "description": "数据源,通过 useResolves 从后台接口获取或者直接在 storyboard 中配置"
16333
- },
16334
- {
16335
- "name": "configProps",
16336
- "type": "object",
16337
- "required": "false",
16338
- "default": "-",
16339
- "description": "ant-design 的 Table 相关配置项,具体查阅:[https://ant.design/components/table-cn/#Table](https://ant.design/components/table-cn/#Table),其中分页配置和行选择配值在构件中设置了常用的默认配置,也可自行覆盖,具体描述见下表",
16340
- "group": "advanced"
16341
- },
16342
- {
16343
- "name": "rowKey",
16344
- "type": "string",
16345
- "required": "false",
16346
- "default": "-",
16347
- "description": "指定每一行的 key,不指定则默认为索引 index。强烈建议设置该属性,否则在某些情况下可能行为不如预期。"
16348
- },
16349
- {
16350
- "name": "scrollConfigs",
16351
- "type": "{\n x?: string | number | true;\n y?: number | string;\n} & {\n scrollToFirstRowOnChange?: boolean;\n}",
16352
- "required": "false",
16353
- "default": "{ x: true }",
16354
- "description": "表格是否可滚动,也可以指定滚动区域的宽、高,配置项。详见 https://ant.design/components/table-cn/#scroll",
16355
- "group": "advanced"
16356
- },
16357
- {
16358
- "name": "headerTitle",
16359
- "type": "Header",
16360
- "required": "false",
16361
- "default": "-",
16362
- "description": "表格头部左边内容显示区域,如果设置了`header`,会覆盖设置其`title`参数"
16363
- },
16364
- {
16365
- "name": "hiddenColumns",
16366
- "type": "(string|number)[]",
16367
- "required": "false",
16368
- "default": "-",
16369
- "description": "隐藏相应列(输入对应的 dataIndex 或者 key 即可)"
16370
- },
16371
- {
16372
- "name": "showCard",
16373
- "type": "boolean",
16374
- "required": "false",
16375
- "default": "true",
16376
- "description": "是否显示外层卡片"
16377
- },
16378
- {
16379
- "name": "size",
16380
- "type": "\"default\"|\"small\"",
16381
- "required": "false",
16382
- "default": "default",
16383
- "description": "根据容器的不同调整样式"
16384
- }
16385
- ],
16386
- "interface": [
16387
- {
16388
- "name": "Header",
16389
- "typeParameter": null,
16390
- "kind": "interface",
16391
- "children": [
16392
- {
16393
- "name": "extra",
16394
- "type": "string | object",
16395
- "required": false,
16396
- "description": "表格头部右边内容显示区域"
16397
- },
16398
- {
16399
- "name": "title",
16400
- "type": "string | object",
16401
- "required": true,
16402
- "description": "表格头部左边内容显示区域"
16403
- }
16404
- ]
16405
- }
16406
- ]
16407
- }
16309
+ "doc": null
16408
16310
  },
16409
16311
  {
16410
16312
  "storyId": "presentational-bricks.dropdown-button",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational-bricks",
3
- "version": "1.222.2",
3
+ "version": "1.224.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "https://github.com/easyops-cn/next-basics/tree/master/bricks/presentational-bricks",
6
6
  "license": "GPL-3.0",
@@ -36,7 +36,7 @@
36
36
  "@next-libs/crontab": "^2.0.3",
37
37
  "@next-libs/datetime": "^2.0.2",
38
38
  "@next-libs/datetime-components": "^3.0.2",
39
- "@next-libs/forms": "^3.2.4",
39
+ "@next-libs/forms": "^3.2.5",
40
40
  "@next-sdk/cmdb-sdk": "^2.1.1",
41
41
  "@next-sdk/monitor-sdk": "^2.1.1",
42
42
  "@next-sdk/object-store-sdk": "^2.1.1",
@@ -55,5 +55,5 @@
55
55
  "@next-dll/ace": "*",
56
56
  "@next-dll/react-dnd": "*"
57
57
  },
58
- "gitHead": "1f08ba90aa00a2504eab58e76325b55047bf5f91"
58
+ "gitHead": "e9144f438b52151d10c1766addf182da786d2500"
59
59
  }