@pisell/materials 1.0.211 → 1.0.212

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.
@@ -325,7 +325,7 @@ export default {
325
325
  ],
326
326
  },
327
327
  },
328
- initialValue: { title: "标题" },
328
+ initialValue: { title: "标题", width: 250, dataIndex: "" },
329
329
  },
330
330
  },
331
331
  },
@@ -1356,6 +1356,16 @@ export default {
1356
1356
  "VariableSetter",
1357
1357
  ],
1358
1358
  },
1359
+ {
1360
+ name: "dragSort",
1361
+ title: {
1362
+ label: "拖拽排序",
1363
+ tip: "dragSort | 开启拖拽排序",
1364
+ },
1365
+ propType: "bool",
1366
+ setter: "BoolSetter",
1367
+ defaultValue: false,
1368
+ },
1359
1369
  ],
1360
1370
  },
1361
1371
  {
@@ -2114,6 +2124,11 @@ export default {
2114
2124
  template:
2115
2125
  "onChange(pagination,filters,sorter,extra,${extParams}){\n// 表格翻页事件\nconsole.log('onChange', pagination);}",
2116
2126
  },
2127
+ {
2128
+ name: "onSortChange",
2129
+ template:
2130
+ "onSortChange(detail){\n// 表格拖拽排序事件\nconsole.log('detail', detail);}",
2131
+ },
2117
2132
  {
2118
2133
  name: "onValuesChange",
2119
2134
  template: "onValuesChange(changedValues, values){}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.211",
3
+ "version": "1.0.212",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -61,8 +61,8 @@
61
61
  "react-window": "^1.8.10",
62
62
  "react-virtualized-auto-sizer": "^1.0.20",
63
63
  "@pisell/utils": "1.0.23",
64
- "@pisell/date-picker": "1.0.68",
65
- "@pisell/icon": "0.0.8"
64
+ "@pisell/icon": "0.0.8",
65
+ "@pisell/date-picker": "1.0.68"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",