@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.
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)(
|
|
230
|
-
|
|
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