ztxkui 3.5.3 → 3.5.4

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.
@@ -12,6 +12,7 @@ interface IProps {
12
12
  handleRef?: any;
13
13
  checked: boolean;
14
14
  form: any;
15
+ setQunjSeal: any;
15
16
  }
16
17
  declare const QunjSeal: React.FC<IProps>;
17
18
  export default QunjSeal;
@@ -23,12 +23,14 @@ import { Form, InputNumber, SearchContainer, Radio } from '../../../../index';
23
23
  import { SealCheckboxGroup } from './SealCheckbox';
24
24
  var Item = SearchContainer.SearchItem;
25
25
  var QunjSeal = function (_a) {
26
- var value = _a.value, onChange = _a.onChange, isEdit = _a.isEdit, showContranctNum = _a.showContranctNum, sealList = _a.sealList, handleRef = _a.handleRef, checked = _a.checked, form = _a.form;
26
+ var value = _a.value, onChange = _a.onChange, isEdit = _a.isEdit, showContranctNum = _a.showContranctNum, sealList = _a.sealList, handleRef = _a.handleRef, checked = _a.checked, form = _a.form, setQunjSeal = _a.setQunjSeal;
27
27
  useEffect(function () {
28
28
  if (value) {
29
- form.setFieldsValue(__assign(__assign(__assign({}, value), { isTakeOut: "" + value.isTakeOut === '1' ? 1 : 0 }), (value.contranctNum ? {} : { contranctNum: 1 })));
29
+ var _value = __assign(__assign(__assign({}, value), { isTakeOut: "" + value.isTakeOut === '1' ? 1 : 0 }), (value.contranctNum ? {} : { contranctNum: 1 }));
30
+ form.setFieldsValue(_value);
31
+ setQunjSeal(_value);
30
32
  }
31
- }, [value, form]);
33
+ }, [value, form, setQunjSeal]);
32
34
  var onSealCheckboxHandle = function (values) {
33
35
  form.setFieldsValue({
34
36
  values: values,
@@ -474,7 +474,7 @@ var Sinatures = function (_a) {
474
474
  width: 620,
475
475
  render: function (value, row, index) {
476
476
  var obj = {
477
- children: (React.createElement(QunjSeal, { value: qunjSeal, onChange: qunjSealChangeHandle, isEdit: isEdit, handleRef: handleRef, showContranctNum: showContranctNum, sealList: sealList, checked: checked, form: form })),
477
+ children: (React.createElement(QunjSeal, { value: qunjSeal, onChange: qunjSealChangeHandle, isEdit: isEdit, handleRef: handleRef, showContranctNum: showContranctNum, sealList: sealList, checked: checked, form: form, setQunjSeal: setQunjSeal })),
478
478
  props: {},
479
479
  };
480
480
  obj.props['rowSpan'] = index === 0 ? records.length : 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "3.5.3",
3
+ "version": "3.5.4",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",