@zat-design/sisyphus-react 3.4.9-beta.1 → 3.4.9-beta.10

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.
@@ -682,7 +682,7 @@
682
682
  .pro-collapse .pro-collapse-icon img {
683
683
  vertical-align: sub;
684
684
  }
685
- .pro-collapse.pro-collapse-no-title .ant-collapse-header {
685
+ .pro-collapse.pro-collapse-no-title > .pro-collapse-panel > .ant-collapse-header {
686
686
  display: none !important;
687
687
  }
688
688
  .pro-collapse.pro-collapse-no-title .pro-collapse-level2 .ant-collapse-header {
package/dist/less.esm.css CHANGED
@@ -682,7 +682,7 @@
682
682
  .pro-collapse .pro-collapse-icon img {
683
683
  vertical-align: sub;
684
684
  }
685
- .pro-collapse.pro-collapse-no-title .ant-collapse-header {
685
+ .pro-collapse.pro-collapse-no-title > .pro-collapse-panel > .ant-collapse-header {
686
686
  display: none !important;
687
687
  }
688
688
  .pro-collapse.pro-collapse-no-title .pro-collapse-level2 .ant-collapse-header {
@@ -89,6 +89,10 @@ var RenderField = function RenderField(_ref) {
89
89
  }
90
90
  // type类型 首字母转大写
91
91
  type = ((_type = type) === null || _type === void 0 ? void 0 : (_type$replace = _type.replace) === null || _type$replace === void 0 ? void 0 : _type$replace.call(_type, type[0], type[0].toUpperCase())) || 'Input';
92
+ // 自定义组件时 防止默认值影像后续判断
93
+ if ('component' in column) {
94
+ type = null;
95
+ }
92
96
  // 单行正在编辑时,临时生成一套formItem用来存储中间值,点击取消时候重置回上一次状态
93
97
  var namePath = getNamePath(name, virtualKey);
94
98
  var rowData = form.getFieldValue([].concat(_toConsumableArray(namePath), [index])) || record || {};
@@ -4,6 +4,7 @@ interface Props extends Pick<ProEnum, 'value' | 'onChange' | 'dataSource'> {
4
4
  fieldLabel: string;
5
5
  disabled?: boolean;
6
6
  allowClear?: boolean;
7
+ button?: boolean;
7
8
  }
8
9
  declare const Group: (props: Props) => JSX.Element;
9
10
  export default Group;
@@ -12,7 +12,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
12
12
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
13
13
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
14
14
  var _excluded = ["code", "type", "dataSource", "useRequest", "value", "component", "onChange", "transformResponse", "otherProps"],
15
- _excluded2 = ["fieldNames", "clear", "cacheKey"];
15
+ _excluded2 = ["fieldNames", "clear", "cacheKey", "showCodeName"];
16
16
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
17
17
  import { useDeepCompareEffect, useRequest as useRequestFunc } from 'ahooks';
18
18
  import React, { useState, useEffect, useMemo } from 'react';
@@ -28,6 +28,7 @@ import useEnum from './hooks/useEnum';
28
28
  import locale from '../locale';
29
29
  import './style/index.less';
30
30
  var ProEnum = function ProEnum(props) {
31
+ var _enumProps$showCodeNa;
31
32
  var code = props.code,
32
33
  _props$type = props.type,
33
34
  type = _props$type === void 0 ? 'ProSelect' : _props$type,
@@ -48,7 +49,9 @@ var ProEnum = function ProEnum(props) {
48
49
  clear = _ref2$clear === void 0 ? true : _ref2$clear,
49
50
  _ref2$cacheKey = _ref2.cacheKey,
50
51
  cacheKey = _ref2$cacheKey === void 0 ? 'zat-design-pro-component-cacheKey' : _ref2$cacheKey,
52
+ showCodeName = _ref2.showCodeName,
51
53
  resProps = _objectWithoutProperties(_ref2, _excluded2);
54
+ enumProps.showCodeName = (_enumProps$showCodeNa = enumProps.showCodeName) !== null && _enumProps$showCodeNa !== void 0 ? _enumProps$showCodeNa : showCodeName;
52
55
  var label = '';
53
56
  var fieldValue = '';
54
57
  var _useState = useState(dataSource || []),
@@ -235,8 +238,8 @@ var ProEnum = function ProEnum(props) {
235
238
  return item[fieldValue] === (v === null || v === void 0 ? void 0 : v[fieldValue]);
236
239
  }
237
240
  return item[fieldValue] === v;
238
- });
239
- return enumProps.showCodeName ? "".concat(option[fieldValue], "-").concat(option[label]) : option === null || option === void 0 ? void 0 : option[label];
241
+ }) || {};
242
+ return enumProps.showCodeName ? "".concat(option === null || option === void 0 ? void 0 : option[fieldValue], "-").concat(option === null || option === void 0 ? void 0 : option[label]) : option === null || option === void 0 ? void 0 : option[label];
240
243
  });
241
244
  var record = value.map(function (v) {
242
245
  return list.find(function (item) {
@@ -76,8 +76,8 @@
76
76
  }
77
77
 
78
78
  .pro-enum-group-item-selected {
79
- color: var(--zaui-brand);
80
- background: #fff;
79
+ background: var(--zaui-brand);
80
+ color: #fff;
81
81
  border: 1px solid var(--zaui-brand);
82
82
  &::after {
83
83
  background: transparent;
@@ -220,7 +220,8 @@ export var transformColumns = function transformColumns(params) {
220
220
  onFieldChange === null || onFieldChange === void 0 ? void 0 : onFieldChange(newValue, form.getFieldValue(namePath), {
221
221
  index: outerIndex,
222
222
  namePath: namePath,
223
- form: form
223
+ form: form,
224
+ option: args === null || args === void 0 ? void 0 : args[1]
224
225
  });
225
226
  };
226
227
  return _objectSpread(_objectSpread(_objectSpread({}, column), {}, {
@@ -703,7 +703,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
703
703
  queryBean: queryBean
704
704
  } : queryBean;
705
705
  run(params);
706
- }, 800),
706
+ }, 2000),
707
707
  style: {
708
708
  width: isView || disabled ? '100%' : 'calc(100% - 30px)'
709
709
  }
@@ -122,8 +122,12 @@ var ProRangeLimit = function ProRangeLimit(props) {
122
122
  start = _ref9[0],
123
123
  end = _ref9[1];
124
124
  if (e.target.checked) {
125
- var _start, _end;
126
- start = start || moment().startOf('day');
125
+ var _rest$allowEmpty, _start, _end;
126
+ if (((_rest$allowEmpty = rest.allowEmpty) === null || _rest$allowEmpty === void 0 ? void 0 : _rest$allowEmpty[0]) === true) {
127
+ start = null;
128
+ } else {
129
+ start = start || moment().startOf('day');
130
+ }
127
131
  end = foreverMoment;
128
132
  onChange([start, end, e.target.checked], [(_start = start) === null || _start === void 0 ? void 0 : _start.format(format), (_end = end) === null || _end === void 0 ? void 0 : _end.format(format), foreverStr]);
129
133
  } else {
@@ -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;
@@ -11,9 +11,12 @@
11
11
  }
12
12
 
13
13
  &.pro-collapse-no-title {
14
- .@{ant-prefix}-collapse-header {
15
- display: none !important;
14
+ &>.pro-collapse-panel{
15
+ &>.@{ant-prefix}-collapse-header {
16
+ display: none !important;
17
+ }
16
18
  }
19
+
17
20
  .pro-collapse-level2{
18
21
  .@{ant-prefix}-collapse-header {
19
22
  display: flex !important;
@@ -23,10 +23,11 @@ import { getSelectList } from './utils';
23
23
  import './index.less';
24
24
  var Option = _Select.Option;
25
25
  export var ProSelect = function ProSelect(props, ref) {
26
- var _locale$ProSelect;
26
+ var _selectProps$showCode, _locale$ProSelect;
27
27
  var _ref = useProConfig('ProSelect') || {},
28
28
  _ref$fieldNames = _ref.fieldNames,
29
- proSelectFieldNames = _ref$fieldNames === void 0 ? {} : _ref$fieldNames;
29
+ proSelectFieldNames = _ref$fieldNames === void 0 ? {} : _ref$fieldNames,
30
+ showCodeName = _ref.showCodeName;
30
31
  var label = 'label';
31
32
  var code = 'value';
32
33
  if (proSelectFieldNames && Object.keys(proSelectFieldNames).length) {
@@ -54,6 +55,7 @@ export var ProSelect = function ProSelect(props, ref) {
54
55
  transformResponse = props.transformResponse,
55
56
  isViewPro = props.isView,
56
57
  selectProps = _objectWithoutProperties(props, _excluded);
58
+ selectProps.showCodeName = (_selectProps$showCode = selectProps.showCodeName) !== null && _selectProps$showCode !== void 0 ? _selectProps$showCode : showCodeName;
57
59
  var value = props.value;
58
60
  var _ref2 = ProForm.useFieldProps() || {},
59
61
  isViewCon = _ref2.isView,
@@ -269,14 +271,13 @@ export var ProSelect = function ProSelect(props, ref) {
269
271
  return value;
270
272
  };
271
273
  var newSelectList = selectList;
272
- console.log('otherProps', otherProps, filterInList);
273
- debugger;
274
274
  if ((otherProps === null || otherProps === void 0 ? void 0 : otherProps.listName) && filterInList) {
275
275
  newSelectList = getSelectList({
276
276
  otherProps: otherProps,
277
277
  value: props.value,
278
278
  dataSource: selectList,
279
- labelInValue: labelInValue
279
+ labelInValue: labelInValue,
280
+ fieldNames: fieldNames
280
281
  });
281
282
  }
282
283
  return _jsx(_Select, _objectSpread(_objectSpread({
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * 返回当前组件可以显示的数据源
3
3
  */
4
- export declare const getSelectList: ({ otherProps, value, dataSource, labelInValue, }: {
4
+ export declare const getSelectList: ({ otherProps, value, dataSource, labelInValue, fieldNames, }: {
5
5
  otherProps: any;
6
6
  value: any;
7
7
  dataSource: any;
8
8
  labelInValue: any;
9
+ fieldNames: any;
9
10
  }) => any;
@@ -6,7 +6,8 @@ var findSelectNameValues = function findSelectNameValues(_ref) {
6
6
  selectName = _ref.selectName,
7
7
  value = _ref.value,
8
8
  dataSource = _ref.dataSource,
9
- labelInValue = _ref.labelInValue;
9
+ labelInValue = _ref.labelInValue,
10
+ fieldNames = _ref.fieldNames;
10
11
  var selectValues = [];
11
12
  list.forEach(function (item) {
12
13
  var result = item;
@@ -29,7 +30,7 @@ var findSelectNameValues = function findSelectNameValues(_ref) {
29
30
  });
30
31
  var diffList = _.difference(selectValues, [value]);
31
32
  return dataSource.filter(function (item) {
32
- return !diffList.includes(labelInValue ? item : item.value);
33
+ return !diffList.includes(labelInValue ? item : item[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value] || (item === null || item === void 0 ? void 0 : item.value));
33
34
  });
34
35
  };
35
36
  /**
@@ -39,7 +40,8 @@ export var getSelectList = function getSelectList(_ref2) {
39
40
  var otherProps = _ref2.otherProps,
40
41
  value = _ref2.value,
41
42
  dataSource = _ref2.dataSource,
42
- labelInValue = _ref2.labelInValue;
43
+ labelInValue = _ref2.labelInValue,
44
+ fieldNames = _ref2.fieldNames;
43
45
  if (!otherProps) {
44
46
  return null;
45
47
  }
@@ -55,6 +57,7 @@ export var getSelectList = function getSelectList(_ref2) {
55
57
  selectName: selectName,
56
58
  value: value,
57
59
  dataSource: dataSource,
58
- labelInValue: labelInValue
60
+ labelInValue: labelInValue,
61
+ fieldNames: fieldNames
59
62
  });
60
63
  };
@@ -92,6 +92,10 @@ var RenderField = function RenderField(_ref) {
92
92
  }
93
93
  // type类型 首字母转大写
94
94
  type = ((_type = type) === null || _type === void 0 ? void 0 : (_type$replace = _type.replace) === null || _type$replace === void 0 ? void 0 : _type$replace.call(_type, type[0], type[0].toUpperCase())) || 'Input';
95
+ // 自定义组件时 防止默认值影像后续判断
96
+ if ('component' in column) {
97
+ type = null;
98
+ }
95
99
  // 单行正在编辑时,临时生成一套formItem用来存储中间值,点击取消时候重置回上一次状态
96
100
  var namePath = (0, _tools.getNamePath)(name, virtualKey);
97
101
  var rowData = form.getFieldValue([].concat((0, _toConsumableArray2.default)(namePath), [index])) || record || {};
@@ -4,6 +4,7 @@ interface Props extends Pick<ProEnum, 'value' | 'onChange' | 'dataSource'> {
4
4
  fieldLabel: string;
5
5
  disabled?: boolean;
6
6
  allowClear?: boolean;
7
+ button?: boolean;
7
8
  }
8
9
  declare const Group: (props: Props) => JSX.Element;
9
10
  export default Group;
@@ -27,8 +27,9 @@ var _useEnum = _interopRequireDefault(require("./hooks/useEnum"));
27
27
  var _locale = _interopRequireDefault(require("../locale"));
28
28
  require("./style/index.less");
29
29
  var _excluded = ["code", "type", "dataSource", "useRequest", "value", "component", "onChange", "transformResponse", "otherProps"],
30
- _excluded2 = ["fieldNames", "clear", "cacheKey"];
30
+ _excluded2 = ["fieldNames", "clear", "cacheKey", "showCodeName"];
31
31
  var ProEnum = function ProEnum(props) {
32
+ var _enumProps$showCodeNa;
32
33
  var code = props.code,
33
34
  _props$type = props.type,
34
35
  type = _props$type === void 0 ? 'ProSelect' : _props$type,
@@ -49,7 +50,9 @@ var ProEnum = function ProEnum(props) {
49
50
  clear = _ref2$clear === void 0 ? true : _ref2$clear,
50
51
  _ref2$cacheKey = _ref2.cacheKey,
51
52
  cacheKey = _ref2$cacheKey === void 0 ? 'zat-design-pro-component-cacheKey' : _ref2$cacheKey,
53
+ showCodeName = _ref2.showCodeName,
52
54
  resProps = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
55
+ enumProps.showCodeName = (_enumProps$showCodeNa = enumProps.showCodeName) !== null && _enumProps$showCodeNa !== void 0 ? _enumProps$showCodeNa : showCodeName;
53
56
  var label = '';
54
57
  var fieldValue = '';
55
58
  var _useState = (0, _react.useState)(dataSource || []),
@@ -236,8 +239,8 @@ var ProEnum = function ProEnum(props) {
236
239
  return item[fieldValue] === (v === null || v === void 0 ? void 0 : v[fieldValue]);
237
240
  }
238
241
  return item[fieldValue] === v;
239
- });
240
- return enumProps.showCodeName ? "".concat(option[fieldValue], "-").concat(option[label]) : option === null || option === void 0 ? void 0 : option[label];
242
+ }) || {};
243
+ return enumProps.showCodeName ? "".concat(option === null || option === void 0 ? void 0 : option[fieldValue], "-").concat(option === null || option === void 0 ? void 0 : option[label]) : option === null || option === void 0 ? void 0 : option[label];
241
244
  });
242
245
  var record = value.map(function (v) {
243
246
  return list.find(function (item) {
@@ -76,8 +76,8 @@
76
76
  }
77
77
 
78
78
  .pro-enum-group-item-selected {
79
- color: var(--zaui-brand);
80
- background: #fff;
79
+ background: var(--zaui-brand);
80
+ color: #fff;
81
81
  border: 1px solid var(--zaui-brand);
82
82
  &::after {
83
83
  background: transparent;
@@ -227,7 +227,8 @@ var transformColumns = exports.transformColumns = function transformColumns(para
227
227
  onFieldChange === null || onFieldChange === void 0 ? void 0 : onFieldChange(newValue, form.getFieldValue(namePath), {
228
228
  index: outerIndex,
229
229
  namePath: namePath,
230
- form: form
230
+ form: form,
231
+ option: args === null || args === void 0 ? void 0 : args[1]
231
232
  });
232
233
  };
233
234
  return (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, column), {}, {
@@ -700,7 +700,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
700
700
  queryBean: queryBean
701
701
  } : queryBean;
702
702
  run(params);
703
- }, 800),
703
+ }, 2000),
704
704
  style: {
705
705
  width: isView || disabled ? '100%' : 'calc(100% - 30px)'
706
706
  }
@@ -124,8 +124,12 @@ var ProRangeLimit = function ProRangeLimit(props) {
124
124
  start = _ref9[0],
125
125
  end = _ref9[1];
126
126
  if (e.target.checked) {
127
- var _start, _end;
128
- start = start || (0, _moment.default)().startOf('day');
127
+ var _rest$allowEmpty, _start, _end;
128
+ if (((_rest$allowEmpty = rest.allowEmpty) === null || _rest$allowEmpty === void 0 ? void 0 : _rest$allowEmpty[0]) === true) {
129
+ start = null;
130
+ } else {
131
+ start = start || (0, _moment.default)().startOf('day');
132
+ }
129
133
  end = foreverMoment;
130
134
  onChange([start, end, e.target.checked], [(_start = start) === null || _start === void 0 ? void 0 : _start.format(format), (_end = end) === null || _end === void 0 ? void 0 : _end.format(format), foreverStr]);
131
135
  } else {
@@ -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;
@@ -11,9 +11,12 @@
11
11
  }
12
12
 
13
13
  &.pro-collapse-no-title {
14
- .@{ant-prefix}-collapse-header {
15
- display: none !important;
14
+ &>.pro-collapse-panel{
15
+ &>.@{ant-prefix}-collapse-header {
16
+ display: none !important;
17
+ }
16
18
  }
19
+
17
20
  .pro-collapse-level2{
18
21
  .@{ant-prefix}-collapse-header {
19
22
  display: flex !important;
@@ -24,10 +24,11 @@ require("./index.less");
24
24
  var _excluded = ["dataSource", "defaultDisableValue", "useRequest", "fieldNames", "tooltip", "otherProps", "labelInValue", "filterInList", "scrollFollowParent", "defaultOne", "onSearch", "optionRender", "onChange", "updateDataSource", "transformResponse", "isView"];
25
25
  var Option = _antd.Select.Option;
26
26
  var ProSelect = exports.ProSelect = function ProSelect(props, ref) {
27
- var _locale$ProSelect;
27
+ var _selectProps$showCode, _locale$ProSelect;
28
28
  var _ref = (0, _ProConfigProvider.useProConfig)('ProSelect') || {},
29
29
  _ref$fieldNames = _ref.fieldNames,
30
- proSelectFieldNames = _ref$fieldNames === void 0 ? {} : _ref$fieldNames;
30
+ proSelectFieldNames = _ref$fieldNames === void 0 ? {} : _ref$fieldNames,
31
+ showCodeName = _ref.showCodeName;
31
32
  var label = 'label';
32
33
  var code = 'value';
33
34
  if (proSelectFieldNames && Object.keys(proSelectFieldNames).length) {
@@ -55,6 +56,7 @@ var ProSelect = exports.ProSelect = function ProSelect(props, ref) {
55
56
  transformResponse = props.transformResponse,
56
57
  isViewPro = props.isView,
57
58
  selectProps = (0, _objectWithoutProperties2.default)(props, _excluded);
59
+ selectProps.showCodeName = (_selectProps$showCode = selectProps.showCodeName) !== null && _selectProps$showCode !== void 0 ? _selectProps$showCode : showCodeName;
58
60
  var value = props.value;
59
61
  var _ref2 = _.ProForm.useFieldProps() || {},
60
62
  isViewCon = _ref2.isView,
@@ -270,14 +272,13 @@ var ProSelect = exports.ProSelect = function ProSelect(props, ref) {
270
272
  return value;
271
273
  };
272
274
  var newSelectList = selectList;
273
- console.log('otherProps', otherProps, filterInList);
274
- debugger;
275
275
  if ((otherProps === null || otherProps === void 0 ? void 0 : otherProps.listName) && filterInList) {
276
276
  newSelectList = (0, _utils.getSelectList)({
277
277
  otherProps: otherProps,
278
278
  value: props.value,
279
279
  dataSource: selectList,
280
- labelInValue: labelInValue
280
+ labelInValue: labelInValue,
281
+ fieldNames: fieldNames
281
282
  });
282
283
  }
283
284
  return (0, _jsxRuntime.jsx)(_antd.Select, (0, _objectSpread2.default)((0, _objectSpread2.default)({
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * 返回当前组件可以显示的数据源
3
3
  */
4
- export declare const getSelectList: ({ otherProps, value, dataSource, labelInValue, }: {
4
+ export declare const getSelectList: ({ otherProps, value, dataSource, labelInValue, fieldNames, }: {
5
5
  otherProps: any;
6
6
  value: any;
7
7
  dataSource: any;
8
8
  labelInValue: any;
9
+ fieldNames: any;
9
10
  }) => any;
@@ -14,7 +14,8 @@ var findSelectNameValues = function findSelectNameValues(_ref) {
14
14
  selectName = _ref.selectName,
15
15
  value = _ref.value,
16
16
  dataSource = _ref.dataSource,
17
- labelInValue = _ref.labelInValue;
17
+ labelInValue = _ref.labelInValue,
18
+ fieldNames = _ref.fieldNames;
18
19
  var selectValues = [];
19
20
  list.forEach(function (item) {
20
21
  var result = item;
@@ -37,7 +38,7 @@ var findSelectNameValues = function findSelectNameValues(_ref) {
37
38
  });
38
39
  var diffList = _lodash.default.difference(selectValues, [value]);
39
40
  return dataSource.filter(function (item) {
40
- return !diffList.includes(labelInValue ? item : item.value);
41
+ return !diffList.includes(labelInValue ? item : item[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value] || (item === null || item === void 0 ? void 0 : item.value));
41
42
  });
42
43
  };
43
44
  /**
@@ -47,7 +48,8 @@ var getSelectList = exports.getSelectList = function getSelectList(_ref2) {
47
48
  var otherProps = _ref2.otherProps,
48
49
  value = _ref2.value,
49
50
  dataSource = _ref2.dataSource,
50
- labelInValue = _ref2.labelInValue;
51
+ labelInValue = _ref2.labelInValue,
52
+ fieldNames = _ref2.fieldNames;
51
53
  if (!otherProps) {
52
54
  return null;
53
55
  }
@@ -63,6 +65,7 @@ var getSelectList = exports.getSelectList = function getSelectList(_ref2) {
63
65
  selectName: selectName,
64
66
  value: value,
65
67
  dataSource: dataSource,
66
- labelInValue: labelInValue
68
+ labelInValue: labelInValue,
69
+ fieldNames: fieldNames
67
70
  });
68
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.4.9-beta.1",
3
+ "version": "3.4.9-beta.10",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -58,7 +58,7 @@
58
58
  "@dnd-kit/sortable": "^7.0.2",
59
59
  "@dnd-kit/utilities": "^3.2.1",
60
60
  "@pansy/react-watermark": "^3.1.13",
61
- "@zat-design/utils": "^1.1.20",
61
+ "@zat-design/utils": "^1.1.22",
62
62
  "ahooks": "3.7.4",
63
63
  "antd": "4.24.8",
64
64
  "big.js": "^6.2.1",