@zat-design/sisyphus-react 3.13.16-beta.6 → 3.13.16-beta.8

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.
@@ -6,7 +6,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
6
6
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
7
7
  import _isObject from "lodash/isObject";
8
8
  import _isFunction from "lodash/isFunction";
9
- var _excluded = ["onChange", "children", "confirm", "otherProps"];
9
+ var _excluded = ["onChange", "children", "confirm"];
10
10
  import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
11
11
  import React from 'react';
12
12
  import ProForm from '../../index';
@@ -18,10 +18,9 @@ var ConfirmWrapper = function ConfirmWrapper(props) {
18
18
  var onChange = props.onChange,
19
19
  children = props.children,
20
20
  confirm = props.confirm,
21
- otherProps = props.otherProps,
22
21
  rest = _objectWithoutProperties(props, _excluded);
23
- var _ProForm$useFieldProp = ProForm.useFieldProps(),
24
- form = _ProForm$useFieldProp.form;
22
+ var otherProps = ProForm.useFieldProps() || props.otherProps;
23
+ var form = otherProps.form;
25
24
  var handleChange = /*#__PURE__*/function () {
26
25
  var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
27
26
  var _len,
@@ -16,7 +16,7 @@ var _isFunction2 = _interopRequireDefault(require("lodash/isFunction"));
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
17
  var _react = _interopRequireDefault(require("react"));
18
18
  var _index = _interopRequireDefault(require("../../index"));
19
- var _excluded = ["onChange", "children", "confirm", "otherProps"];
19
+ var _excluded = ["onChange", "children", "confirm"];
20
20
  var defaultConfirmProps = {
21
21
  title: '操作提示',
22
22
  content: '确定要修改该字段吗?'
@@ -25,10 +25,9 @@ var ConfirmWrapper = function ConfirmWrapper(props) {
25
25
  var onChange = props.onChange,
26
26
  children = props.children,
27
27
  confirm = props.confirm,
28
- otherProps = props.otherProps,
29
28
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
30
- var _ProForm$useFieldProp = _index.default.useFieldProps(),
31
- form = _ProForm$useFieldProp.form;
29
+ var otherProps = _index.default.useFieldProps() || props.otherProps;
30
+ var form = otherProps.form;
32
31
  var handleChange = /*#__PURE__*/function () {
33
32
  var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(value) {
34
33
  var _len,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.13.16-beta.6",
3
+ "version": "3.13.16-beta.8",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -67,7 +67,7 @@
67
67
  "@dnd-kit/sortable": "^7.0.2",
68
68
  "@dnd-kit/utilities": "^3.2.1",
69
69
  "@pansy/react-watermark": "^3.1.13",
70
- "@zat-design/utils": "1.1.41",
70
+ "@zat-design/utils": "1.1.42",
71
71
  "ahooks": "3.8.4",
72
72
  "antd": "4.24.16",
73
73
  "big.js": "^6.2.1",