react-antd-xform 1.0.13 → 1.0.14

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.
@@ -40,11 +40,9 @@ const isEmptyDateValue = (val) => val == null || val === "" || Array.isArray(val
40
40
  const withValueChangeHandler = (Component) => {
41
41
  return (props) => {
42
42
  const handleChange = (e) => {
43
- var _a, _b, _c;
44
- if ((_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value) {
45
- (_b = props.onChange) == null ? void 0 : _b.call(props, e.target.value);
46
- } else {
47
- (_c = props.onChange) == null ? void 0 : _c.call(props, e);
43
+ var _a;
44
+ if (e == null ? void 0 : e.target) {
45
+ (_a = props.onChange) == null ? void 0 : _a.call(props, e.target.value);
48
46
  }
49
47
  };
50
48
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...props, onChange: handleChange });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-antd-xform",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "基于mobx的form解决方案",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",