@kdcloudjs/kdesign 1.6.19 → 1.6.21

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/dist/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.6.18
3
+ * @kdcloudjs/kdesign v1.6.20
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -6939,7 +6939,7 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
6939
6939
  var innerIconClassName = classnames__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-inner"), true));
6940
6940
  var handleChange = Object(react__WEBPACK_IMPORTED_MODULE_6__["useCallback"])(function (e) {
6941
6941
  onChange && onChange(e);
6942
- (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.onCheckboxGroupChange) && (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.onCheckboxGroupChange(value, e.target.checked));
6942
+ (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.onCheckboxGroupChange) && (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.onCheckboxGroupChange(value, e.target.checked, e));
6943
6943
 
6944
6944
  if (!(checkboxGroup !== null && checkboxGroup !== void 0 && checkboxGroup.isControlled)) {
6945
6945
  setSelected(e.target.checked);
@@ -7114,7 +7114,7 @@ var CheckboxGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.fo
7114
7114
  return innerValue.current.indexOf(targetValue) > -1 ? innerValue.current : innerValue.current.concat(targetValue);
7115
7115
  };
7116
7116
 
7117
- var onCheckboxChange = function onCheckboxChange(checkedValue, isChecked) {
7117
+ var onCheckboxChange = function onCheckboxChange(checkedValue, isChecked, e) {
7118
7118
  var newVal = [];
7119
7119
 
7120
7120
  if (isChecked) {
@@ -7127,7 +7127,7 @@ var CheckboxGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.fo
7127
7127
  innerValue.current = newVal;
7128
7128
  }
7129
7129
 
7130
- onChange && onChange(newVal);
7130
+ onChange && onChange(e, newVal);
7131
7131
  };
7132
7132
 
7133
7133
  var context = {
@@ -7136,8 +7136,8 @@ var CheckboxGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.fo
7136
7136
  name: name,
7137
7137
  isControlled: isControlled,
7138
7138
  checkboxType: checkboxType,
7139
- onCheckboxGroupChange: function onCheckboxGroupChange(checkedValue, isChecked) {
7140
- onCheckboxChange(checkedValue, isChecked);
7139
+ onCheckboxGroupChange: function onCheckboxGroupChange(checkedValue, isChecked, e) {
7140
+ onCheckboxChange(checkedValue, isChecked, e);
7141
7141
  }
7142
7142
  };
7143
7143
 
@@ -20276,10 +20276,13 @@ __webpack_require__.r(__webpack_exports__);
20276
20276
  /* harmony import */ var _utils_devwarning__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../_utils/devwarning */ "./components/_utils/devwarning.ts");
20277
20277
  /* harmony import */ var big_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! big.js */ "./node_modules/big.js/big.js");
20278
20278
  /* harmony import */ var big_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(big_js__WEBPACK_IMPORTED_MODULE_18__);
20279
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
20280
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_19__);
20279
20281
 
20280
20282
 
20281
20283
 
20282
- var _excluded = ["value", "defaultValue", "mustInScope", "decimalLength", "mustInPrecisionScope", "digitLength", "onChange", "symbol", "zeroShow", "showDecimalTailZero", "code", "roundMethod", "mask", "stepOption", "min", "minMark", "max", "maxMark", "prefix", "suffix", "formatter"];
20284
+ var _excluded = ["value", "defaultValue", "mustInScope", "decimalLength", "mustInPrecisionScope", "digitLength", "onChange", "symbol", "zeroShow", "showDecimalTailZero", "code", "roundMethod", "mask", "stepOption", "min", "minMark", "max", "maxMark", "prefix", "suffix", "formatter", "className"];
20285
+
20283
20286
 
20284
20287
 
20285
20288
 
@@ -20326,6 +20329,7 @@ var InternalInputNumber = function InternalInputNumber(props, ref) {
20326
20329
  prefix = inputNumberProps.prefix,
20327
20330
  suffix = inputNumberProps.suffix,
20328
20331
  formatter = inputNumberProps.formatter,
20332
+ className = inputNumberProps.className,
20329
20333
  others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(inputNumberProps, _excluded);
20330
20334
 
20331
20335
  var initVal = value === undefined ? defaultValue : value;
@@ -20605,7 +20609,7 @@ var InternalInputNumber = function InternalInputNumber(props, ref) {
20605
20609
  onFocus: handleFocus,
20606
20610
  onBlur: handleBlur,
20607
20611
  onKeyDown: handleKeyDown,
20608
- className: inputPrefixCls
20612
+ className: classnames__WEBPACK_IMPORTED_MODULE_19___default()(inputPrefixCls, className)
20609
20613
  }));
20610
20614
  };
20611
20615
 
@@ -26498,23 +26502,22 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
26498
26502
 
26499
26503
 
26500
26504
  react__WEBPACK_IMPORTED_MODULE_4__["useEffect"](function () {
26501
- if (props.value) {
26505
+ if (props.value !== undefined) {
26502
26506
  setValue(props.value);
26503
26507
  }
26504
26508
  }, [props.value]);
26505
26509
 
26506
- var onRadioChange = function onRadioChange(ev) {
26510
+ var onRadioChange = function onRadioChange(ev, checkedValue) {
26507
26511
  var lastValue = value;
26508
- var val = ev.target.value;
26509
26512
 
26510
26513
  if (!('value' in props)) {
26511
- setValue(val);
26514
+ setValue(checkedValue);
26512
26515
  }
26513
26516
 
26514
26517
  var onChange = props.onChange;
26515
26518
 
26516
- if (onChange && val !== lastValue) {
26517
- onChange(ev);
26519
+ if (onChange && checkedValue !== lastValue) {
26520
+ onChange(ev, checkedValue);
26518
26521
  }
26519
26522
  };
26520
26523
 
@@ -26709,56 +26712,38 @@ var RadioButton = function RadioButton(props, ref) {
26709
26712
 
26710
26713
  "use strict";
26711
26714
  __webpack_require__.r(__webpack_exports__);
26712
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
26713
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0__);
26714
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
26715
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_1__);
26716
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
26717
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__);
26718
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
26719
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
26720
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
26721
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__);
26722
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
26723
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);
26724
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptors.js");
26725
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_6__);
26726
- /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js");
26727
- /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_7__);
26728
- /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
26729
- /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
26730
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js");
26731
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__);
26732
- /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js");
26733
- /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_10__);
26734
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
26735
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__);
26736
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react */ "react");
26737
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
26738
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
26739
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_13__);
26740
- /* harmony import */ var lodash_isBoolean__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lodash/isBoolean */ "./node_modules/lodash/isBoolean.js");
26741
- /* harmony import */ var lodash_isBoolean__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(lodash_isBoolean__WEBPACK_IMPORTED_MODULE_14__);
26742
- /* harmony import */ var _config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../config-provider/ConfigContext */ "./components/config-provider/ConfigContext.tsx");
26743
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_utils */ "./components/_utils/index.ts");
26744
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./context */ "./components/radio/context.tsx");
26745
-
26746
-
26747
-
26748
-
26749
-
26750
-
26751
-
26715
+ /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js");
26716
+ /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
26717
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
26718
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
26719
+ /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js");
26720
+ /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);
26721
+ /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js");
26722
+ /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
26723
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
26724
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__);
26725
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
26726
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
26727
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
26728
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
26729
+ /* harmony import */ var lodash_isBoolean__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/isBoolean */ "./node_modules/lodash/isBoolean.js");
26730
+ /* harmony import */ var lodash_isBoolean__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isBoolean__WEBPACK_IMPORTED_MODULE_7__);
26731
+ /* harmony import */ var lodash_isNumber__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/isNumber */ "./node_modules/lodash/isNumber.js");
26732
+ /* harmony import */ var lodash_isNumber__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isNumber__WEBPACK_IMPORTED_MODULE_8__);
26733
+ /* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/isString */ "./node_modules/lodash/isString.js");
26734
+ /* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_isString__WEBPACK_IMPORTED_MODULE_9__);
26735
+ /* harmony import */ var _config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/ConfigContext */ "./components/config-provider/ConfigContext.tsx");
26736
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_utils */ "./components/_utils/index.ts");
26737
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./context */ "./components/radio/context.tsx");
26738
+ /* harmony import */ var _utils_devwarning__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_utils/devwarning */ "./components/_utils/devwarning.ts");
26752
26739
 
26753
26740
 
26754
26741
 
26755
26742
 
26756
- var _excluded = ["style", "checked", "children", "className", "radioType", "defaultChecked", "prefixCls"];
26743
+ var _excluded = ["style", "checked", "children", "className", "radioType", "value", "disabled", "defaultChecked", "prefixCls"];
26757
26744
 
26758
26745
 
26759
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
26760
26746
 
26761
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26762
26747
 
26763
26748
 
26764
26749
 
@@ -26770,30 +26755,33 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
26770
26755
  var InternalRadio = function InternalRadio(props, ref) {
26771
26756
  var _classNames;
26772
26757
 
26773
- var context = react__WEBPACK_IMPORTED_MODULE_12___default.a.useContext(_context__WEBPACK_IMPORTED_MODULE_17__["default"]);
26758
+ var context = react__WEBPACK_IMPORTED_MODULE_5___default.a.useContext(_context__WEBPACK_IMPORTED_MODULE_12__["default"]);
26774
26759
 
26775
- var _React$useContext = react__WEBPACK_IMPORTED_MODULE_12___default.a.useContext(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_15__["default"]),
26760
+ var _React$useContext = react__WEBPACK_IMPORTED_MODULE_5___default.a.useContext(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_10__["default"]),
26776
26761
  getPrefixCls = _React$useContext.getPrefixCls,
26777
26762
  prefixCls = _React$useContext.prefixCls,
26778
26763
  userDefaultProps = _React$useContext.compDefaultProps;
26779
26764
 
26780
- var innerRef = react__WEBPACK_IMPORTED_MODULE_12___default.a.useRef();
26765
+ var innerRef = react__WEBPACK_IMPORTED_MODULE_5___default.a.useRef();
26781
26766
  var mergedRef = ref || innerRef;
26782
26767
 
26783
- var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getCompProps"])('Radio', userDefaultProps, props),
26768
+ var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getCompProps"])('Radio', userDefaultProps, props),
26784
26769
  style = _getCompProps.style,
26785
26770
  checked = _getCompProps.checked,
26786
26771
  children = _getCompProps.children,
26787
26772
  className = _getCompProps.className,
26788
26773
  radioType = _getCompProps.radioType,
26774
+ value = _getCompProps.value,
26775
+ disabled = _getCompProps.disabled,
26789
26776
  defaultChecked = _getCompProps.defaultChecked,
26790
26777
  customPrefixcls = _getCompProps.prefixCls,
26791
- restProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_10___default()(_getCompProps, _excluded); // 属性需要合并一遍用户定义的默认属性
26778
+ restProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_getCompProps, _excluded); // 属性需要合并一遍用户定义的默认属性
26792
26779
 
26793
26780
 
26794
- var getChecked = function getChecked() {
26795
- return lodash_isBoolean__WEBPACK_IMPORTED_MODULE_14___default()(checked) ? checked : defaultChecked;
26796
- };
26781
+ Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_13__["default"])(!(lodash_isNumber__WEBPACK_IMPORTED_MODULE_8___default()(value) || lodash_isString__WEBPACK_IMPORTED_MODULE_9___default()(value)) && value !== '', 'radio', 'radio `value` type must string or number ');
26782
+ Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_13__["default"])(value === '', 'radio', 'radio value type is not empty string ');
26783
+ var mergedDisabled = (context === null || context === void 0 ? void 0 : context.disabled) || restProps.disabled;
26784
+ var initValue = context ? value === context.value : lodash_isBoolean__WEBPACK_IMPORTED_MODULE_7___default()(checked) ? checked : defaultChecked;
26797
26785
 
26798
26786
  var getPrefix = function getPrefix(radioType) {
26799
26787
  return "radio".concat(radioType === 'square' ? "-".concat(radioType) : '');
@@ -26801,16 +26789,15 @@ var InternalRadio = function InternalRadio(props, ref) {
26801
26789
 
26802
26790
  var radioPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, getPrefix(radioType), customPrefixcls); // 样式前缀
26803
26791
 
26804
- var _React$useState = react__WEBPACK_IMPORTED_MODULE_12___default.a.useState(getChecked()),
26805
- _React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9___default()(_React$useState, 2),
26792
+ var _React$useState = react__WEBPACK_IMPORTED_MODULE_5___default.a.useState(initValue),
26793
+ _React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_React$useState, 2),
26806
26794
  isChecked = _React$useState2[0],
26807
26795
  setIsChecked = _React$useState2[1];
26808
26796
 
26809
- react__WEBPACK_IMPORTED_MODULE_12___default.a.useEffect(function () {
26810
- checked !== undefined && setIsChecked(checked);
26811
- }, [checked]);
26812
-
26813
- var radioProps = _objectSpread({}, restProps);
26797
+ react__WEBPACK_IMPORTED_MODULE_5___default.a.useEffect(function () {
26798
+ var checkedValue = context ? value === context.value : lodash_isBoolean__WEBPACK_IMPORTED_MODULE_7___default()(checked) ? checked : defaultChecked;
26799
+ setIsChecked(checkedValue);
26800
+ }, [checked, defaultChecked, context === null || context === void 0 ? void 0 : context.value]);
26814
26801
 
26815
26802
  var onChange = function onChange(e) {
26816
26803
  setIsChecked(e.target.checked);
@@ -26820,21 +26807,13 @@ var InternalRadio = function InternalRadio(props, ref) {
26820
26807
  }
26821
26808
 
26822
26809
  if (context !== null && context !== void 0 && context.onChange) {
26823
- context.onChange(e);
26810
+ context.onChange(e, value);
26824
26811
  }
26825
26812
  };
26826
26813
 
26827
- radioProps.onChange = onChange;
26814
+ var classString = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls, "-checked"), isChecked), _classNames), className); // 单选包裹元素class名称
26828
26815
 
26829
- if (context) {
26830
- radioProps.name = context.name;
26831
- radioProps.checked = String(props.value) === String(context.value);
26832
- radioProps.disabled = props.disabled || context.disabled;
26833
- }
26834
-
26835
- var classString = classnames__WEBPACK_IMPORTED_MODULE_13___default()((_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames, "".concat(radioPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames, "".concat(radioPrefixCls, "-disabled"), radioProps.disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames, "".concat(radioPrefixCls, "-checked"), context ? radioProps.checked : isChecked), _classNames), className); // 单选包裹元素class名称
26836
-
26837
- Object(react__WEBPACK_IMPORTED_MODULE_12__["useEffect"])(function () {
26816
+ Object(react__WEBPACK_IMPORTED_MODULE_5__["useEffect"])(function () {
26838
26817
  var _radioRef$current;
26839
26818
 
26840
26819
  var handleRepeatClick = function handleRepeatClick(e) {
@@ -26857,20 +26836,25 @@ var InternalRadio = function InternalRadio(props, ref) {
26857
26836
  return (
26858
26837
  /*#__PURE__*/
26859
26838
  // eslint-disable-next-line
26860
- react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("label", {
26839
+ react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("label", {
26861
26840
  className: classString,
26862
26841
  style: style,
26863
26842
  ref: mergedRef
26864
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("input", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_7___default()({
26843
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
26865
26844
  type: "radio",
26866
- className: "".concat(radioPrefixCls, "-input")
26867
- }, radioProps)), children !== undefined ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("span", {
26845
+ className: "".concat(radioPrefixCls, "-input"),
26846
+ checked: isChecked,
26847
+ onChange: onChange,
26848
+ value: value,
26849
+ name: context === null || context === void 0 ? void 0 : context.name,
26850
+ disabled: mergedDisabled
26851
+ }, restProps)), children !== undefined ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("span", {
26868
26852
  className: "".concat(radioPrefixCls, "-text")
26869
26853
  }, children) : null)
26870
26854
  );
26871
26855
  };
26872
26856
 
26873
- var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.forwardRef(InternalRadio);
26857
+ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.forwardRef(InternalRadio);
26874
26858
  Radio.displayName = 'Radio';
26875
26859
  /* harmony default export */ __webpack_exports__["default"] = (Radio);
26876
26860
 
@@ -29131,8 +29115,8 @@ var InternalSelect = function InternalSelect(props, ref) {
29131
29115
  selectedVal = _multipleRef$current3.selectedVal,
29132
29116
  selectMulOpts = _multipleRef$current3.selectMulOpts;
29133
29117
 
29134
- if ((realChildren === null || realChildren === void 0 ? void 0 : realChildren.length) !== selectedVal.length) {
29135
- realChildren.map(function (child) {
29118
+ if ((filledOptions === null || filledOptions === void 0 ? void 0 : filledOptions.length) !== selectedVal.length) {
29119
+ filledOptions.map(function (child) {
29136
29120
  var _ref = child.props || child,
29137
29121
  value = _ref.value;
29138
29122
 
@@ -29145,6 +29129,7 @@ var InternalSelect = function InternalSelect(props, ref) {
29145
29129
  }
29146
29130
  });
29147
29131
  setMulOptions(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(selectMulOpts));
29132
+ setSearchValue('');
29148
29133
  } else {
29149
29134
  multipleRef.current.selectedVal = selectedVal = [];
29150
29135
  multipleRef.current.selectMulOpts = selectMulOpts = [];
@@ -29257,10 +29242,7 @@ var InternalSelect = function InternalSelect(props, ref) {
29257
29242
  return (filledOptions === null || filledOptions === void 0 ? void 0 : filledOptions.length) === 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
29258
29243
  className: emptyListCls
29259
29244
  }, emptyContent);
29260
- }; // const isShowSearch = useCallback(() => {
29261
- // return !showSearch ? false : !!searchValue
29262
- // }, [showSearch, searchValue])
29263
-
29245
+ };
29264
29246
 
29265
29247
  var isShowSearch = Object(react__WEBPACK_IMPORTED_MODULE_18__["useMemo"])(function () {
29266
29248
  return lodash_isBoolean__WEBPACK_IMPORTED_MODULE_20___default()(showSearch) ? showSearch : isMultiple;
@@ -29292,8 +29274,8 @@ var InternalSelect = function InternalSelect(props, ref) {
29292
29274
  height: '30px',
29293
29275
  background: 'none'
29294
29276
  };
29295
- var indeterminate = mulOptions.length > 0 && mulOptions.length < realChildren.length;
29296
- var checked = mulOptions.length === realChildren.length;
29277
+ var indeterminate = mulOptions.length > 0 && mulOptions.length < filledOptions.length;
29278
+ var checked = mulOptions.length === filledOptions.length;
29297
29279
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_18___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
29298
29280
  className: dropDownCls,
29299
29281
  style: dropDownStyle,
@@ -31357,6 +31339,7 @@ var InternalStepper = function InternalStepper(props, ref) {
31357
31339
 
31358
31340
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_input_number__WEBPACK_IMPORTED_MODULE_8__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_utils_omit__WEBPACK_IMPORTED_MODULE_14__["omit"])(inputNumberProps, ['step', 'type', 'stepBtnClassName', 'value', 'defaultValue']), {
31359
31341
  ref: inputNumberRef,
31342
+ className: "".concat(inputPrefixCls, "-stepper"),
31360
31343
  stepperrref: stepperrref,
31361
31344
  value: value,
31362
31345
  prefix: getStepPrefix(),
@@ -105242,6 +105225,47 @@ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
105242
105225
  module.exports = isSet;
105243
105226
 
105244
105227
 
105228
+ /***/ }),
105229
+
105230
+ /***/ "./node_modules/lodash/isString.js":
105231
+ /*!*****************************************!*\
105232
+ !*** ./node_modules/lodash/isString.js ***!
105233
+ \*****************************************/
105234
+ /*! no static exports found */
105235
+ /***/ (function(module, exports, __webpack_require__) {
105236
+
105237
+ var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
105238
+ isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
105239
+ isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
105240
+
105241
+ /** `Object#toString` result references. */
105242
+ var stringTag = '[object String]';
105243
+
105244
+ /**
105245
+ * Checks if `value` is classified as a `String` primitive or object.
105246
+ *
105247
+ * @static
105248
+ * @since 0.1.0
105249
+ * @memberOf _
105250
+ * @category Lang
105251
+ * @param {*} value The value to check.
105252
+ * @returns {boolean} Returns `true` if `value` is a string, else `false`.
105253
+ * @example
105254
+ *
105255
+ * _.isString('abc');
105256
+ * // => true
105257
+ *
105258
+ * _.isString(1);
105259
+ * // => false
105260
+ */
105261
+ function isString(value) {
105262
+ return typeof value == 'string' ||
105263
+ (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
105264
+ }
105265
+
105266
+ module.exports = isString;
105267
+
105268
+
105245
105269
  /***/ }),
105246
105270
 
105247
105271
  /***/ "./node_modules/lodash/isSymbol.js":