@zat-design/sisyphus-react 3.9.0-beta.1 → 3.9.0-beta.11

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.
Files changed (47) hide show
  1. package/dist/index.esm.css +10 -1
  2. package/dist/less.esm.css +10 -1
  3. package/es/ProDrawerForm/components/ProDrawer/index.js +3 -1
  4. package/es/ProDrawerForm/components/ProModal/index.js +5 -3
  5. package/es/ProDrawerForm/propsType.d.ts +1 -0
  6. package/es/ProEnum/index.js +6 -4
  7. package/es/ProEnum/propsType.d.ts +1 -0
  8. package/es/ProForm/components/combination/Group/index.js +4 -3
  9. package/es/ProForm/components/combination/ProModalSelect/index.js +2 -1
  10. package/es/ProForm/components/render/ChangedWrapper.js +0 -1
  11. package/es/ProForm/style/index.less +0 -1
  12. package/es/ProTable/components/FormatColumn/index.d.ts +5 -3
  13. package/es/ProTable/components/FormatColumn/index.js +89 -71
  14. package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
  15. package/es/ProTable/components/RenderColumn/index.js +28 -7
  16. package/es/ProTable/index.d.ts +6 -5
  17. package/es/ProTable/index.js +4 -6
  18. package/es/ProTable/propsType.d.ts +2 -1
  19. package/es/ProTable/style/index.less +10 -1
  20. package/es/ProTable/utils/index.d.ts +5 -2
  21. package/es/ProTable/utils/index.js +13 -4
  22. package/es/ProTree/components/ProTreeSelect/index.js +32 -13
  23. package/es/utils/index.d.ts +1 -1
  24. package/es/utils/index.js +4 -1
  25. package/lib/ProDrawerForm/components/ProDrawer/index.js +3 -1
  26. package/lib/ProDrawerForm/components/ProModal/index.js +5 -3
  27. package/lib/ProDrawerForm/propsType.d.ts +1 -0
  28. package/lib/ProEnum/index.js +6 -4
  29. package/lib/ProEnum/propsType.d.ts +1 -0
  30. package/lib/ProForm/components/combination/Group/index.js +4 -3
  31. package/lib/ProForm/components/combination/ProModalSelect/index.js +2 -1
  32. package/lib/ProForm/components/render/ChangedWrapper.js +0 -1
  33. package/lib/ProForm/style/index.less +0 -1
  34. package/lib/ProTable/components/FormatColumn/index.d.ts +5 -3
  35. package/lib/ProTable/components/FormatColumn/index.js +89 -71
  36. package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
  37. package/lib/ProTable/components/RenderColumn/index.js +28 -7
  38. package/lib/ProTable/index.d.ts +6 -5
  39. package/lib/ProTable/index.js +4 -6
  40. package/lib/ProTable/propsType.d.ts +2 -1
  41. package/lib/ProTable/style/index.less +10 -1
  42. package/lib/ProTable/utils/index.d.ts +5 -2
  43. package/lib/ProTable/utils/index.js +13 -4
  44. package/lib/ProTree/components/ProTreeSelect/index.js +31 -12
  45. package/lib/utils/index.d.ts +1 -1
  46. package/lib/utils/index.js +4 -1
  47. package/package.json +1 -1
@@ -8,8 +8,11 @@ import "antd/es/typography/style";
8
8
  import _Typography from "antd/es/typography";
9
9
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
10
10
  import { useSetState } from 'ahooks';
11
+ import { isBoolean } from 'lodash';
12
+ import classNames from 'classnames';
11
13
  import { CheckOutlined } from '@ant-design/icons';
12
14
  import { ReactSVG } from 'react-svg';
15
+ import { isEmpty } from '../../../utils';
13
16
  import copySvg from '../../../assets/copy.svg';
14
17
  var Paragraph = _Typography.Paragraph,
15
18
  Text = _Typography.Text;
@@ -23,7 +26,6 @@ var RenderColumn = function RenderColumn(props) {
23
26
  ellipsis = props.ellipsis,
24
27
  width = props.width,
25
28
  originalValue = props.originalValue,
26
- originalDiffTip = props.originalDiffTip,
27
29
  _props$toolTipProps = props.toolTipProps,
28
30
  toolTipProps = _props$toolTipProps === void 0 ? {} : _props$toolTipProps,
29
31
  minWidth = props.minWidth,
@@ -34,9 +36,13 @@ var RenderColumn = function RenderColumn(props) {
34
36
  _useSetState2 = _slicedToArray(_useSetState, 2),
35
37
  tooltip = _useSetState2[0].tooltip,
36
38
  setState = _useSetState2[1];
37
- if ((originalValue || originalValue === 0) && !isInNewRowFlag) {
39
+ var cellDiffCls = classNames({
40
+ 'varied-cell': props === null || props === void 0 ? void 0 : props.isChanged
41
+ });
42
+ // 比对场景走的逻辑
43
+ if (!isInNewRowFlag && isBoolean(props === null || props === void 0 ? void 0 : props.isChanged)) {
38
44
  var renderNode = value ? node : '-';
39
- if (ellipsis || originalDiffTip) {
45
+ if (ellipsis || (props === null || props === void 0 ? void 0 : props.isChanged)) {
40
46
  renderNode = _jsx(Text, {
41
47
  style: {
42
48
  width: currentValue === '-' ? 32.5 : width,
@@ -47,8 +53,20 @@ var RenderColumn = function RenderColumn(props) {
47
53
  },
48
54
  children: ellipsis ? currentValue : renderNode
49
55
  });
56
+ if ((props === null || props === void 0 ? void 0 : props.isChanged) === false) {
57
+ return renderNode;
58
+ }
59
+ if (Array.isArray(originalValue)) {
60
+ console.error('Error: When enabled, dataIndex corresponds to an array, which needs to be converted using viewRender');
61
+ }
62
+ var originalValueCalc = function originalValueCalc() {
63
+ if (Array.isArray(originalValue)) {
64
+ return null;
65
+ }
66
+ return !isEmpty(originalValue) ? originalValue : '-';
67
+ };
50
68
  return _jsx(_Tooltip, _objectSpread(_objectSpread({
51
- className: "varied-cell",
69
+ className: cellDiffCls,
52
70
  style: {
53
71
  width: width,
54
72
  minWidth: minWidth
@@ -59,11 +77,11 @@ var RenderColumn = function RenderColumn(props) {
59
77
  title: _jsx(_Space, {
60
78
  direction: "vertical",
61
79
  className: "changed-tooltip",
62
- children: originalDiffTip ? _jsxs(_Fragment, {
80
+ children: (props === null || props === void 0 ? void 0 : props.isChanged) ? _jsxs(_Fragment, {
63
81
  children: [_jsxs(_Space, {
64
82
  align: "start",
65
83
  className: "original-value-container",
66
- children: ["\u521D\u59CB\u503C\uFF1A", originalValue]
84
+ children: ["\u521D\u59CB\u503C\uFF1A", originalValueCalc()]
67
85
  }), _jsx(_Space, {
68
86
  className: "current-value-container",
69
87
  children: ellipsis ? _jsxs(_Space, {
@@ -79,8 +97,11 @@ var RenderColumn = function RenderColumn(props) {
79
97
  children: renderNode
80
98
  }));
81
99
  }
100
+ if ((props === null || props === void 0 ? void 0 : props.isChanged) === false) {
101
+ return renderNode;
102
+ }
82
103
  return _jsx("span", {
83
- className: "varied-cell",
104
+ className: cellDiffCls,
84
105
  style: {
85
106
  width: width,
86
107
  minWidth: minWidth
@@ -1,19 +1,20 @@
1
1
  /// <reference types="react" />
2
2
  import { ProTableProps } from './propsType';
3
+ import useAntdTable from './hooks/useAntdTable';
3
4
  export declare const TableContext: import("react").Context<{}>;
4
5
  export declare const defaultPage: {
5
6
  pageNum: number;
6
7
  pageSize: number;
7
8
  };
8
- declare function ProTable(props: ProTableProps): import("react/jsx-runtime").JSX.Element;
9
- declare namespace ProTable {
10
- var defaultProps: {
9
+ declare const ProTable: {
10
+ (props: ProTableProps): import("react/jsx-runtime").JSX.Element;
11
+ defaultProps: {
11
12
  quickConfig: boolean;
12
13
  stripe: boolean;
13
14
  draggable: boolean;
14
15
  disabled: boolean;
15
16
  isView: boolean;
16
17
  };
17
- var useAntdTable: typeof import("./hooks/useAntdTable").default;
18
- }
18
+ useAntdTable: typeof useAntdTable;
19
+ };
19
20
  export default ProTable;
@@ -29,7 +29,7 @@ export var defaultPage = {
29
29
  pageNum: 1,
30
30
  pageSize: 10
31
31
  };
32
- function ProTable(props) {
32
+ var ProTable = function ProTable(props) {
33
33
  var _locale$ProTable, _props$scroll, _curTableConfig$pathK;
34
34
  var _ref = useProConfig('globalConfig') || {},
35
35
  configStorage = _ref.storage; // 获取全局缓存位置配置
@@ -114,7 +114,6 @@ function ProTable(props) {
114
114
  });
115
115
  });
116
116
  var originalObj = _originalDataSource ? keyBy(_originalDataSource, 'rowKey') : undefined;
117
- var dataSourceObj = _dataSource ? keyBy(_dataSource, 'rowKey') : {};
118
117
  var propsColumnObj = useMemo(function () {
119
118
  return propsColumns.reduce(function (acc, cur) {
120
119
  // @ts-ignore
@@ -213,9 +212,8 @@ function ProTable(props) {
213
212
  formatColumn({
214
213
  column: item,
215
214
  originalObj: originalObj,
216
- dataSourceObj: dataSourceObj,
217
- rowKey: 'rowKey',
218
- diffToolTip: toolTip,
215
+ rowKey: props.rowKey,
216
+ diffConfig: diffConfig,
219
217
  wrapToolTipProps: wrapToolTipProps,
220
218
  scroll: _scroll,
221
219
  onUpdateMinWidth: function onUpdateMinWidth(w) {
@@ -447,7 +445,7 @@ function ProTable(props) {
447
445
  })]
448
446
  })
449
447
  });
450
- }
448
+ };
451
449
  ProTable.defaultProps = {
452
450
  quickConfig: false,
453
451
  stripe: true,
@@ -31,7 +31,6 @@ export interface ProTableColumn extends Omit<ColumnType<any>, 'dataIndex'> {
31
31
  value: string | number;
32
32
  }[];
33
33
  copyable?: boolean;
34
- originalDiffTip?: boolean;
35
34
  prefix?: string | ReactNode | ((value: any, record?: any, index?: number) => any);
36
35
  suffix?: string | ReactNode | ((value: any, record?: any, index?: number) => any);
37
36
  tooltip?: ReactNode | {
@@ -45,6 +44,8 @@ export interface ProTableColumn extends Omit<ColumnType<any>, 'dataIndex'> {
45
44
  value: any;
46
45
  originValue: any;
47
46
  }) => boolean;
47
+ viewRender?: ({ value, record, index, originalValue, originalRecord }: any) => any;
48
+ isChanged?: boolean | null;
48
49
  }
49
50
  export interface CreateTreeFromArrayOptions {
50
51
  itemKey?: string;
@@ -261,11 +261,20 @@
261
261
  tr.@{ant-prefix}-table-row.new-cell {
262
262
  background: var(--zaui-contract-bg-add; #d2fff4) !important;
263
263
  background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
264
-
265
264
  td.@{ant-prefix}-table-cell {
266
265
  background: var(--zaui-contract-bg-add; #d2fff4) !important;
267
266
  background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
268
267
  border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
268
+ &.@{ant-prefix}-table-cell-fix-right {
269
+ background: var(--zaui-contract-bg-add; #d2fff4) !important;
270
+ background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
271
+ border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
272
+ }
273
+ &.@{ant-prefix}-table-cell-fix-left {
274
+ background: var(--zaui-contract-bg-add; #d2fff4) !important;
275
+ background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
276
+ border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
277
+ }
269
278
  }
270
279
  }
271
280
 
@@ -11,9 +11,12 @@ export declare const getDecimalDigits: (num?: number) => number;
11
11
  * @param any value
12
12
  * @param any originalObj
13
13
  * @param {any} dataIndex
14
- * @return {any}
14
+ * @return {any} isChanged 返回bool值,表示存在比对
15
15
  */
16
- export declare const getOriginalValue: (value: any, record: any, originalObj: any, rowKey: any, dataIndex: any) => any;
16
+ export declare const getOriginalValue: (value: any, record: any, originalObj: any, rowKey: any, dataIndex: any) => {
17
+ originalValue: any;
18
+ isChanged: boolean;
19
+ };
17
20
  export declare const getColumnDataIndex: (dataIndex: string | string[]) => string;
18
21
  /**
19
22
  * 判断数据是否为Response<List<any>>结构
@@ -16,18 +16,27 @@ export var getDecimalDigits = function getDecimalDigits() {
16
16
  * @param any value
17
17
  * @param any originalObj
18
18
  * @param {any} dataIndex
19
- * @return {any}
19
+ * @return {any} isChanged 返回bool值,表示存在比对
20
20
  */
21
21
  export var getOriginalValue = function getOriginalValue(value, record, originalObj, rowKey, dataIndex) {
22
22
  if (!originalObj) {
23
- return undefined;
23
+ return {
24
+ originalValue: null,
25
+ isChanged: null
26
+ };
24
27
  }
25
28
  var originalRecord = get(originalObj, get(record, rowKey));
26
29
  var originalValue = get(originalRecord, dataIndex);
27
30
  if (!isEqual(originalValue, value)) {
28
- return originalValue;
31
+ return {
32
+ originalValue: originalValue,
33
+ isChanged: true
34
+ };
29
35
  }
30
- return undefined;
36
+ return {
37
+ originalValue: null,
38
+ isChanged: false
39
+ };
31
40
  };
32
41
  export var getColumnDataIndex = function getColumnDataIndex(dataIndex) {
33
42
  return typeof dataIndex === 'string' ? dataIndex : dataIndex === null || dataIndex === void 0 ? void 0 : dataIndex.join('-');
@@ -1,6 +1,8 @@
1
1
  import "antd/es/tooltip/style";
2
2
  import _Tooltip from "antd/es/tooltip";
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
5
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
6
  import "antd/es/input/style";
5
7
  import _Input from "antd/es/input";
6
8
  import "antd/es/message/style";
@@ -18,7 +20,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
20
  import { useDeepCompareEffect, useRequest as useRequestFunc, useSetState } from 'ahooks';
19
21
  import classnames from 'classnames';
20
22
  import { useImperativeHandle, forwardRef } from 'react';
21
- import { cloneDeep } from 'lodash';
23
+ import { cloneDeep, debounce } from 'lodash';
22
24
  import { useProConfig } from '../../../ProConfigProvider';
23
25
  import Container from '../../../ProForm/components/Container';
24
26
  import AdaptiveTooltip from '../AdaptiveTooltip';
@@ -398,18 +400,35 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
398
400
  sourceList = _filterData(sourceList);
399
401
  return sourceList;
400
402
  }
401
- var searchTreeEvent = function searchTreeEvent(searchVal) {
402
- if (!searchVal) {
403
- setState({
404
- selectList: cloneDeep(origDataSource || [])
405
- });
406
- return null;
407
- }
408
- var result = filterTree(cloneDeep(origDataSource || []), searchVal);
409
- setState({
410
- selectList: result || []
411
- });
412
- };
403
+ var searchTreeEvent = debounce(/*#__PURE__*/function () {
404
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchVal) {
405
+ var result;
406
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
407
+ while (1) switch (_context.prev = _context.next) {
408
+ case 0:
409
+ if (searchVal) {
410
+ _context.next = 3;
411
+ break;
412
+ }
413
+ setState({
414
+ selectList: cloneDeep(origDataSource || [])
415
+ });
416
+ return _context.abrupt("return", null);
417
+ case 3:
418
+ result = filterTree(cloneDeep(origDataSource || []), searchVal);
419
+ setState({
420
+ selectList: result || []
421
+ });
422
+ case 5:
423
+ case "end":
424
+ return _context.stop();
425
+ }
426
+ }, _callee);
427
+ }));
428
+ return function (_x) {
429
+ return _ref5.apply(this, arguments);
430
+ };
431
+ }(), 500);
413
432
  function findTreeNode(treeList, nodeValue) {
414
433
  var result = {};
415
434
  var _filterData2 = function filterData(data) {
@@ -1,3 +1,3 @@
1
1
  /** 判断一个值是否是空值 */
2
- export declare const isEmpty: (value: any) => boolean;
2
+ export declare const isEmpty: (value: any, emptyValue?: string) => boolean;
3
3
  export declare const useFocus: (element: Element) => boolean;
package/es/utils/index.js CHANGED
@@ -2,7 +2,10 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import { useEffect, useState } from 'react';
3
3
  var EMPTY_VALUE = [undefined, null, ''];
4
4
  /** 判断一个值是否是空值 */
5
- export var isEmpty = function isEmpty(value) {
5
+ export var isEmpty = function isEmpty(value, emptyValue) {
6
+ if (emptyValue) {
7
+ EMPTY_VALUE.push(emptyValue);
8
+ }
6
9
  if (EMPTY_VALUE.includes(value)) {
7
10
  return true;
8
11
  }
@@ -39,6 +39,7 @@ var ProDrawer = function ProDrawer(_ref) {
39
39
  onCancel = _ref.onCancel,
40
40
  children = _ref.children,
41
41
  className = _ref.className,
42
+ zIndex = _ref.zIndex,
42
43
  drawerProps = _ref.drawerProps;
43
44
  var ref = (0, _react.useRef)(null);
44
45
  var modalRef = (0, _react.useRef)(null);
@@ -195,7 +196,8 @@ var ProDrawer = function ProDrawer(_ref) {
195
196
  placement: "right",
196
197
  className: "pro-drawer ".concat(className !== null && className !== void 0 ? className : ''),
197
198
  closable: false,
198
- onClose: onCancel
199
+ onClose: onCancel,
200
+ zIndex: zIndex
199
201
  }, drawerProps), {}, {
200
202
  children: [(0, _jsxRuntime.jsx)("div", {
201
203
  className: "pro-drawer-close",
@@ -38,8 +38,9 @@ var ProModal = function ProModal(_ref) {
38
38
  onCancel = _ref.onCancel,
39
39
  children = _ref.children,
40
40
  className = _ref.className,
41
- modalProps = _ref.modalProps,
42
- extraLeft = _ref.extraLeft;
41
+ extraLeft = _ref.extraLeft,
42
+ zIndex = _ref.zIndex,
43
+ modalProps = _ref.modalProps;
43
44
  var ref = (0, _react.useRef)(null);
44
45
  var _ref2 = (0, _ahooks.useScroll)((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.parentNode) || {},
45
46
  top = _ref2.top;
@@ -181,7 +182,8 @@ var ProModal = function ProModal(_ref) {
181
182
  closeIcon: (0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
182
183
  className: "close-icon",
183
184
  src: _close.default
184
- })
185
+ }),
186
+ zIndex: zIndex
185
187
  }, modalProps), {}, {
186
188
  children: (0, _jsxRuntime.jsx)("div", {
187
189
  ref: ref,
@@ -98,4 +98,5 @@ export interface ProDrawerFormPropsType {
98
98
  */
99
99
  onCloseClean?: boolean;
100
100
  children?: React.ReactNode;
101
+ zIndex?: number;
101
102
  }
@@ -44,7 +44,8 @@ var ProEnum = function ProEnum(props) {
44
44
  enumProps = (0, _objectWithoutProperties2.default)(props, _excluded);
45
45
  var _ref = otherProps || {},
46
46
  viewEmpty = _ref.viewEmpty;
47
- var _isView = isView || (otherProps === null || otherProps === void 0 ? void 0 : otherProps.isView);
47
+ var _isView = isView !== undefined && isView !== null ? isView : otherProps === null || otherProps === void 0 ? void 0 : otherProps.isView;
48
+ var _defalutValue = props === null || props === void 0 ? void 0 : props.defaultValue;
48
49
  var _ref2 = (0, _ProConfigProvider.useProConfig)('ProEnum') || {},
49
50
  fieldNames = _ref2.fieldNames,
50
51
  _ref2$clear = _ref2.clear,
@@ -274,16 +275,17 @@ var ProEnum = function ProEnum(props) {
274
275
  return (0, _lodash.isFunction)(props.optionRender) && record.length ? _optionRender() : labelList === null || labelList === void 0 ? void 0 : labelList.join(',');
275
276
  };
276
277
  if (_isView) {
277
- if (Array.isArray(value)) {
278
+ var __value = value || _defalutValue;
279
+ if (Array.isArray(__value)) {
278
280
  return (0, _jsxRuntime.jsx)(_Container.default, {
279
281
  tooltip: true,
280
282
  viewEmpty: viewEmpty,
281
- children: transToLabel(value)
283
+ children: transToLabel(__value)
282
284
  });
283
285
  }
284
286
  return (0, _jsxRuntime.jsx)(_Container.default, {
285
287
  viewEmpty: viewEmpty,
286
- children: value || (0, _lodash.isNumber)(value) ? transToLabel([value]) : null
288
+ children: __value || (0, _lodash.isNumber)(__value) ? transToLabel([__value]) : null
287
289
  });
288
290
  }
289
291
  return (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
@@ -77,6 +77,7 @@ export interface ProEnum {
77
77
  otherProps?: ProFormOtherProps;
78
78
  allowClear?: boolean;
79
79
  id?: string;
80
+ defaultValue?: any;
80
81
  }
81
82
  export type PropProSelectsMap = {
82
83
  type?: 'ProSelect';
@@ -32,7 +32,8 @@ var Group = function Group(props) {
32
32
  value = props.value,
33
33
  onChange = props.onChange,
34
34
  otherProps = props.otherProps,
35
- id = props.id;
35
+ id = props.id,
36
+ isParentView = props.isView;
36
37
  var contextProps = _ProForm.default.useFieldProps() || {};
37
38
  var names = contextProps.names,
38
39
  name = contextProps.name,
@@ -77,7 +78,7 @@ var Group = function Group(props) {
77
78
  children: columns.map(function (column, index) {
78
79
  return (0, _jsxRuntime.jsx)(_ComRender.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
79
80
  contextProps: contextProps,
80
- isView: isView
81
+ isView: isParentView || isView
81
82
  }, column), {}, {
82
83
  otherProps: otherProps
83
84
  }), column.name);
@@ -88,7 +89,7 @@ var Group = function Group(props) {
88
89
  children: columns.map(function (column, index) {
89
90
  return (0, _jsxRuntime.jsx)(_ComRender.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
90
91
  contextProps: contextProps,
91
- isView: isView
92
+ isView: isParentView || isView
92
93
  }, column), {}, {
93
94
  otherProps: otherProps
94
95
  }), column.name);
@@ -840,7 +840,8 @@ var ProModalSelect = function ProModalSelect(props, ref) {
840
840
  onOk: handleFinish,
841
841
  // @ts-ignore
842
842
  onCancel: handleClose,
843
- visible: visible
843
+ visible: visible,
844
+ zIndex: 1071
844
845
  }, restModalProps), {}, {
845
846
  children: [(0, _jsxRuntime.jsx)(_index.ProForm, {
846
847
  submitOnEnter: true,
@@ -34,7 +34,6 @@ var ChangedWrapper = function ChangedWrapper(props) {
34
34
  getValueProps = props.getValueProps,
35
35
  viewRender = props.viewRender,
36
36
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
37
- // const contentRef = useRef(null);
38
37
  var _useProConfig = (0, _ProConfigProvider.useProConfig)('ProForm'),
39
38
  isDiffAll = _useProConfig.isDiffAll;
40
39
  var originalValues = diffConfig.originalValues,
@@ -488,7 +488,6 @@
488
488
  .original-value-tootip{
489
489
  max-width: 100%;
490
490
  width: max-content;
491
- z-index: 99;
492
491
  position: fixed;
493
492
  .changed-tooltip {
494
493
  .original-value-container {
@@ -1,15 +1,17 @@
1
+ /**
2
+ * 调整点:
3
+ */
1
4
  import React from 'react';
2
5
  import { ProTableColumn } from '../../propsType';
3
- export declare const formatColumn: ({ column, originalObj, dataSourceObj, rowKey, diffToolTip, wrapToolTipProps, scroll, onUpdateMinWidth, isInNewRow, }: {
6
+ export declare const formatColumn: ({ column, originalObj, rowKey, wrapToolTipProps, scroll, onUpdateMinWidth, isInNewRow, diffConfig, }: {
4
7
  column: ProTableColumn;
5
8
  originalObj: any;
6
- dataSourceObj: any;
7
9
  rowKey: any;
8
- diffToolTip?: boolean;
9
10
  wrapToolTipProps?: any;
10
11
  scroll?: any;
11
12
  onUpdateMinWidth?: any;
12
13
  isInNewRow?: any;
14
+ diffConfig: any;
13
15
  }) => void;
14
16
  /**
15
17
  * 查找最近的父级className