@kdcloudjs/kdesign 1.3.6 → 1.3.7

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.3.5
3
+ * @kdcloudjs/kdesign v1.3.6
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -6002,6 +6002,8 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
6002
6002
  lodash_isBoolean__WEBPACK_IMPORTED_MODULE_9___default()(checked) && checked !== selected && setSelected(checked);
6003
6003
  }, [checked, selected]);
6004
6004
  Object(react__WEBPACK_IMPORTED_MODULE_4__["useEffect"])(function () {
6005
+ var _labelRef$current;
6006
+
6005
6007
  var handleRepeatClick = function handleRepeatClick(e) {
6006
6008
  var element = e.target;
6007
6009
 
@@ -6010,10 +6012,12 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
6010
6012
  }
6011
6013
  };
6012
6014
 
6013
- labelRef.current.addEventListener('click', handleRepeatClick);
6015
+ labelRef === null || labelRef === void 0 ? void 0 : (_labelRef$current = labelRef.current) === null || _labelRef$current === void 0 ? void 0 : _labelRef$current.addEventListener('click', handleRepeatClick);
6014
6016
  return function () {
6017
+ var _labelRef$current2;
6018
+
6015
6019
  // eslint-disable-next-line react-hooks/exhaustive-deps
6016
- labelRef.current.removeEventListener('click', handleRepeatClick);
6020
+ labelRef === null || labelRef === void 0 ? void 0 : (_labelRef$current2 = labelRef.current) === null || _labelRef$current2 === void 0 ? void 0 : _labelRef$current2.removeEventListener('click', handleRepeatClick);
6017
6021
  };
6018
6022
  }, []);
6019
6023
 
@@ -25674,6 +25678,8 @@ var InternalRadio = function InternalRadio(props, ref) {
25674
25678
  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名称
25675
25679
 
25676
25680
  Object(react__WEBPACK_IMPORTED_MODULE_12__["useEffect"])(function () {
25681
+ var _radioRef$current;
25682
+
25677
25683
  var handleRepeatClick = function handleRepeatClick(e) {
25678
25684
  var element = e.target;
25679
25685
 
@@ -25683,10 +25689,12 @@ var InternalRadio = function InternalRadio(props, ref) {
25683
25689
  };
25684
25690
 
25685
25691
  var radioRef = mergedRef;
25686
- radioRef.current.addEventListener('click', handleRepeatClick);
25692
+ radioRef === null || radioRef === void 0 ? void 0 : (_radioRef$current = radioRef.current) === null || _radioRef$current === void 0 ? void 0 : _radioRef$current.addEventListener('click', handleRepeatClick);
25687
25693
  return function () {
25694
+ var _radioRef$current2;
25695
+
25688
25696
  // eslint-disable-next-line react-hooks/exhaustive-deps
25689
- radioRef.current.removeEventListener('click', handleRepeatClick);
25697
+ radioRef === null || radioRef === void 0 ? void 0 : (_radioRef$current2 = radioRef.current) === null || _radioRef$current2 === void 0 ? void 0 : _radioRef$current2.removeEventListener('click', handleRepeatClick);
25690
25698
  };
25691
25699
  }, []);
25692
25700
  return (