shineout 3.9.9-beta.6 → 3.9.9-beta.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/cjs/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.9.9-beta.6'
525
+ version: '3.9.9-beta.7'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12402,7 +12402,7 @@ var handleStyle = function handleStyle(style) {
12402
12402
  };
12403
12403
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12405
- /* harmony default export */ var version = ('3.9.9-beta.6');
12405
+ /* harmony default export */ var version = ('3.9.9-beta.7');
12406
12406
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12407
12407
 
12408
12408
 
@@ -45462,13 +45462,30 @@ var useListSelectMultiple = function useListSelectMultiple(props) {
45462
45462
  values.push(item.value);
45463
45463
  continue;
45464
45464
  }
45465
- if (disabledCheck(item)) continue;
45466
- values.push(formatData(item));
45467
- if (childrenKey && item && item[childrenKey]) {
45468
- var children = item[childrenKey];
45469
- if (children.length) {
45470
- values.push.apply(values, toConsumableArray_default()(getFlatDataValue(children, childrenKey)));
45465
+ var isDisabled = disabledCheck(item);
45466
+
45467
+ // childrenKey 参数由 treeCheckAll 属性控制:
45468
+ // - 当 Table 组件设置 treeCheckAll=true 时, thead 全选会传入 childrenKey
45469
+ // - 当 treeCheckAll=false 或 undefined 时, childrenKey 为 undefined
45470
+ if (childrenKey) {
45471
+ // 树形递归模式 (treeCheckAll=true):
45472
+ // 即使父节点 disabled, 也要递归处理其子节点
45473
+ // 这样可以选中 disabled 父节点下未 disabled 的子节点
45474
+ if (!isDisabled) {
45475
+ values.push(formatData(item));
45471
45476
  }
45477
+ // 递归处理子节点
45478
+ if (item && item[childrenKey]) {
45479
+ var children = item[childrenKey];
45480
+ if (children.length) {
45481
+ values.push.apply(values, toConsumableArray_default()(getFlatDataValue(children, childrenKey)));
45482
+ }
45483
+ }
45484
+ } else {
45485
+ // 非树形递归模式 (treeCheckAll=false 或 undefined):
45486
+ // 保持原有逻辑, disabled 节点直接跳过, 不处理其子节点
45487
+ if (isDisabled) continue;
45488
+ values.push(formatData(item));
45472
45489
  }
45473
45490
  }
45474
45491
  return values;
@@ -75420,7 +75437,7 @@ var upload_interface = __webpack_require__(8821);
75420
75437
 
75421
75438
 
75422
75439
  /* harmony default export */ var src_0 = ({
75423
- version: '3.9.9-beta.6'
75440
+ version: '3.9.9-beta.7'
75424
75441
  });
75425
75442
  }();
75426
75443
  /******/ return __webpack_exports__;