@hw-component/form 1.9.7 → 1.9.9
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.
- package/.eslintcache +1 -1
- package/es/Cascader/index.js +6 -6
- package/es/CheckboxGroup/CheckBox/index.js +5 -5
- package/es/CheckboxGroup/hooks.js +4 -4
- package/es/CheckboxGroup/index.js +7 -7
- package/es/DialogForm/DrawerForm/index.js +6 -6
- package/es/DialogForm/ModalForm.js +6 -6
- package/es/DialogForm/hooks.d.ts +0 -1
- package/es/DialogForm/hooks.js +7 -7
- package/es/Form/Basic.d.ts +1 -1
- package/es/Form/Basic.js +6 -6
- package/es/Form/Context/FormConfigProvider.js +2 -2
- package/es/Form/FormItem/BasicItem.js +6 -5
- package/es/Form/FormItem/RegularFormItem.js +5 -5
- package/es/Form/FormItem/UpFormItem.js +5 -5
- package/es/Form/FormItem/hooks.d.ts +1 -1
- package/es/Form/FormItem/index.js +5 -5
- package/es/Form/HFormConnect.js +6 -6
- package/es/Form/config.d.ts +7 -5
- package/es/Form/hooks/index.d.ts +1 -1
- package/es/Form/hooks/index.js +5 -5
- package/es/Form/hooks/useDefaultRender.js +5 -5
- package/es/Form/hooks/useHForm.js +11 -11
- package/es/Form/hooks/useInitConfigData.js +3 -3
- package/es/Form/index.js +5 -5
- package/es/Input/ButtonInput.js +6 -6
- package/es/Input/ColorInput/index.js +25 -26
- package/es/Input/InputNumber.js +5 -5
- package/es/Input/InputNumberGroup.js +18 -21
- package/es/Input/SelectInput.d.ts +0 -1
- package/es/Input/SelectInput.js +4 -4
- package/es/Input/TrimInput.d.ts +0 -1
- package/es/Input/TrimInput.js +7 -7
- package/es/Input/VerificationCodeInput/hooks.d.ts +0 -1
- package/es/Input/VerificationCodeInput/index.js +7 -7
- package/es/Input/index.d.ts +1 -1
- package/es/Input/index.js +8 -8
- package/es/RadioGroup/index.js +6 -6
- package/es/Select/hooks/changeHooks.js +7 -8
- package/es/Select/hooks/norHooks.js +7 -7
- package/es/Select/hooks/util.js +21 -17
- package/es/Select/index.js +5 -5
- package/es/Select/utils.js +6 -7
- package/es/Submit/components.js +5 -5
- package/es/Submit/index.js +6 -6
- package/es/Switch/index.js +6 -6
- package/es/TDPicker/RangePicker.js +8 -8
- package/es/TDPicker/TimePicker.d.ts +0 -1
- package/es/TDPicker/TimePicker.js +5 -5
- package/es/TDPicker/hooks.js +2 -3
- package/es/TDPicker/index.js +5 -5
- package/es/TextArea/TrimTextArea.d.ts +0 -1
- package/es/TextArea/TrimTextArea.js +7 -7
- package/es/TextArea/index.js +5 -5
- package/es/Upload/UrlUpload/hooks.js +1 -2
- package/es/Upload/UrlUpload/index.js +12 -12
- package/es/Upload/hooks/change.js +10 -10
- package/es/Upload/hooks/customRequest.js +9 -9
- package/es/Upload/hooks/propsMaker.js +2 -2
- package/es/Upload/index.js +8 -8
- package/es/config.js +1 -1
- package/es/hooks/index.js +11 -12
- package/es/index.d.ts +3 -4
- package/lib/Cascader/index.js +6 -6
- package/lib/CheckboxGroup/CheckBox/index.js +5 -5
- package/lib/CheckboxGroup/hooks.js +4 -4
- package/lib/CheckboxGroup/index.js +7 -7
- package/lib/DialogForm/DrawerForm/index.js +6 -6
- package/lib/DialogForm/ModalForm.js +6 -6
- package/lib/DialogForm/hooks.d.ts +0 -1
- package/lib/DialogForm/hooks.js +7 -7
- package/lib/Form/Basic.d.ts +1 -1
- package/lib/Form/Basic.js +6 -6
- package/lib/Form/Context/FormConfigProvider.js +2 -2
- package/lib/Form/FormItem/BasicItem.js +6 -5
- package/lib/Form/FormItem/RegularFormItem.js +5 -5
- package/lib/Form/FormItem/UpFormItem.js +5 -5
- package/lib/Form/FormItem/hooks.d.ts +1 -1
- package/lib/Form/FormItem/index.js +5 -5
- package/lib/Form/HFormConnect.js +6 -6
- package/lib/Form/config.d.ts +7 -5
- package/lib/Form/hooks/index.d.ts +1 -1
- package/lib/Form/hooks/index.js +5 -5
- package/lib/Form/hooks/useDefaultRender.js +5 -5
- package/lib/Form/hooks/useHForm.js +11 -11
- package/lib/Form/hooks/useInitConfigData.js +3 -3
- package/lib/Form/index.js +5 -5
- package/lib/Input/ButtonInput.js +6 -6
- package/lib/Input/ColorInput/index.js +25 -26
- package/lib/Input/InputNumber.js +5 -5
- package/lib/Input/InputNumberGroup.js +18 -21
- package/lib/Input/SelectInput.d.ts +0 -1
- package/lib/Input/SelectInput.js +4 -4
- package/lib/Input/TrimInput.d.ts +0 -1
- package/lib/Input/TrimInput.js +7 -7
- package/lib/Input/VerificationCodeInput/hooks.d.ts +0 -1
- package/lib/Input/VerificationCodeInput/index.js +7 -7
- package/lib/Input/index.d.ts +1 -1
- package/lib/Input/index.js +8 -8
- package/lib/RadioGroup/index.js +6 -6
- package/lib/Select/hooks/changeHooks.js +7 -8
- package/lib/Select/hooks/norHooks.js +7 -7
- package/lib/Select/hooks/util.js +21 -17
- package/lib/Select/index.js +5 -5
- package/lib/Select/utils.js +6 -7
- package/lib/Submit/components.js +5 -5
- package/lib/Submit/index.js +6 -6
- package/lib/Switch/index.js +6 -6
- package/lib/TDPicker/RangePicker.js +8 -8
- package/lib/TDPicker/TimePicker.d.ts +0 -1
- package/lib/TDPicker/TimePicker.js +5 -5
- package/lib/TDPicker/hooks.js +2 -3
- package/lib/TDPicker/index.js +5 -5
- package/lib/TextArea/TrimTextArea.d.ts +0 -1
- package/lib/TextArea/TrimTextArea.js +7 -7
- package/lib/TextArea/index.js +5 -5
- package/lib/Upload/UrlUpload/hooks.js +1 -2
- package/lib/Upload/UrlUpload/index.js +12 -12
- package/lib/Upload/hooks/change.js +10 -10
- package/lib/Upload/hooks/customRequest.js +9 -9
- package/lib/Upload/hooks/propsMaker.js +2 -2
- package/lib/Upload/index.js +8 -8
- package/lib/config.js +1 -1
- package/lib/hooks/index.js +11 -12
- package/lib/index.d.ts +3 -4
- package/package.json +16 -19
- package/src/components/Form/Basic.tsx +6 -2
- package/src/components/Form/FormItem/BasicItem.tsx +7 -5
- package/src/components/Form/FormItem/UpFormItem.tsx +9 -2
- package/src/components/Form/FormItem/hooks.tsx +9 -4
- package/src/components/Form/hooks/index.ts +2 -2
- package/src/components/Form/hooks/useHForm.ts +5 -5
- package/src/components/Form/index.tsx +7 -3
- package/src/components/Form/modal.ts +8 -5
- package/src/components/Input/index.tsx +11 -6
- package/src/components/Select/hooks/changeHooks.tsx +1 -0
- package/src/components/Select/hooks/util.ts +8 -4
- package/src/components/Select/index.tsx +1 -0
- package/src/components/Upload/UrlUpload/index.tsx +3 -3
- package/src/components/Upload/hooks/customRequest.ts +1 -1
- package/src/components/Upload/hooks/propsMaker.ts +4 -3
- package/src/components/Upload/index.tsx +4 -6
- package/src/components/Upload/modal.ts +2 -2
- package/src/components/config.ts +8 -8
- package/src/pages/Form/index.tsx +27 -25
- package/src/pages/Input/index.tsx +1 -1
- package/src/pages/Select/index.tsx +23 -9
- package/src/pages/Upload/index.tsx +1 -3
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
|
+
import _toConsumableArray from '@babel/runtime-corejs3/helpers/toConsumableArray';
|
|
3
|
+
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
4
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
5
|
+
import 'core-js/modules/es.array.concat.js';
|
|
6
|
+
import 'core-js/modules/es.array.map.js';
|
|
7
|
+
import 'core-js/modules/es.array.slice.js';
|
|
8
|
+
import 'core-js/modules/es.function.name.js';
|
|
2
9
|
import 'core-js/modules/es.symbol.js';
|
|
3
10
|
import 'core-js/modules/es.array.filter.js';
|
|
4
11
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
5
12
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
6
|
-
import _toConsumableArray from '@babel/runtime-corejs3/helpers/toConsumableArray';
|
|
7
|
-
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
8
|
-
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
9
13
|
import 'core-js/modules/es.object.keys.js';
|
|
10
14
|
import 'core-js/modules/es.object.to-string.js';
|
|
11
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
12
|
-
import 'core-js/modules/es.reflect.delete-property.js';
|
|
13
15
|
import 'core-js/modules/es.promise.js';
|
|
14
|
-
import 'core-js/modules/es.
|
|
15
|
-
import 'core-js/modules/
|
|
16
|
-
import 'core-js/modules/es.array.concat.js';
|
|
17
|
-
import 'core-js/modules/es.array.map.js';
|
|
16
|
+
import 'core-js/modules/es.reflect.delete-property.js';
|
|
17
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
18
18
|
import { useMemo } from 'react';
|
|
19
19
|
import { Form } from 'antd';
|
|
20
20
|
|
|
21
|
-
function ownKeys(
|
|
22
|
-
function _objectSpread(
|
|
21
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
23
|
var useHForm = (function () {
|
|
24
24
|
var _Form$useForm = Form.useForm(),
|
|
25
25
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
|
-
import 'core-js/modules/es.object.keys.js';
|
|
3
2
|
import 'core-js/modules/es.symbol.js';
|
|
4
3
|
import 'core-js/modules/es.array.filter.js';
|
|
5
4
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
6
5
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
6
|
+
import 'core-js/modules/es.object.keys.js';
|
|
7
7
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
8
8
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
9
9
|
import 'core-js/modules/es.array.map.js';
|
|
@@ -15,8 +15,8 @@ import { placeholderConfig } from '../config.js';
|
|
|
15
15
|
import { useDefaultComponents } from './index.js';
|
|
16
16
|
|
|
17
17
|
var _excluded = ["render"];
|
|
18
|
-
function ownKeys(
|
|
19
|
-
function _objectSpread(
|
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
var mathRequired = function mathRequired(configItem, form, defaultComponents) {
|
|
21
21
|
var required = configItem.required,
|
|
22
22
|
placeholder = configItem.placeholder,
|
package/es/Form/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
|
-
import 'core-js/modules/es.object.keys.js';
|
|
3
2
|
import 'core-js/modules/es.symbol.js';
|
|
4
3
|
import 'core-js/modules/es.array.filter.js';
|
|
5
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
6
4
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
8
5
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
6
|
+
import 'core-js/modules/es.object.keys.js';
|
|
7
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
9
9
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
10
10
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
11
11
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
@@ -19,8 +19,8 @@ import InitSet from './InitSet.js';
|
|
|
19
19
|
import Basic from './Basic.js';
|
|
20
20
|
|
|
21
21
|
var _excluded = ["configData", "labelWidth", "form", "request", "onFinish", "infoRequest", "valueType", "initialValues", "params", "onValuesChange", "itemSpan", "hideLabel", "gutter", "submitLoading", "labelAlign", "formItemStyle", "itemProps", "colon", "dismissOnPressEnter", "preserve"];
|
|
22
|
-
function ownKeys(
|
|
23
|
-
function _objectSpread(
|
|
22
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
24
|
var HForm = (function (_ref) {
|
|
25
25
|
var configData = _ref.configData,
|
|
26
26
|
labelWidth = _ref.labelWidth,
|
package/es/Input/ButtonInput.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
|
-
import 'core-js/modules/es.object.keys.js';
|
|
3
2
|
import 'core-js/modules/es.symbol.js';
|
|
4
3
|
import 'core-js/modules/es.array.filter.js';
|
|
5
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
6
4
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
8
5
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
6
|
+
import 'core-js/modules/es.object.keys.js';
|
|
7
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
9
9
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
10
10
|
import _asyncToGenerator from '@babel/runtime-corejs3/helpers/asyncToGenerator';
|
|
11
11
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
@@ -16,8 +16,8 @@ import { useRequest } from 'ahooks';
|
|
|
16
16
|
|
|
17
17
|
var _excluded = ["buttonProps", "value", "onChange", "children", "request"],
|
|
18
18
|
_excluded2 = ["onClick", "type", "ghost", "loading"];
|
|
19
|
-
function ownKeys(
|
|
20
|
-
function _objectSpread(
|
|
19
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
21
|
var Index = function Index(_ref) {
|
|
22
22
|
var _ref$buttonProps = _ref.buttonProps,
|
|
23
23
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
@@ -44,7 +44,7 @@ var Index = function Index(_ref) {
|
|
|
44
44
|
onChange === null || onChange === void 0 || onChange(e.target.value);
|
|
45
45
|
};
|
|
46
46
|
var click = /*#__PURE__*/function () {
|
|
47
|
-
var _ref2 = _asyncToGenerator(
|
|
47
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
48
48
|
var result;
|
|
49
49
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
50
50
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
|
-
import 'core-js/modules/es.regexp.constructor.js';
|
|
3
|
-
import 'core-js/modules/es.regexp.to-string.js';
|
|
4
|
-
import 'core-js/modules/es.array.iterator.js';
|
|
5
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
6
|
-
import 'core-js/modules/es.string.iterator.js';
|
|
7
|
-
import 'core-js/modules/es.weak-map.js';
|
|
8
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
10
|
-
import 'core-js/modules/es.object.keys.js';
|
|
11
|
-
import 'core-js/modules/es.symbol.replace.js';
|
|
12
|
-
import 'core-js/modules/es.string.replace.js';
|
|
13
|
-
import 'core-js/modules/es.symbol.js';
|
|
14
|
-
import 'core-js/modules/es.symbol.description.js';
|
|
15
|
-
import 'core-js/modules/es.array.join.js';
|
|
16
|
-
import 'core-js/modules/es.array.slice.js';
|
|
17
|
-
import 'core-js/modules/es.array.filter.js';
|
|
18
|
-
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
19
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
20
|
-
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
21
2
|
import _typeof from '@babel/runtime-corejs3/helpers/typeof';
|
|
22
3
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
23
4
|
import _inherits from '@babel/runtime-corejs3/helpers/inherits';
|
|
24
5
|
import _setPrototypeOf from '@babel/runtime-corejs3/helpers/setPrototypeOf';
|
|
25
6
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
26
|
-
import 'core-js/modules/es.
|
|
27
|
-
import 'core-js/modules/es.
|
|
7
|
+
import 'core-js/modules/es.symbol.js';
|
|
8
|
+
import 'core-js/modules/es.array.concat.js';
|
|
9
|
+
import 'core-js/modules/es.array.filter.js';
|
|
10
|
+
import 'core-js/modules/es.array.slice.js';
|
|
11
|
+
import 'core-js/modules/es.number.constructor.js';
|
|
12
|
+
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
13
|
+
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
28
14
|
import 'core-js/modules/es.regexp.exec.js';
|
|
29
15
|
import 'core-js/modules/es.string.match.js';
|
|
30
|
-
import 'core-js/modules/es.
|
|
31
|
-
import 'core-js/modules/es.array.
|
|
16
|
+
import 'core-js/modules/es.symbol.replace.js';
|
|
17
|
+
import 'core-js/modules/es.array.iterator.js';
|
|
18
|
+
import 'core-js/modules/es.array.join.js';
|
|
19
|
+
import 'core-js/modules/es.array.reduce.js';
|
|
20
|
+
import 'core-js/modules/es.object.keys.js';
|
|
21
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
22
|
+
import 'core-js/modules/es.regexp.constructor.js';
|
|
23
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
|
24
|
+
import 'core-js/modules/es.string.iterator.js';
|
|
25
|
+
import 'core-js/modules/es.string.replace.js';
|
|
26
|
+
import 'core-js/modules/es.string.starts-with.js';
|
|
27
|
+
import 'core-js/modules/es.string.trim.js';
|
|
28
|
+
import 'core-js/modules/es.weak-map.js';
|
|
29
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
30
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
32
31
|
import { jsx } from 'react/jsx-runtime';
|
|
33
32
|
import { Input, Popover } from 'antd';
|
|
34
33
|
import Picker from './Picker.js';
|
|
@@ -36,9 +35,9 @@ import { useMemo } from 'react';
|
|
|
36
35
|
import { useClassName } from '../../hooks/index.js';
|
|
37
36
|
|
|
38
37
|
var _excluded = ["value", "onChange", "defaultColor"];
|
|
39
|
-
function ownKeys(
|
|
40
|
-
function _objectSpread(
|
|
41
|
-
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(
|
|
38
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
39
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40
|
+
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { var t = o[r]; return "$" + (Array.isArray(t) ? t.join("$") : t); })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
|
|
42
41
|
var ColorInput = (function (_ref) {
|
|
43
42
|
var value = _ref.value,
|
|
44
43
|
onChange = _ref.onChange,
|
package/es/Input/InputNumber.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
|
-
import 'core-js/modules/es.object.keys.js';
|
|
3
2
|
import 'core-js/modules/es.symbol.js';
|
|
4
3
|
import 'core-js/modules/es.array.filter.js';
|
|
5
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
6
4
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
8
5
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
6
|
+
import 'core-js/modules/es.object.keys.js';
|
|
7
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
9
9
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
10
10
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
import { InputNumber } from 'antd';
|
|
13
13
|
|
|
14
14
|
var _excluded = ["style"];
|
|
15
|
-
function ownKeys(
|
|
16
|
-
function _objectSpread(
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
17
|
var HInputNumber = (function (_ref) {
|
|
18
18
|
var _ref$style = _ref.style,
|
|
19
19
|
style = _ref$style === void 0 ? {
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
|
-
import 'core-js/modules/es.object.keys.js';
|
|
3
|
-
import 'core-js/modules/es.symbol.js';
|
|
4
|
-
import 'core-js/modules/es.array.filter.js';
|
|
5
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
6
|
-
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
8
|
-
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
9
|
-
import 'core-js/modules/es.symbol.to-primitive.js';
|
|
10
|
-
import 'core-js/modules/es.date.to-primitive.js';
|
|
11
|
-
import 'core-js/modules/es.symbol.description.js';
|
|
12
|
-
import 'core-js/modules/es.number.constructor.js';
|
|
13
2
|
import _typeof from '@babel/runtime-corejs3/helpers/typeof';
|
|
14
3
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
15
4
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
16
5
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
17
|
-
import 'core-js/modules/es.
|
|
18
|
-
import 'core-js/modules/es.array.map.js';
|
|
6
|
+
import 'core-js/modules/es.symbol.to-primitive.js';
|
|
19
7
|
import 'core-js/modules/es.array.concat.js';
|
|
8
|
+
import 'core-js/modules/es.array.map.js';
|
|
9
|
+
import 'core-js/modules/es.symbol.js';
|
|
10
|
+
import 'core-js/modules/es.array.filter.js';
|
|
11
|
+
import 'core-js/modules/es.date.to-primitive.js';
|
|
12
|
+
import 'core-js/modules/es.function.name.js';
|
|
13
|
+
import 'core-js/modules/es.number.constructor.js';
|
|
14
|
+
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
15
|
+
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
16
|
+
import 'core-js/modules/es.object.keys.js';
|
|
17
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
18
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
20
19
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
21
20
|
import { Input, InputNumber } from 'antd';
|
|
22
21
|
import { SwapRightOutlined } from '@ant-design/icons';
|
|
@@ -24,10 +23,10 @@ import React, { useState, useMemo } from 'react';
|
|
|
24
23
|
import { useClassName } from '../hooks/index.js';
|
|
25
24
|
import HFormConnect from '../Form/HFormConnect.js';
|
|
26
25
|
|
|
27
|
-
function _toPropertyKey(
|
|
28
|
-
function _toPrimitive(
|
|
29
|
-
function ownKeys(
|
|
30
|
-
function _objectSpread(
|
|
26
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
28
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31
30
|
var useArrayProps = function useArrayProps(props) {
|
|
32
31
|
return useMemo(function () {
|
|
33
32
|
if (Array.isArray(props)) {
|
|
@@ -82,7 +81,6 @@ var InputNumberGroup = function InputNumberGroup(_ref) {
|
|
|
82
81
|
addFormat === null || addFormat === void 0 || addFormat({
|
|
83
82
|
float: {
|
|
84
83
|
inputValue: function inputValue(item, initValue) {
|
|
85
|
-
var _objectSpread2;
|
|
86
84
|
var _item$name = item.name,
|
|
87
85
|
valueName = _item$name === void 0 ? "" : _item$name;
|
|
88
86
|
var minKey = valueMap.min,
|
|
@@ -90,10 +88,9 @@ var InputNumberGroup = function InputNumberGroup(_ref) {
|
|
|
90
88
|
var cuValue = initValue[valueName];
|
|
91
89
|
var minInitVal = initValue[minKey];
|
|
92
90
|
var maxInitVal = initValue[maxKey];
|
|
93
|
-
return _defineProperty({}, valueName, _objectSpread((
|
|
91
|
+
return _defineProperty({}, valueName, _objectSpread(_defineProperty(_defineProperty({}, min, minInitVal), max, maxInitVal), cuValue));
|
|
94
92
|
},
|
|
95
93
|
outputValue: function outputValue(item, _outputValue) {
|
|
96
|
-
var _ref3;
|
|
97
94
|
var _item$name2 = item.name,
|
|
98
95
|
valueName = _item$name2 === void 0 ? "" : _item$name2;
|
|
99
96
|
var _outputValue$valueNam = _outputValue[valueName],
|
|
@@ -103,7 +100,7 @@ var InputNumberGroup = function InputNumberGroup(_ref) {
|
|
|
103
100
|
var minSubVal = itemVal[minKey],
|
|
104
101
|
maxSubVal = itemVal[maxKey],
|
|
105
102
|
oItemVal = _objectWithoutProperties(itemVal, [minKey, maxKey].map(_toPropertyKey));
|
|
106
|
-
return
|
|
103
|
+
return _defineProperty(_defineProperty(_defineProperty({}, maxKey, maxSubVal), minKey, minSubVal), valueName, oItemVal);
|
|
107
104
|
}
|
|
108
105
|
}
|
|
109
106
|
});
|
package/es/Input/SelectInput.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
|
-
import 'core-js/modules/es.object.keys.js';
|
|
3
2
|
import 'core-js/modules/es.symbol.js';
|
|
4
3
|
import 'core-js/modules/es.array.filter.js';
|
|
5
4
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
6
5
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
6
|
+
import 'core-js/modules/es.object.keys.js';
|
|
7
7
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
8
8
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
9
9
|
import 'core-js/modules/es.function.name.js';
|
|
10
10
|
import 'core-js/modules/es.object.to-string.js';
|
|
11
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
12
11
|
import 'core-js/modules/es.object.values.js';
|
|
12
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
import { Input } from 'antd';
|
|
15
15
|
import HSelect from '../Select/index.js';
|
|
@@ -18,8 +18,8 @@ import HFormConnect from '../Form/HFormConnect.js';
|
|
|
18
18
|
|
|
19
19
|
var _excluded = ["selectProps", "value", "onChange", "valueName", "addFormat", "addDispatchListener"],
|
|
20
20
|
_excluded2 = ["style", "placeholder"];
|
|
21
|
-
function ownKeys(
|
|
22
|
-
function _objectSpread(
|
|
21
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
23
|
var SelectInputType;
|
|
24
24
|
(function (SelectInputType) {
|
|
25
25
|
SelectInputType[SelectInputType["input"] = 0] = "input";
|
package/es/Input/TrimInput.d.ts
CHANGED
package/es/Input/TrimInput.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
2
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
4
|
-
import 'core-js/modules/es.function.name.js';
|
|
5
|
-
import 'core-js/modules/es.string.trim.js';
|
|
6
|
-
import 'core-js/modules/es.object.keys.js';
|
|
7
4
|
import 'core-js/modules/es.symbol.js';
|
|
8
5
|
import 'core-js/modules/es.array.filter.js';
|
|
9
|
-
import 'core-js/modules/es.
|
|
6
|
+
import 'core-js/modules/es.function.name.js';
|
|
10
7
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
11
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
12
8
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
9
|
+
import 'core-js/modules/es.object.keys.js';
|
|
10
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
11
|
+
import 'core-js/modules/es.string.trim.js';
|
|
12
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
import HInput from './index.js';
|
|
15
15
|
import HFormConnect from '../Form/HFormConnect.js';
|
|
16
16
|
|
|
17
17
|
var _excluded = ["addFormat"];
|
|
18
|
-
function ownKeys(
|
|
19
|
-
function _objectSpread(
|
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
var Index = function Index(_ref) {
|
|
21
21
|
var addFormat = _ref.addFormat,
|
|
22
22
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -3,14 +3,14 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
|
3
3
|
import _asyncToGenerator from '@babel/runtime-corejs3/helpers/asyncToGenerator';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime-corejs3/regenerator';
|
|
6
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
7
|
-
import 'core-js/modules/es.promise.js';
|
|
8
|
-
import 'core-js/modules/es.object.keys.js';
|
|
9
6
|
import 'core-js/modules/es.symbol.js';
|
|
10
7
|
import 'core-js/modules/es.array.filter.js';
|
|
11
8
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
12
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
13
9
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
10
|
+
import 'core-js/modules/es.object.keys.js';
|
|
11
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
12
|
+
import 'core-js/modules/es.promise.js';
|
|
13
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
15
|
import { useMemo, useCallback, useEffect } from 'react';
|
|
16
16
|
import Index$1 from '../ButtonInput.js';
|
|
@@ -19,8 +19,8 @@ import HFormConnect from '../../Form/HFormConnect.js';
|
|
|
19
19
|
import { useDis } from './hooks.js';
|
|
20
20
|
|
|
21
21
|
var _excluded = ["value", "request", "form", "onChange", "addDispatchListener", "buttonProps"];
|
|
22
|
-
function ownKeys(
|
|
23
|
-
function _objectSpread(
|
|
22
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
24
|
var Index = function Index(_ref) {
|
|
25
25
|
var value = _ref.value,
|
|
26
26
|
request = _ref.request,
|
|
@@ -52,7 +52,7 @@ var Index = function Index(_ref) {
|
|
|
52
52
|
});
|
|
53
53
|
}, 1000);
|
|
54
54
|
}, []);
|
|
55
|
-
var _useRequest = useRequest(
|
|
55
|
+
var _useRequest = useRequest(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
56
56
|
var val, result;
|
|
57
57
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
58
58
|
while (1) switch (_context.prev = _context.next) {
|
package/es/Input/index.d.ts
CHANGED
package/es/Input/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
|
-
import 'core-js/modules/es.object.keys.js';
|
|
3
2
|
import 'core-js/modules/es.symbol.js';
|
|
4
3
|
import 'core-js/modules/es.array.filter.js';
|
|
5
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
6
4
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
8
5
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
6
|
+
import 'core-js/modules/es.object.keys.js';
|
|
7
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
9
9
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
10
10
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -14,13 +14,13 @@ import { CopyOutlined } from '@ant-design/icons';
|
|
|
14
14
|
import copy from 'copy-to-clipboard';
|
|
15
15
|
|
|
16
16
|
var _excluded = ["copy", "value", "addonAfter"];
|
|
17
|
-
function ownKeys(
|
|
18
|
-
function _objectSpread(
|
|
17
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
19
|
var CopyDom = function CopyDom(_ref) {
|
|
20
20
|
var value = _ref.value;
|
|
21
21
|
return jsx("div", {
|
|
22
22
|
style: {
|
|
23
|
-
cursor:
|
|
23
|
+
cursor: "pointer"
|
|
24
24
|
},
|
|
25
25
|
onClick: function onClick() {
|
|
26
26
|
copy(value);
|
|
@@ -30,13 +30,13 @@ var CopyDom = function CopyDom(_ref) {
|
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
var HInput = (function (_ref2) {
|
|
33
|
-
var
|
|
33
|
+
var copyProps = _ref2.copy,
|
|
34
34
|
value = _ref2.value,
|
|
35
35
|
addonAfter = _ref2.addonAfter,
|
|
36
36
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
37
37
|
return jsx(Input, _objectSpread(_objectSpread({}, props), {}, {
|
|
38
38
|
value: value,
|
|
39
|
-
addonAfter:
|
|
39
|
+
addonAfter: copyProps ? jsx(CopyDom, {
|
|
40
40
|
value: value
|
|
41
41
|
}) : addonAfter
|
|
42
42
|
}));
|
package/es/RadioGroup/index.js
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
3
3
|
import _typeof from '@babel/runtime-corejs3/helpers/typeof';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
5
|
-
import 'core-js/modules/es.array.map.js';
|
|
6
|
-
import 'core-js/modules/es.object.keys.js';
|
|
7
5
|
import 'core-js/modules/es.symbol.js';
|
|
8
6
|
import 'core-js/modules/es.array.filter.js';
|
|
9
|
-
import 'core-js/modules/es.
|
|
7
|
+
import 'core-js/modules/es.array.map.js';
|
|
10
8
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
11
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
12
9
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
10
|
+
import 'core-js/modules/es.object.keys.js';
|
|
11
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
12
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
import { Radio } from 'antd';
|
|
15
15
|
import { useMemo } from 'react';
|
|
16
16
|
import { useMatchConfigProps } from '../hooks/index.js';
|
|
17
17
|
|
|
18
18
|
var _excluded = ["value", "options", "onChange", "fieldNames"];
|
|
19
|
-
function ownKeys(
|
|
20
|
-
function _objectSpread(
|
|
19
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
21
|
var HRadioGroup = (function (_ref) {
|
|
22
22
|
var value = _ref.value,
|
|
23
23
|
options = _ref.options,
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
4
4
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
5
|
-
import 'core-js/modules/es.array.map.js';
|
|
6
|
-
import 'core-js/modules/es.object.keys.js';
|
|
7
5
|
import 'core-js/modules/es.symbol.js';
|
|
8
6
|
import 'core-js/modules/es.array.filter.js';
|
|
9
|
-
import 'core-js/modules/es.
|
|
7
|
+
import 'core-js/modules/es.array.map.js';
|
|
10
8
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
11
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
12
9
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
10
|
+
import 'core-js/modules/es.object.keys.js';
|
|
11
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
12
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
13
13
|
import { useState, useEffect } from 'react';
|
|
14
14
|
import { itemOpProvider } from '../utils.js';
|
|
15
15
|
import { matchNotFind } from './util.js';
|
|
16
16
|
|
|
17
17
|
var _excluded = ["label", "value"];
|
|
18
|
-
function ownKeys(
|
|
19
|
-
function _objectSpread(
|
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
var useValueChange = function useValueChange(params) {
|
|
21
21
|
var labelInValue = params.labelInValue,
|
|
22
22
|
onChange = params.onChange,
|
|
@@ -31,7 +31,6 @@ var useValueChange = function useValueChange(params) {
|
|
|
31
31
|
val = _useState2[0],
|
|
32
32
|
setVal = _useState2[1];
|
|
33
33
|
var labelInValueItemMaker = function labelInValueItemMaker(changeVal) {
|
|
34
|
-
var _objectSpread2;
|
|
35
34
|
var _fieldNames$value = fieldNames.value,
|
|
36
35
|
fieldValue = _fieldNames$value === void 0 ? "value" : _fieldNames$value,
|
|
37
36
|
_fieldNames$label = fieldNames.label,
|
|
@@ -39,7 +38,7 @@ var useValueChange = function useValueChange(params) {
|
|
|
39
38
|
var changeLabel = changeVal.label,
|
|
40
39
|
changeValue = changeVal.value,
|
|
41
40
|
oVal = _objectWithoutProperties(changeVal, _excluded);
|
|
42
|
-
return _objectSpread((
|
|
41
|
+
return _objectSpread(_defineProperty(_defineProperty({}, fieldValue, changeValue), fieldLabel, changeLabel), oVal);
|
|
43
42
|
};
|
|
44
43
|
var labelInValueMaker = function labelInValueMaker(changeVal) {
|
|
45
44
|
if (!changeVal) {
|