@kdcloudjs/kdesign 1.6.23 → 1.6.24

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.22
3
+ * @kdcloudjs/kdesign v1.6.23
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -2609,7 +2609,11 @@ function usePopper(locatorElement, popperElement, props) {
2609
2609
  focus: 'mousedown',
2610
2610
  contextMenu: 'mousedown'
2611
2611
  };
2612
- popperNode === null || popperNode === void 0 ? void 0 : popperNode.addEventListener('mouseleave', debounceHidePopper);
2612
+
2613
+ if (matchTrigger('hover')) {
2614
+ popperNode === null || popperNode === void 0 ? void 0 : popperNode.addEventListener('mouseleave', debounceHidePopper);
2615
+ }
2616
+
2613
2617
  Array.isArray(trigger) ? trigger.forEach(function (action) {
2614
2618
  return document.addEventListener(mapEvent[action], debounceHidePopper);
2615
2619
  }) : document.addEventListener(mapEvent[trigger], debounceHidePopper);
@@ -29171,7 +29175,8 @@ var InternalOption = function InternalOption(props, ref) {
29171
29175
  disabled = props.disabled,
29172
29176
  values = props.values,
29173
29177
  isMultiple = props.isMultiple,
29174
- onChangeSelect = props.onChangeSelect;
29178
+ onChangeSelect = props.onChangeSelect,
29179
+ title = props.title;
29175
29180
 
29176
29181
  var optionProps = _objectSpread({}, props);
29177
29182
 
@@ -29201,7 +29206,7 @@ var InternalOption = function InternalOption(props, ref) {
29201
29206
  onChangeSelect && onChangeSelect(value, children, isSelected);
29202
29207
  };
29203
29208
 
29204
- var titleText = _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(children) !== 'object' ? children : null;
29209
+ var titleText = title || (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(children) !== 'object' ? children : null);
29205
29210
  var checkStyle = {
29206
29211
  minHeight: '22px',
29207
29212
  background: 'none'
@@ -34717,7 +34722,7 @@ var Tooltip = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.forwardR
34717
34722
  });
34718
34723
 
34719
34724
  var onVisibleChange = function onVisibleChange(v) {
34720
- if (status.current === v) return;
34725
+ if (status.current === v && allProps.visible === undefined) return;
34721
34726
  status.current = v;
34722
34727
  props.onVisibleChange && props.onVisibleChange(v);
34723
34728
  };
@@ -37593,14 +37598,14 @@ var updateParent = function updateParent(key, keysNodeProps, allKeys, halfChecke
37593
37598
  pathParentKeys.reverse().forEach(function (itemKey) {
37594
37599
  var parent = keysNodeProps[itemKey];
37595
37600
 
37596
- if (parent && !parent.disabled && parent.checkable !== false) {
37601
+ if (parent && parent.checkable !== false) {
37597
37602
  var total = 0;
37598
37603
  var number = 0;
37599
37604
  parent.children.some(function (_ref) {
37600
37605
  var key = _ref.key;
37601
37606
  var item = keysNodeProps[key]; // 不符合可选条件
37602
37607
 
37603
- if (!item || item.disabled || item.checkable === false) {
37608
+ if (!item || item.checkable === false) {
37604
37609
  return false;
37605
37610
  }
37606
37611