shineout 3.7.10-beta.4 → 3.7.10-beta.5
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 +1 -1
- package/dist/shineout.js +5 -3
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
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.7.10-beta.
|
|
525
|
+
version: '3.7.10-beta.5'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12234
12234
|
};
|
|
12235
12235
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12236
12236
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12237
|
-
/* harmony default export */ var version = ('3.7.10-beta.
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.10-beta.5');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -39258,6 +39258,8 @@ var useTree = function useTree(props) {
|
|
|
39258
39258
|
var _context$dataFlatStat2;
|
|
39259
39259
|
context.updateMap.set(id, update);
|
|
39260
39260
|
var isActive = activeProp === id;
|
|
39261
|
+
// 立即调用update函数设置正确的active状态
|
|
39262
|
+
if (isActive) update('active', isActive);
|
|
39261
39263
|
return {
|
|
39262
39264
|
active: isActive,
|
|
39263
39265
|
expanded: !!((_context$dataFlatStat2 = context.dataFlatStatusMap.get(id)) !== null && _context$dataFlatStat2 !== void 0 && _context$dataFlatStat2.expanded)
|
|
@@ -39387,7 +39389,7 @@ var useTree = function useTree(props) {
|
|
|
39387
39389
|
context.dataMap.set(id, item);
|
|
39388
39390
|
if (virtual) {
|
|
39389
39391
|
context.dataFlatStatusMap.set(id, {
|
|
39390
|
-
active:
|
|
39392
|
+
active: activeProp === id,
|
|
39391
39393
|
expanded: defaultExpandAll ? true : (expanded === null || expanded === void 0 ? void 0 : expanded.includes(id)) || false,
|
|
39392
39394
|
fetching: false
|
|
39393
39395
|
});
|
|
@@ -71931,7 +71933,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71931
71933
|
|
|
71932
71934
|
|
|
71933
71935
|
/* harmony default export */ var src_0 = ({
|
|
71934
|
-
version: '3.7.10-beta.
|
|
71936
|
+
version: '3.7.10-beta.5'
|
|
71935
71937
|
});
|
|
71936
71938
|
}();
|
|
71937
71939
|
/******/ return __webpack_exports__;
|