@zat-design/sisyphus-react 3.6.3 → 3.6.4

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.
@@ -2316,7 +2316,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2316
2316
  width: 100%;
2317
2317
  }
2318
2318
  .pro-address .ant-cascader {
2319
- width: 45% !important;
2319
+ width: 45%;
2320
2320
  }
2321
2321
  .pro-address .ant-cascader.no-detail {
2322
2322
  width: 100% !important;
package/dist/less.esm.css CHANGED
@@ -2316,7 +2316,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2316
2316
  width: 100%;
2317
2317
  }
2318
2318
  .pro-address .ant-cascader {
2319
- width: 45% !important;
2319
+ width: 45%;
2320
2320
  }
2321
2321
  .pro-address .ant-cascader.no-detail {
2322
2322
  width: 100% !important;
@@ -195,7 +195,7 @@ export var transformColumns = function transformColumns() {
195
195
  setState = config.setState,
196
196
  page = config.page;
197
197
  var isCell = mode === 'cell';
198
- var _columns = cloneDeep(columns);
198
+ var _columns = _toConsumableArray(columns);
199
199
  var _cacheMap = _objectSpread({}, cacheMap.current);
200
200
  var pageNum = tools.calc(page.pageNum, '-', 1);
201
201
  var firstIndex = tools.calc(pageNum, '*', page.pageSize);
@@ -6,7 +6,7 @@
6
6
  width: 100%;
7
7
 
8
8
  .@{ant-prefix}-cascader {
9
- width: 45% !important;
9
+ width: 45%;
10
10
 
11
11
  &.no-detail {
12
12
  width: 100% !important;
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import { useRef, useState } from 'react';
3
- import { isFunction, isEqualWith, isEqual } from 'lodash';
3
+ import { isFunction, isEqualWith } from 'lodash';
4
4
  import { customEqualForFun, equalDependencies } from './index';
5
5
  // 代理shouldUpdate事件, 执行函数值的[show, disabled], 当[show, disabled]与上一次值不相同时更新状态
6
6
  var useShouldUpdate = function useShouldUpdate(props) {
@@ -174,7 +174,7 @@ var useShouldUpdate = function useShouldUpdate(props) {
174
174
  }
175
175
  if (_show !== showRef.current || _disabled !== disabledRef.current || _required !== requiredRef.current || !isEqualWith(rulesRef.current, _rules, customEqualForFun) || !isEqualWith(fieldPropsRef.current, _fieldProps, customEqualForFun) ||
176
176
  // 值变更,需要同步更新函数式的fieldProps
177
- isEqualWith(fieldPropsRef.current, _fieldProps, customEqualForFun) && !isEqual(prevValues, currentValues) ||
177
+ // (isEqualWith(fieldPropsRef.current, _fieldProps, customEqualForFun) && !isEqual(prevValues, currentValues)) ||
178
178
  // !isEqualWith(originComponentRef.current, _component, customEqualForFun) ||
179
179
  equalDependencies(dependencies, prevValues, _currentValues)) {
180
180
  showRef.current = _show;
@@ -199,7 +199,7 @@ var transformColumns = exports.transformColumns = function transformColumns() {
199
199
  setState = config.setState,
200
200
  page = config.page;
201
201
  var isCell = mode === 'cell';
202
- var _columns = (0, _lodash.cloneDeep)(columns);
202
+ var _columns = (0, _toConsumableArray2.default)(columns);
203
203
  var _cacheMap = (0, _objectSpread2.default)({}, cacheMap.current);
204
204
  var pageNum = _utils.tools.calc(page.pageNum, '-', 1);
205
205
  var firstIndex = _utils.tools.calc(pageNum, '*', page.pageSize);
@@ -6,7 +6,7 @@
6
6
  width: 100%;
7
7
 
8
8
  .@{ant-prefix}-cascader {
9
- width: 45% !important;
9
+ width: 45%;
10
10
 
11
11
  &.no-detail {
12
12
  width: 100% !important;
@@ -181,7 +181,7 @@ var useShouldUpdate = function useShouldUpdate(props) {
181
181
  }
182
182
  if (_show !== showRef.current || _disabled !== disabledRef.current || _required !== requiredRef.current || !(0, _lodash.isEqualWith)(rulesRef.current, _rules, _index.customEqualForFun) || !(0, _lodash.isEqualWith)(fieldPropsRef.current, _fieldProps, _index.customEqualForFun) ||
183
183
  // 值变更,需要同步更新函数式的fieldProps
184
- (0, _lodash.isEqualWith)(fieldPropsRef.current, _fieldProps, _index.customEqualForFun) && !(0, _lodash.isEqual)(prevValues, currentValues) ||
184
+ // (isEqualWith(fieldPropsRef.current, _fieldProps, customEqualForFun) && !isEqual(prevValues, currentValues)) ||
185
185
  // !isEqualWith(originComponentRef.current, _component, customEqualForFun) ||
186
186
  (0, _index.equalDependencies)(dependencies, prevValues, _currentValues)) {
187
187
  showRef.current = _show;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.6.3",
3
+ "version": "3.6.4",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",