@hi-ui/hiui 3.9.2 → 3.9.4-beta.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.
@@ -370,7 +370,7 @@ var SelectTree = function SelectTree(_ref) {
370
370
  checked: [],
371
371
  semiChecked: []
372
372
  });
373
- onChange && onChange();
373
+ onChange && onChange('');
374
374
  }, [onChange]);
375
375
  /**
376
376
  * set Pull Data status
package/es/table/Table.js CHANGED
@@ -226,9 +226,17 @@ var Table = function Table(_ref) {
226
226
 
227
227
  var loadChildren = (0, _react.useRef)(null);
228
228
 
229
- var _useState25 = (0, _react.useState)(columns.map(function (c) {
230
- return c.width || 'auto';
231
- })),
229
+ var _useState25 = (0, _react.useState)(function () {
230
+ var _columns = columns.map(function (c) {
231
+ return c.width || 'auto';
232
+ });
233
+
234
+ if (rowSelection) {
235
+ _columns.unshift(rowSelection.checkboxColWidth || 50);
236
+ }
237
+
238
+ return _columns;
239
+ }),
232
240
  _useState26 = (0, _slicedToArray2["default"])(_useState25, 2),
233
241
  realColumnsWidth = _useState26[0],
234
242
  setRealColumnsWidth = _useState26[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/hiui",
3
- "version": "3.9.2",
3
+ "version": "3.9.4-beta.0",
4
4
  "description": "HIUI for React",
5
5
  "scripts": {
6
6
  "test": "node_modules/.bin/standard && node_modules/.bin/stylelint --config .stylelintrc 'components/**/*.scss'",