@next-bricks/presentational-bricks 1.245.0 → 1.245.3

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
@@ -16928,5 +16928,188 @@
16928
16928
  ],
16929
16929
  "interface": []
16930
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
+ }
16931
17114
  }
16932
17115
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational-bricks",
3
- "version": "1.245.0",
3
+ "version": "1.245.3",
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": "981abab344c33e560ec3c3997558ac4f8410023e"
58
+ "gitHead": "ef2bbf9a0840da78289648dfab0e81c618525bc8"
59
59
  }