@zat-design/sisyphus-react 3.9.0-beta.13 → 3.9.0-beta.15
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.
|
@@ -11,7 +11,7 @@ import { isValidElement } from 'react';
|
|
|
11
11
|
import moment from 'moment';
|
|
12
12
|
import classnames from 'classnames';
|
|
13
13
|
import ReactDOM from 'react-dom';
|
|
14
|
-
import { isEqual, isFunction, isString, isObject } from 'lodash';
|
|
14
|
+
import { isEqual, isFunction, isString, isObject, isBoolean } from 'lodash';
|
|
15
15
|
import { tools } from '@zat-design/utils';
|
|
16
16
|
import TooltipTitle from '../TooltipTitle';
|
|
17
17
|
import RenderColumn from '../RenderColumn';
|
|
@@ -136,6 +136,10 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
136
136
|
record: record,
|
|
137
137
|
index: index
|
|
138
138
|
});
|
|
139
|
+
// viewRender 返回值为 false 时,不显示对比
|
|
140
|
+
if (isBoolean(diffResult)) {
|
|
141
|
+
otherProps.isChanged = false;
|
|
142
|
+
}
|
|
139
143
|
originalValue = diffResult;
|
|
140
144
|
}
|
|
141
145
|
return _jsx(RenderColumn, _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
@@ -142,6 +142,10 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref2) {
|
|
|
142
142
|
record: record,
|
|
143
143
|
index: index
|
|
144
144
|
});
|
|
145
|
+
// viewRender 返回值为 false 时,不显示对比
|
|
146
|
+
if ((0, _lodash.isBoolean)(diffResult)) {
|
|
147
|
+
otherProps.isChanged = false;
|
|
148
|
+
}
|
|
145
149
|
originalValue = diffResult;
|
|
146
150
|
}
|
|
147
151
|
return (0, _jsxRuntime.jsx)(_RenderColumn.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, otherProps), {}, {
|