@zat-design/sisyphus-react 3.9.6 → 3.9.7

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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "recommendations": [
3
+ "kisstkondoros.vscode-codemetrics"
4
+ ]
5
+ }
@@ -913,10 +913,11 @@
913
913
  position: absolute;
914
914
  right: 0;
915
915
  background: #fff;
916
+ letter-spacing: 2px;
916
917
  }
917
918
  .pro-header .pro-header-describe .ant-space .pro-header-describe-value .pro-header-describe-items.pro-header-describe-items-more .pro-header-tag {
918
919
  padding: 0;
919
- background: #fff;
920
+ background: transparent;
920
921
  color: #333;
921
922
  }
922
923
  .pro-header .pro-header-copy {
package/dist/less.esm.css CHANGED
@@ -913,10 +913,11 @@
913
913
  position: absolute;
914
914
  right: 0;
915
915
  background: #fff;
916
+ letter-spacing: 2px;
916
917
  }
917
918
  .pro-header .pro-header-describe .ant-space .pro-header-describe-value .pro-header-describe-items.pro-header-describe-items-more .pro-header-tag {
918
919
  padding: 0;
919
- background: #fff;
920
+ background: transparent;
920
921
  color: #333;
921
922
  }
922
923
  .pro-header .pro-header-copy {
@@ -159,10 +159,12 @@ export var handleScrollToError = function handleScrollToError() {
159
159
  if (errorDom) {
160
160
  var tableBody = errorDom.closest('.ant-table-content') || errorDom.closest('.ant-table-body');
161
161
  var tableCell = errorDom.closest('.ant-table-cell');
162
+ var tableRow = errorDom.closest('.ant-table-row');
162
163
  if (tableBody && tableCell) {
163
164
  var previousSibling = tableCell.previousElementSibling;
164
165
  var childOffsetLeft = 0;
165
166
  var childFixedLeft = 0;
167
+ var childOffsetTop = 0;
166
168
  while (previousSibling) {
167
169
  if (previousSibling.nodeType === 1) {
168
170
  var _previousSibling, _previousSibling$clas, _previousSibling$clas2, _previousSibling$clas3;
@@ -176,7 +178,20 @@ export var handleScrollToError = function handleScrollToError() {
176
178
  }
177
179
  previousSibling = previousSibling.previousElementSibling;
178
180
  }
181
+ if (tableRow) {
182
+ var _previousSibling2 = tableRow.previousElementSibling;
183
+ while (_previousSibling2) {
184
+ if (_previousSibling2.nodeType === 1) {
185
+ var _ref5 = _previousSibling2.getBoundingClientRect() || {},
186
+ _ref5$height = _ref5.height,
187
+ height = _ref5$height === void 0 ? 0 : _ref5$height;
188
+ childOffsetTop += height;
189
+ }
190
+ _previousSibling2 = _previousSibling2.previousElementSibling;
191
+ }
192
+ }
179
193
  tableBody.scrollTo({
194
+ top: childOffsetTop,
180
195
  left: childOffsetLeft - childFixedLeft,
181
196
  behavior: 'smooth'
182
197
  });
@@ -2,9 +2,9 @@ import "antd/es/space/style";
2
2
  import _Space from "antd/es/space";
3
3
  import "antd/es/tooltip/style";
4
4
  import _Tooltip from "antd/es/tooltip";
5
- import _typeof from "@babel/runtime/helpers/esm/typeof";
6
5
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
7
6
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
7
+ import _typeof from "@babel/runtime/helpers/esm/typeof";
8
8
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
9
9
  var _excluded = ["name", "names", "namesStr", "form", "equalWith", "children", "type", "diffConfig", "valuePropName", "normalize", "getValueProps", "viewRender"];
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -61,7 +61,7 @@ var ChangedWrapper = function ChangedWrapper(props) {
61
61
  equalWith: equalWith
62
62
  // name: namesStr || name,
63
63
  });
64
- }, [isWatch, noChange, props[valuePropName], originalValue]);
64
+ }, [isWatch, noChange, props[valuePropName], originalValue, _typeof(equalWith)]);
65
65
  var isAdd = diffType === 'add';
66
66
  var isChanged = diffType === 'changed';
67
67
  var tipContent = useMemo(function () {
@@ -76,11 +76,12 @@
76
76
  position: absolute;
77
77
  right: 0;
78
78
  background: #fff;
79
+ letter-spacing: 2px;
79
80
  }
80
81
  &.pro-header-describe-items-more{
81
82
  .pro-header-tag{
82
83
  padding: 0;
83
- background: #fff;
84
+ background: transparent;
84
85
  color: #333 ;
85
86
  }
86
87
 
@@ -52,6 +52,10 @@ function Trigger(props) {
52
52
  setState({
53
53
  mode: 'all'
54
54
  });
55
+ } else {
56
+ setState({
57
+ mode: 'appoint'
58
+ });
55
59
  }
56
60
  }, [checkAll]);
57
61
  var onIconClick = function onIconClick() {
@@ -167,10 +167,12 @@ var handleScrollToError = exports.handleScrollToError = function handleScrollToE
167
167
  if (errorDom) {
168
168
  var tableBody = errorDom.closest('.ant-table-content') || errorDom.closest('.ant-table-body');
169
169
  var tableCell = errorDom.closest('.ant-table-cell');
170
+ var tableRow = errorDom.closest('.ant-table-row');
170
171
  if (tableBody && tableCell) {
171
172
  var previousSibling = tableCell.previousElementSibling;
172
173
  var childOffsetLeft = 0;
173
174
  var childFixedLeft = 0;
175
+ var childOffsetTop = 0;
174
176
  while (previousSibling) {
175
177
  if (previousSibling.nodeType === 1) {
176
178
  var _previousSibling, _previousSibling$clas, _previousSibling$clas2, _previousSibling$clas3;
@@ -184,7 +186,20 @@ var handleScrollToError = exports.handleScrollToError = function handleScrollToE
184
186
  }
185
187
  previousSibling = previousSibling.previousElementSibling;
186
188
  }
189
+ if (tableRow) {
190
+ var _previousSibling2 = tableRow.previousElementSibling;
191
+ while (_previousSibling2) {
192
+ if (_previousSibling2.nodeType === 1) {
193
+ var _ref5 = _previousSibling2.getBoundingClientRect() || {},
194
+ _ref5$height = _ref5.height,
195
+ height = _ref5$height === void 0 ? 0 : _ref5$height;
196
+ childOffsetTop += height;
197
+ }
198
+ _previousSibling2 = _previousSibling2.previousElementSibling;
199
+ }
200
+ }
187
201
  tableBody.scrollTo({
202
+ top: childOffsetTop,
188
203
  left: childOffsetLeft - childFixedLeft,
189
204
  behavior: 'smooth'
190
205
  });
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
10
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
10
  var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
12
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
13
  var _jsxRuntime = require("react/jsx-runtime");
14
14
  var _antd = require("antd");
@@ -66,7 +66,7 @@ var ChangedWrapper = function ChangedWrapper(props) {
66
66
  equalWith: equalWith
67
67
  // name: namesStr || name,
68
68
  });
69
- }, [isWatch, noChange, props[valuePropName], originalValue]);
69
+ }, [isWatch, noChange, props[valuePropName], originalValue, (0, _typeof2.default)(equalWith)]);
70
70
  var isAdd = diffType === 'add';
71
71
  var isChanged = diffType === 'changed';
72
72
  var tipContent = (0, _react.useMemo)(function () {
@@ -76,11 +76,12 @@
76
76
  position: absolute;
77
77
  right: 0;
78
78
  background: #fff;
79
+ letter-spacing: 2px;
79
80
  }
80
81
  &.pro-header-describe-items-more{
81
82
  .pro-header-tag{
82
83
  padding: 0;
83
- background: #fff;
84
+ background: transparent;
84
85
  color: #333 ;
85
86
  }
86
87
 
@@ -55,6 +55,10 @@ function Trigger(props) {
55
55
  setState({
56
56
  mode: 'all'
57
57
  });
58
+ } else {
59
+ setState({
60
+ mode: 'appoint'
61
+ });
58
62
  }
59
63
  }, [checkAll]);
60
64
  var onIconClick = function onIconClick() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.9.6",
3
+ "version": "3.9.7",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",