@zat-design/sisyphus-react 3.8.2-beta.8 → 3.8.2-beta.9

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.
@@ -228,6 +228,12 @@ function ProTable(props) {
228
228
  return true;
229
229
  });
230
230
  }, [columns]);
231
+ var isExistPercentWidth = !!_columns.find(function (item) {
232
+ return item.width && typeof item.width === 'string' && item.width.endsWith('%');
233
+ });
234
+ if (isExistPercentWidth) {
235
+ _scroll = props === null || props === void 0 ? void 0 : props.scroll;
236
+ }
231
237
  var handleColumnConfig = /*#__PURE__*/function () {
232
238
  var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(checkList) {
233
239
  var newColumns, _columnConfig$onColum, catchColumns;
@@ -235,6 +235,12 @@ function ProTable(props) {
235
235
  return true;
236
236
  });
237
237
  }, [columns]);
238
+ var isExistPercentWidth = !!_columns.find(function (item) {
239
+ return item.width && typeof item.width === 'string' && item.width.endsWith('%');
240
+ });
241
+ if (isExistPercentWidth) {
242
+ _scroll = props === null || props === void 0 ? void 0 : props.scroll;
243
+ }
238
244
  var handleColumnConfig = /*#__PURE__*/function () {
239
245
  var _ref6 = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(checkList) {
240
246
  var newColumns, _columnConfig$onColum, catchColumns;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.8.2-beta.8",
3
+ "version": "3.8.2-beta.9",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",