@next-bricks/presentational-bricks 1.244.6 → 1.245.2

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
@@ -449,6 +449,10 @@
449
449
  }
450
450
  },
451
451
  {
452
+ "description": {
453
+ "title": "",
454
+ "message": "本示例额外使用了通过target改变具体构件属性的知识点,具体可查看[设置指定构件属性方式](/next-docs/docs/brick-next/events#custom-handlers-properties)"
455
+ },
452
456
  "brick": "presentational-bricks.brick-alert",
453
457
  "properties": {
454
458
  "id": "pseudoSlot",
@@ -1099,14 +1103,14 @@
1099
1103
  "type": "boolean",
1100
1104
  "required": "false",
1101
1105
  "default": "-",
1102
- "description": "搭配localStorageKey使用,为true时,关闭localStorageKey的url命名空间。"
1106
+ "description": "搭配`localStorageKey`使用,为true时,关闭localStorageKey的url命名空间。"
1103
1107
  },
1104
1108
  {
1105
1109
  "name": "foldDesc",
1106
1110
  "type": "boolean",
1107
1111
  "required": "false",
1108
1112
  "default": "-",
1109
- "description": "描述区折叠模式,仅enableMessageSlottrue时可用",
1113
+ "description": "描述区折叠模式,仅`enableMessageSlot`为true时可用",
1110
1114
  "group": "advanced"
1111
1115
  },
1112
1116
  {
@@ -6176,6 +6180,16 @@
6176
6180
  "name": "presentational-bricks.brick-table",
6177
6181
  "dockind": "brick",
6178
6182
  "description": "当需要对数据进行排序、搜索、分页、自定义操作等复杂行为时",
6183
+ "groupI18n": {
6184
+ "basic": {
6185
+ "en": "Basic",
6186
+ "zh": "常用"
6187
+ },
6188
+ "advanced": {
6189
+ "en": "Advanced",
6190
+ "zh": "高级"
6191
+ }
6192
+ },
6179
6193
  "author": "lynette",
6180
6194
  "slots": null,
6181
6195
  "history": [
@@ -8488,7 +8502,7 @@
8488
8502
  "history": [
8489
8503
  {
8490
8504
  "version": "1.152.0",
8491
- "change": "新属性 `showNickname`"
8505
+ "change": "新属性 `shwNickname`"
8492
8506
  },
8493
8507
  {
8494
8508
  "version": "1.62.0",
@@ -16914,5 +16928,188 @@
16914
16928
  ],
16915
16929
  "interface": []
16916
16930
  }
16931
+ },
16932
+ {
16933
+ "storyId": "presentational-bricks.table-transfer",
16934
+ "category": "layout",
16935
+ "type": "brick",
16936
+ "author": "ann",
16937
+ "text": {
16938
+ "en": "Table Transfer",
16939
+ "zh": "表格穿梭框"
16940
+ },
16941
+ "description": {
16942
+ "en": "table in transfer(support sort by dragging)",
16943
+ "zh": "表格穿梭选择框(支持拖拽排序)"
16944
+ },
16945
+ "icon": {
16946
+ "lib": "fa",
16947
+ "icon": "draw-polygon"
16948
+ },
16949
+ "conf": {
16950
+ "brick": "presentational-bricks.table-transfer",
16951
+ "properties": {
16952
+ "maxSelected": 3,
16953
+ "showSearch": true,
16954
+ "dragSortable": true,
16955
+ "dataSource": [
16956
+ {
16957
+ "key": "host.cpu_util.user",
16958
+ "title": "cpu user",
16959
+ "uselessKey1": "useless key 1",
16960
+ "uselessKey2": "useless key 2"
16961
+ },
16962
+ {
16963
+ "key": "host.cpu_util.system",
16964
+ "title": "cpu system",
16965
+ "uselessKey1": "useless key 1",
16966
+ "uselessKey2": "useless key 2"
16967
+ },
16968
+ {
16969
+ "key": "host.cpu_util.iowait",
16970
+ "title": "io wait",
16971
+ "uselessKey1": "useless key 1",
16972
+ "uselessKey2": "useless key 2"
16973
+ },
16974
+ {
16975
+ "key": "host.disk.total",
16976
+ "title": "disk total",
16977
+ "uselessKey1": "useless key 1",
16978
+ "uselessKey2": "useless key 2"
16979
+ },
16980
+ {
16981
+ "key": "host.network.bytes_in",
16982
+ "title": "bytes in",
16983
+ "uselessKey1": "useless key 1",
16984
+ "uselessKey2": "useless key 2"
16985
+ },
16986
+ {
16987
+ "key": "host.network.bytes_out",
16988
+ "title": "bytes out",
16989
+ "uselessKey1": "useless key 1",
16990
+ "uselessKey2": "useless key 2"
16991
+ }
16992
+ ],
16993
+ "columns": [
16994
+ {
16995
+ "title": "title-left",
16996
+ "key": "title",
16997
+ "dataIndex": "title"
16998
+ },
16999
+ {
17000
+ "title": "uselessKey1",
17001
+ "key": "uselessKey1",
17002
+ "dataIndex": "uselessKey1"
17003
+ }
17004
+ ],
17005
+ "targetKeys": [
17006
+ "host.network.bytes_out",
17007
+ "host.disk.total",
17008
+ "host.network.bytes_in"
17009
+ ]
17010
+ },
17011
+ "events": {
17012
+ "table.transfer.change": {
17013
+ "action": "console.log"
17014
+ },
17015
+ "sort.change": {
17016
+ "action": "console.log"
17017
+ }
17018
+ }
17019
+ },
17020
+ "doc": {
17021
+ "id": "presentational-bricks.table-transfer",
17022
+ "author": "annzhang",
17023
+ "history": [
17024
+ {
17025
+ "version": "1.x.0",
17026
+ "change": " 新增构件 `presentational-bricks.table-transfer`"
17027
+ }
17028
+ ],
17029
+ "dockind": "brick",
17030
+ "properties": [
17031
+ {
17032
+ "name": "dataSource",
17033
+ "type": "any[]",
17034
+ "default": "",
17035
+ "required": "true",
17036
+ "description": "数据源,其中的数据将会被渲染到左边一栏中,targetKeys 中指定的除外,必须有key字段作为唯一标识"
17037
+ },
17038
+ {
17039
+ "name": "columns",
17040
+ "type": "ColumnsType<Record<string, any>>",
17041
+ "default": "",
17042
+ "required": "true",
17043
+ "description": "表格column配置"
17044
+ },
17045
+ {
17046
+ "name": "targetKeys",
17047
+ "type": "string[]",
17048
+ "default": "",
17049
+ "required": "false",
17050
+ "description": "显示在右栏数据的 key 集合"
17051
+ },
17052
+ {
17053
+ "name": "selectedKeys",
17054
+ "type": "string[]",
17055
+ "default": "",
17056
+ "required": "false",
17057
+ "description": "设置哪些项被选中"
17058
+ },
17059
+ {
17060
+ "name": "disabled",
17061
+ "type": "boolean",
17062
+ "default": "`false`",
17063
+ "required": "false",
17064
+ "description": "是否禁用"
17065
+ },
17066
+ {
17067
+ "name": "dragSortable",
17068
+ "type": "boolean"
17069
+ },
17070
+ {
17071
+ "name": "sortTitle",
17072
+ "type": "string",
17073
+ "default": "`sort`",
17074
+ "required": "false",
17075
+ "description": "支持右栏表格排序时,排序列的title"
17076
+ },
17077
+ {
17078
+ "name": "maxSelected",
17079
+ "type": "number",
17080
+ "default": "",
17081
+ "required": "false",
17082
+ "description": "最大可选数量,当 dataSource 个数大于该值时,不显示全勾选框"
17083
+ },
17084
+ {
17085
+ "name": "listStyle",
17086
+ "type": "CSSProperties",
17087
+ "required": "false",
17088
+ "default": "-",
17089
+ "description": "两个穿梭框的自定义样式,常用来设置宽高"
17090
+ },
17091
+ {
17092
+ "name": "titles",
17093
+ "type": "[string, string]",
17094
+ "required": "false",
17095
+ "default": "-",
17096
+ "description": "标题集合,顺序从左至右",
17097
+ "group": "advanced"
17098
+ }
17099
+ ],
17100
+ "events": [
17101
+ {
17102
+ "type": "sort.change",
17103
+ "detail": "",
17104
+ "description": "右栏表格拖拽排序发出的事件,event.detail是右栏表格排序后的key数组"
17105
+ },
17106
+ {
17107
+ "type": "table.transfer.change",
17108
+ "detail": "",
17109
+ "description": "当选项发生转移时发出的事件,event.detail是\t右侧框数据的 key 集合"
17110
+ }
17111
+ ],
17112
+ "interface": []
17113
+ }
16917
17114
  }
16918
17115
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational-bricks",
3
- "version": "1.244.6",
3
+ "version": "1.245.2",
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",
@@ -55,5 +55,5 @@
55
55
  "@next-dll/ace": "*",
56
56
  "@next-dll/react-dnd": "*"
57
57
  },
58
- "gitHead": "d9e02df953fd759d4a9f382f57278dad762e48f4"
58
+ "gitHead": "ed4ff2ef501d9e567b7317cbcf5c8749a8202ed2"
59
59
  }