@zat-design/sisyphus-react 3.8.3-beta.20 → 3.8.3-beta.21

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.
@@ -3166,6 +3166,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3166
3166
  width: -webkit-max-content;
3167
3167
  width: -moz-max-content;
3168
3168
  width: max-content;
3169
+ z-index: 99;
3169
3170
  }
3170
3171
  .original-value-tootip .changed-tooltip .original-value-container .ant-space-item:nth-child(1) {
3171
3172
  white-space: nowrap;
package/dist/less.esm.css CHANGED
@@ -3166,6 +3166,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3166
3166
  width: -webkit-max-content;
3167
3167
  width: -moz-max-content;
3168
3168
  width: max-content;
3169
+ z-index: 99;
3169
3170
  }
3170
3171
  .original-value-tootip .changed-tooltip .original-value-container .ant-space-item:nth-child(1) {
3171
3172
  white-space: nowrap;
@@ -12,7 +12,7 @@ import classNames from 'classnames';
12
12
  import { get } from 'lodash';
13
13
  import { diffOriginal } from '../../../ProForm/utils/diffOriginal';
14
14
  import { useProConfig } from '../../../ProConfigProvider';
15
- import { isEmpty, useFocus } from '../../../utils';
15
+ import { isEmpty } from '../../../utils';
16
16
  var toNamePath = function toNamePath(name) {
17
17
  if (Array.isArray(name)) {
18
18
  return name;
@@ -154,11 +154,11 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
154
154
  return /*#__PURE__*/React.isValidElement(children) && /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest));
155
155
  }
156
156
  // eslint-disable-next-line react-hooks/rules-of-hooks
157
- var isFocus = useFocus(contentRef.current);
157
+ // const isFocus = useFocus(contentRef.current);
158
158
  var tipOpenCalc = function tipOpenCalc() {
159
159
  if (!toolTip) return false;
160
160
  // 传入undefined 鼠标移入显示移出隐藏
161
- return isChanged && !isFocus ? undefined : false;
161
+ return isChanged ? undefined : false;
162
162
  };
163
163
  // @ts-ignore
164
164
  var _showEllipse = ((_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.showEllipse) || ((_children$props2 = children.props) === null || _children$props2 === void 0 ? void 0 : _children$props2.tooltip);
@@ -174,6 +174,7 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
174
174
  },
175
175
  overlayClassName: "original-value-tootip",
176
176
  placement: "topLeft",
177
+ autoAdjustOverflow: false,
177
178
  title: _jsxs(_Space, {
178
179
  direction: "vertical",
179
180
  className: "changed-tooltip",
@@ -191,7 +192,6 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
191
192
  }),
192
193
  children: _jsx("div", {
193
194
  className: diffClassName,
194
- ref: contentRef,
195
195
  children: /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread(_objectSpread({}, children.props), rest), {}, {
196
196
  scrollFollowParent: scrollFollowParent,
197
197
  otherProps: _objectSpread(_objectSpread({}, (_children$props3 = children.props) === null || _children$props3 === void 0 ? void 0 : _children$props3.otherProps), {}, {
@@ -9,10 +9,10 @@ var _excluded = ["name", "names", "namesStr", "form", "equalWith", "children", "
9
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
10
  import classNames from 'classnames';
11
11
  import { get } from 'lodash';
12
- import React, { useMemo, useRef } from 'react';
12
+ import React, { useMemo } from 'react';
13
13
  import { diffOriginal } from '../../utils/diffOriginal';
14
14
  import { useProConfig } from '../../../ProConfigProvider';
15
- import { isEmpty, useFocus } from '../../../utils';
15
+ import { isEmpty } from '../../../utils';
16
16
  var ChangedWrapper = function ChangedWrapper(props) {
17
17
  var _diffConfig$toolTip, _children$props, _children$props2, _children$props3;
18
18
  var name = props.name,
@@ -29,7 +29,7 @@ var ChangedWrapper = function ChangedWrapper(props) {
29
29
  getValueProps = props.getValueProps,
30
30
  viewRender = props.viewRender,
31
31
  rest = _objectWithoutProperties(props, _excluded);
32
- var contentRef = useRef(null);
32
+ // const contentRef = useRef(null);
33
33
  var _useProConfig = useProConfig('ProForm'),
34
34
  isDiffAll = _useProConfig.isDiffAll;
35
35
  var originalValues = diffConfig.originalValues,
@@ -81,11 +81,11 @@ var ChangedWrapper = function ChangedWrapper(props) {
81
81
  }, children.props), rest));
82
82
  }
83
83
  // eslint-disable-next-line react-hooks/rules-of-hooks
84
- var isFocus = useFocus(contentRef.current);
84
+ // const isFocus = useFocus(contentRef.current);
85
85
  var tipOpenCalc = function tipOpenCalc() {
86
86
  if (!toolTip) return false;
87
87
  // 传入undefined 鼠标移入显示移出隐藏 获得焦点时不显示气泡
88
- return isChanged && !isFocus ? undefined : false;
88
+ return isChanged ? undefined : false;
89
89
  };
90
90
  var style = {
91
91
  '--zaui-contract-bg': changeTipColor,
@@ -123,7 +123,6 @@ var ChangedWrapper = function ChangedWrapper(props) {
123
123
  children: _jsx("div", {
124
124
  className: diffClassName,
125
125
  style: style,
126
- ref: contentRef,
127
126
  children: /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread(_objectSpread({}, children.props), rest), {}, {
128
127
  scrollFollowParent: scrollFollowParent,
129
128
  otherProps: _objectSpread(_objectSpread({}, (_children$props3 = children.props) === null || _children$props3 === void 0 ? void 0 : _children$props3.otherProps), {}, {
@@ -488,6 +488,7 @@
488
488
  .original-value-tootip{
489
489
  max-width: 100%;
490
490
  width: max-content;
491
+ z-index: 99;
491
492
  .changed-tooltip {
492
493
  .original-value-container {
493
494
  .ant-space-item:nth-child(1) {
@@ -159,11 +159,11 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
159
159
  return /*#__PURE__*/_react.default.isValidElement(children) && /*#__PURE__*/_react.default.cloneElement(children, (0, _objectSpread3.default)((0, _objectSpread3.default)({}, children.props), rest));
160
160
  }
161
161
  // eslint-disable-next-line react-hooks/rules-of-hooks
162
- var isFocus = (0, _utils.useFocus)(contentRef.current);
162
+ // const isFocus = useFocus(contentRef.current);
163
163
  var tipOpenCalc = function tipOpenCalc() {
164
164
  if (!toolTip) return false;
165
165
  // 传入undefined 鼠标移入显示移出隐藏
166
- return isChanged && !isFocus ? undefined : false;
166
+ return isChanged ? undefined : false;
167
167
  };
168
168
  // @ts-ignore
169
169
  var _showEllipse = ((_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.showEllipse) || ((_children$props2 = children.props) === null || _children$props2 === void 0 ? void 0 : _children$props2.tooltip);
@@ -179,6 +179,7 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
179
179
  },
180
180
  overlayClassName: "original-value-tootip",
181
181
  placement: "topLeft",
182
+ autoAdjustOverflow: false,
182
183
  title: (0, _jsxRuntime.jsxs)(_antd.Space, {
183
184
  direction: "vertical",
184
185
  className: "changed-tooltip",
@@ -196,7 +197,6 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
196
197
  }),
197
198
  children: (0, _jsxRuntime.jsx)("div", {
198
199
  className: diffClassName,
199
- ref: contentRef,
200
200
  children: /*#__PURE__*/_react.default.isValidElement(children) ? /*#__PURE__*/_react.default.cloneElement(children, (0, _objectSpread3.default)((0, _objectSpread3.default)((0, _objectSpread3.default)({}, children.props), rest), {}, {
201
201
  scrollFollowParent: scrollFollowParent,
202
202
  otherProps: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, (_children$props3 = children.props) === null || _children$props3 === void 0 ? void 0 : _children$props3.otherProps), {}, {
@@ -34,7 +34,7 @@ var ChangedWrapper = function ChangedWrapper(props) {
34
34
  getValueProps = props.getValueProps,
35
35
  viewRender = props.viewRender,
36
36
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
37
- var contentRef = (0, _react.useRef)(null);
37
+ // const contentRef = useRef(null);
38
38
  var _useProConfig = (0, _ProConfigProvider.useProConfig)('ProForm'),
39
39
  isDiffAll = _useProConfig.isDiffAll;
40
40
  var originalValues = diffConfig.originalValues,
@@ -86,11 +86,11 @@ var ChangedWrapper = function ChangedWrapper(props) {
86
86
  }, children.props), rest));
87
87
  }
88
88
  // eslint-disable-next-line react-hooks/rules-of-hooks
89
- var isFocus = (0, _utils.useFocus)(contentRef.current);
89
+ // const isFocus = useFocus(contentRef.current);
90
90
  var tipOpenCalc = function tipOpenCalc() {
91
91
  if (!toolTip) return false;
92
92
  // 传入undefined 鼠标移入显示移出隐藏 获得焦点时不显示气泡
93
- return isChanged && !isFocus ? undefined : false;
93
+ return isChanged ? undefined : false;
94
94
  };
95
95
  var style = {
96
96
  '--zaui-contract-bg': changeTipColor,
@@ -128,7 +128,6 @@ var ChangedWrapper = function ChangedWrapper(props) {
128
128
  children: (0, _jsxRuntime.jsx)("div", {
129
129
  className: diffClassName,
130
130
  style: style,
131
- ref: contentRef,
132
131
  children: /*#__PURE__*/_react.default.isValidElement(children) ? /*#__PURE__*/_react.default.cloneElement(children, (0, _objectSpread3.default)((0, _objectSpread3.default)((0, _objectSpread3.default)({}, children.props), rest), {}, {
133
132
  scrollFollowParent: scrollFollowParent,
134
133
  otherProps: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, (_children$props3 = children.props) === null || _children$props3 === void 0 ? void 0 : _children$props3.otherProps), {}, {
@@ -488,6 +488,7 @@
488
488
  .original-value-tootip{
489
489
  max-width: 100%;
490
490
  width: max-content;
491
+ z-index: 99;
491
492
  .changed-tooltip {
492
493
  .original-value-container {
493
494
  .ant-space-item:nth-child(1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.8.3-beta.20",
3
+ "version": "3.8.3-beta.21",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",