@zat-design/sisyphus-react 3.4.9-beta.4 → 3.4.9-beta.5

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.
@@ -109,9 +109,12 @@ var RenderFields = function RenderFields(props) {
109
109
  if (typeof _type === 'string') {
110
110
  TargetComponent = _isView && viewRender ? viewRenderHandle : componentMap[_type];
111
111
  }
112
+ // 自定义组件时 防止默认值影像后续判断
113
+ if ('component' in column) {
114
+ _type = null;
115
+ }
112
116
  if (component && /*#__PURE__*/React.isValidElement(component)) {
113
117
  var _newComponent$props;
114
- _type = null;
115
118
  var newComponent = component;
116
119
  var isProEditTable = (newComponent === null || newComponent === void 0 ? void 0 : (_newComponent$props = newComponent.props) === null || _newComponent$props === void 0 ? void 0 : _newComponent$props.onlyOneLineMsg) === '请先保存数据';
117
120
  TargetComponent = _isView ? viewRenderHandle || '' : component;
@@ -117,9 +117,12 @@ var RenderFields = function RenderFields(props) {
117
117
  if (typeof _type === 'string') {
118
118
  TargetComponent = _isView && viewRender ? viewRenderHandle : componentMap[_type];
119
119
  }
120
+ // 自定义组件时 防止默认值影像后续判断
121
+ if ('component' in column) {
122
+ _type = null;
123
+ }
120
124
  if (component && /*#__PURE__*/_react.default.isValidElement(component)) {
121
125
  var _newComponent$props;
122
- _type = null;
123
126
  var newComponent = component;
124
127
  var isProEditTable = (newComponent === null || newComponent === void 0 ? void 0 : (_newComponent$props = newComponent.props) === null || _newComponent$props === void 0 ? void 0 : _newComponent$props.onlyOneLineMsg) === '请先保存数据';
125
128
  TargetComponent = _isView ? viewRenderHandle || '' : component;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.4.9-beta.4",
3
+ "version": "3.4.9-beta.5",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",