@pisell/materials 1.0.263 → 1.0.265

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.
@@ -19,4 +19,5 @@
19
19
 
20
20
  .materials-grid-table-wrap {
21
21
  flex: 1;
22
+ overflow: hidden;
22
23
  }
@@ -4,7 +4,5 @@
4
4
  }
5
5
 
6
6
  .materials-grid-table-cell {
7
- height: 1px;
8
7
  padding: 12px;
9
-
10
8
  }
@@ -87,7 +87,8 @@ var useTransColumns = function useTransColumns(params) {
87
87
  newColumns.unshift({
88
88
  key: "__sort",
89
89
  width: 60,
90
- align: "center"
90
+ align: "center",
91
+ className: "drag-sort-cell"
91
92
  });
92
93
  }
93
94
  return newColumns.map(function (col, index) {
@@ -75,4 +75,16 @@
75
75
  .pisell-lowcode-table-wrapper .pisell-lowcode-table-thead tr th:first-child {
76
76
  border-left: 1px solid #EAECF0;
77
77
  }
78
+ .pisell-lowcode-table-selection-column {
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ }
83
+ .drag-sort-cell {
84
+ .editable-cell-value-wrap {
85
+ display: flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+ }
89
+ }
78
90
  }
@@ -19,4 +19,5 @@
19
19
 
20
20
  .materials-grid-table-wrap {
21
21
  flex: 1;
22
+ overflow: hidden;
22
23
  }
@@ -4,7 +4,5 @@
4
4
  }
5
5
 
6
6
  .materials-grid-table-cell {
7
- height: 1px;
8
7
  padding: 12px;
9
-
10
8
  }
@@ -116,7 +116,8 @@ var useTransColumns = (params) => {
116
116
  newColumns.unshift({
117
117
  key: "__sort",
118
118
  width: 60,
119
- align: "center"
119
+ align: "center",
120
+ className: "drag-sort-cell"
120
121
  });
121
122
  }
122
123
  return newColumns.map((col, index) => {
@@ -75,4 +75,16 @@
75
75
  .pisell-lowcode-table-wrapper .pisell-lowcode-table-thead tr th:first-child {
76
76
  border-left: 1px solid #EAECF0;
77
77
  }
78
+ .pisell-lowcode-table-selection-column {
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ }
83
+ .drag-sort-cell {
84
+ .editable-cell-value-wrap {
85
+ display: flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+ }
89
+ }
78
90
  }
@@ -1184,6 +1184,16 @@ export default {
1184
1184
  value: 'target => !!target.getProps().getPropValue("rowSelection")',
1185
1185
  },
1186
1186
  },
1187
+ {
1188
+ name: "rowSelection.columnWidth",
1189
+ title: { label: "自定义列表选择框宽度", tip: "rowSelection.columnWidth | 自定义列表选择框宽度" },
1190
+ propType: {
1191
+ type: "oneOfType",
1192
+ value: ["number", "string"],
1193
+ },
1194
+ setter: ["NumberSetter", "StringSetter", "VariableSetter"],
1195
+ defaultValue: 48,
1196
+ },
1187
1197
  {
1188
1198
  name: "rowSelection.selectedRowKeys",
1189
1199
  title: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.263",
3
+ "version": "1.0.265",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -62,9 +62,9 @@
62
62
  "react-window": "^1.8.10",
63
63
  "react-virtualized-auto-sizer": "^1.0.20",
64
64
  "crypto-js": "^4.2.0",
65
- "@pisell/icon": "0.0.8",
66
65
  "@pisell/utils": "1.0.25",
67
- "@pisell/date-picker": "1.0.71"
66
+ "@pisell/icon": "0.0.8",
67
+ "@pisell/date-picker": "1.0.72"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.0.0",