@kdcloudjs/kdesign 1.6.25 → 1.6.26

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.24
3
+ * @kdcloudjs/kdesign v1.6.25
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -7710,7 +7710,7 @@ var CheckboxGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.fo
7710
7710
  innerValue.current = newVal;
7711
7711
  }
7712
7712
 
7713
- onChange && onChange(e, newVal);
7713
+ onChange && onChange(newVal, e);
7714
7714
  };
7715
7715
 
7716
7716
  var context = {
@@ -29893,6 +29893,9 @@ var InternalSelect = function InternalSelect(props, ref) {
29893
29893
  var clearIconCls = classnames__WEBPACK_IMPORTED_MODULE_21___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, "".concat(selectPrefixCls, "-icon-clear"), true));
29894
29894
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_18___default.a.Fragment, null, iconShow && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("span", {
29895
29895
  onClick: handleReset,
29896
+ onMouseDown: function onMouseDown(e) {
29897
+ return e.preventDefault();
29898
+ },
29896
29899
  className: clearIconCls
29897
29900
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_25__["Icon"], {
29898
29901
  type: "close-solid"
@@ -30011,12 +30014,32 @@ var InternalSelect = function InternalSelect(props, ref) {
30011
30014
  }, [mulOptions]);
30012
30015
 
30013
30016
  var renderSingle = function renderSingle() {
30017
+ var obj = (realChildren === null || realChildren === void 0 ? void 0 : realChildren.find(function (child) {
30018
+ if (child && child.props) {
30019
+ var _child$props3;
30020
+
30021
+ return ((_child$props3 = child.props) === null || _child$props3 === void 0 ? void 0 : _child$props3.value) === initValue;
30022
+ } else {
30023
+ return (child === null || child === void 0 ? void 0 : child.value) === initValue;
30024
+ }
30025
+ })) || {};
30026
+ var title = '';
30027
+
30028
+ if (obj.props) {
30029
+ var _obj$props4, _obj$props5, _obj$props6;
30030
+
30031
+ title = (obj === null || obj === void 0 ? void 0 : (_obj$props4 = obj.props) === null || _obj$props4 === void 0 ? void 0 : _obj$props4.title) || (obj === null || obj === void 0 ? void 0 : (_obj$props5 = obj.props) === null || _obj$props5 === void 0 ? void 0 : _obj$props5.label) || (obj === null || obj === void 0 ? void 0 : (_obj$props6 = obj.props) === null || _obj$props6 === void 0 ? void 0 : _obj$props6.children);
30032
+ } else {
30033
+ title = (obj === null || obj === void 0 ? void 0 : obj.title) || (obj === null || obj === void 0 ? void 0 : obj.label) || (obj === null || obj === void 0 ? void 0 : obj.children);
30034
+ }
30035
+
30014
30036
  var hiddenStyle = isShowSearch && !!searchValue || singleVal ? {
30015
30037
  visibility: 'hidden'
30016
30038
  } : undefined;
30017
30039
  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", {
30018
30040
  className: singleCls,
30019
- ref: selectionRef
30041
+ ref: selectionRef,
30042
+ title: title
30020
30043
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("span", {
30021
30044
  className: "".concat(selectPrefixCls, "-selection-search")
30022
30045
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("input", {
@@ -30057,7 +30080,10 @@ var InternalSelect = function InternalSelect(props, ref) {
30057
30080
  value = item.value;
30058
30081
  return (!maxTagCount || index <= maxTagCount - 1) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("span", {
30059
30082
  key: value,
30060
- className: classnames__WEBPACK_IMPORTED_MODULE_21___default()("".concat(selectPrefixCls, "-selection-tag"))
30083
+ className: classnames__WEBPACK_IMPORTED_MODULE_21___default()("".concat(selectPrefixCls, "-selection-tag")),
30084
+ onMouseDown: function onMouseDown(e) {
30085
+ return e.preventDefault();
30086
+ }
30061
30087
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_25__["Tag"], {
30062
30088
  type: "edit",
30063
30089
  style: TagStyle,
@@ -36392,8 +36418,6 @@ var InternalTree = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.fo
36392
36418
  if (!('checkedKeys' in TreeProps)) {
36393
36419
  setCheckedKeys(checkState.checkedKeys);
36394
36420
  setHalfCheckedKeys(checkState.halfCheckedKeys);
36395
- } else {
36396
- setHalfCheckedKeys(checkState.halfCheckedKeys);
36397
36421
  }
36398
36422
 
36399
36423
  onCheck && onCheck(checkState.checkedKeys, {