shineout 3.10.2-beta.1 → 3.10.2-beta.3
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 +127 -27
- 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
|
@@ -545,5 +545,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
545
545
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
546
546
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
547
547
|
var _default = exports.default = {
|
|
548
|
-
version: '3.10.2-beta.
|
|
548
|
+
version: '3.10.2-beta.3'
|
|
549
549
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -2242,6 +2242,20 @@ function getDisplayName(Component) {
|
|
|
2242
2242
|
|
|
2243
2243
|
/***/ }),
|
|
2244
2244
|
|
|
2245
|
+
/***/ 1717:
|
|
2246
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2247
|
+
|
|
2248
|
+
"use strict";
|
|
2249
|
+
|
|
2250
|
+
|
|
2251
|
+
var m = __webpack_require__(5156);
|
|
2252
|
+
if (true) {
|
|
2253
|
+
exports.createRoot = m.createRoot;
|
|
2254
|
+
exports.hydrateRoot = m.hydrateRoot;
|
|
2255
|
+
} else { var i; }
|
|
2256
|
+
|
|
2257
|
+
/***/ }),
|
|
2258
|
+
|
|
2245
2259
|
/***/ 5284:
|
|
2246
2260
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2247
2261
|
|
|
@@ -5596,6 +5610,39 @@ module.exports = _inherits, module.exports.__esModule = true, module.exports["de
|
|
|
5596
5610
|
|
|
5597
5611
|
/***/ }),
|
|
5598
5612
|
|
|
5613
|
+
/***/ 4098:
|
|
5614
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5615
|
+
|
|
5616
|
+
var _typeof = (__webpack_require__(2674)["default"]);
|
|
5617
|
+
function _getRequireWildcardCache(e) {
|
|
5618
|
+
if ("function" != typeof WeakMap) return null;
|
|
5619
|
+
var r = new WeakMap(),
|
|
5620
|
+
t = new WeakMap();
|
|
5621
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
|
|
5622
|
+
return e ? t : r;
|
|
5623
|
+
})(e);
|
|
5624
|
+
}
|
|
5625
|
+
function _interopRequireWildcard(e, r) {
|
|
5626
|
+
if (!r && e && e.__esModule) return e;
|
|
5627
|
+
if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
|
|
5628
|
+
"default": e
|
|
5629
|
+
};
|
|
5630
|
+
var t = _getRequireWildcardCache(r);
|
|
5631
|
+
if (t && t.has(e)) return t.get(e);
|
|
5632
|
+
var n = {
|
|
5633
|
+
__proto__: null
|
|
5634
|
+
},
|
|
5635
|
+
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
5636
|
+
for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) {
|
|
5637
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
5638
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
5639
|
+
}
|
|
5640
|
+
return n["default"] = e, t && t.set(e, n), n;
|
|
5641
|
+
}
|
|
5642
|
+
module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
5643
|
+
|
|
5644
|
+
/***/ }),
|
|
5645
|
+
|
|
5599
5646
|
/***/ 2178:
|
|
5600
5647
|
/***/ (function(module) {
|
|
5601
5648
|
|
|
@@ -13688,7 +13735,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
13688
13735
|
};
|
|
13689
13736
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
13690
13737
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
13691
|
-
/* harmony default export */ var version = ('3.10.2-beta.
|
|
13738
|
+
/* harmony default export */ var version = ('3.10.2-beta.3');
|
|
13692
13739
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
13693
13740
|
|
|
13694
13741
|
|
|
@@ -51691,11 +51738,15 @@ var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorR
|
|
|
51691
51738
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@babel+runtime@7.23.6/node_modules/@babel/runtime/helpers/asyncToGenerator.js
|
|
51692
51739
|
var asyncToGenerator = __webpack_require__(5766);
|
|
51693
51740
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
51741
|
+
// EXTERNAL MODULE: ../../node_modules/.pnpm/@babel+runtime@7.23.6/node_modules/@babel/runtime/helpers/interopRequireWildcard.js
|
|
51742
|
+
var interopRequireWildcard = __webpack_require__(4098);
|
|
51743
|
+
var interopRequireWildcard_default = /*#__PURE__*/__webpack_require__.n(interopRequireWildcard);
|
|
51694
51744
|
;// CONCATENATED MODULE: ../hooks/src/utils/react-render.ts
|
|
51695
51745
|
|
|
51696
51746
|
|
|
51697
51747
|
|
|
51698
51748
|
|
|
51749
|
+
|
|
51699
51750
|
//https://github.com/react-component/util/blob/master/src/React/render.ts
|
|
51700
51751
|
|
|
51701
51752
|
|
|
@@ -51705,13 +51756,36 @@ var react_render_version = fullClone.version,
|
|
|
51705
51756
|
reactRender = fullClone.render,
|
|
51706
51757
|
unmountComponentAtNode = fullClone.unmountComponentAtNode;
|
|
51707
51758
|
var createRoot;
|
|
51708
|
-
|
|
51709
|
-
|
|
51710
|
-
|
|
51711
|
-
|
|
51712
|
-
|
|
51713
|
-
}
|
|
51714
|
-
|
|
51759
|
+
var mainVersion = Number((react_render_version || '').split('.')[0]);
|
|
51760
|
+
|
|
51761
|
+
// React 18: createRoot 在 react-dom 主入口上可获取
|
|
51762
|
+
if (mainVersion >= 18 && typeof fullClone.createRoot === 'function') {
|
|
51763
|
+
createRoot = fullClone.createRoot;
|
|
51764
|
+
}
|
|
51765
|
+
|
|
51766
|
+
// React 19+: createRoot 已从主入口移除,仅在 react-dom/client 导出
|
|
51767
|
+
// 用 import() 动态加载,CJS/ESM 产物均可用
|
|
51768
|
+
// 使用 pendingQueue 保证 import() resolve 之前的调用不会丢失
|
|
51769
|
+
|
|
51770
|
+
var pendingQueue = null;
|
|
51771
|
+
if (!createRoot && mainVersion >= 18) {
|
|
51772
|
+
pendingQueue = [];
|
|
51773
|
+
Promise.resolve().then(function () {
|
|
51774
|
+
return interopRequireWildcard_default()(__webpack_require__(1717));
|
|
51775
|
+
}).then(function (client) {
|
|
51776
|
+
createRoot = client.createRoot;
|
|
51777
|
+
}).catch(function () {
|
|
51778
|
+
// 不应走到这里,但安全降级
|
|
51779
|
+
}).finally(function () {
|
|
51780
|
+
var queue = pendingQueue;
|
|
51781
|
+
pendingQueue = null;
|
|
51782
|
+
// 回放等待期间的调用
|
|
51783
|
+
queue === null || queue === void 0 || queue.forEach(function (_ref) {
|
|
51784
|
+
var node = _ref.node,
|
|
51785
|
+
container = _ref.container;
|
|
51786
|
+
return ReactRender(node, container);
|
|
51787
|
+
});
|
|
51788
|
+
});
|
|
51715
51789
|
}
|
|
51716
51790
|
function toggleWarning(skip) {
|
|
51717
51791
|
var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -51731,15 +51805,17 @@ function modernRender(node, container) {
|
|
|
51731
51805
|
container[MARK] = root;
|
|
51732
51806
|
}
|
|
51733
51807
|
function legacyRender(node, container) {
|
|
51734
|
-
reactRender(node, container);
|
|
51735
|
-
}
|
|
51736
|
-
|
|
51737
|
-
/** @private Test usage. Not work in prod */
|
|
51738
|
-
function _r(node, container) {
|
|
51739
|
-
if (false) {}
|
|
51808
|
+
reactRender === null || reactRender === void 0 || reactRender(node, container);
|
|
51740
51809
|
}
|
|
51741
51810
|
function ReactRender(node, container) {
|
|
51742
|
-
//
|
|
51811
|
+
// import() 尚未 resolve,入队等待回放
|
|
51812
|
+
if (pendingQueue !== null) {
|
|
51813
|
+
pendingQueue.push({
|
|
51814
|
+
node: node,
|
|
51815
|
+
container: container
|
|
51816
|
+
});
|
|
51817
|
+
return;
|
|
51818
|
+
}
|
|
51743
51819
|
if (createRoot) {
|
|
51744
51820
|
modernRender(node, container);
|
|
51745
51821
|
return;
|
|
@@ -51770,12 +51846,7 @@ function _modernUnmount() {
|
|
|
51770
51846
|
return _modernUnmount.apply(this, arguments);
|
|
51771
51847
|
}
|
|
51772
51848
|
function legacyUnmount(container) {
|
|
51773
|
-
unmountComponentAtNode(container);
|
|
51774
|
-
}
|
|
51775
|
-
|
|
51776
|
-
/** @private Test usage. Not work in prod */
|
|
51777
|
-
function _u(container) {
|
|
51778
|
-
if (false) {}
|
|
51849
|
+
unmountComponentAtNode === null || unmountComponentAtNode === void 0 || unmountComponentAtNode(container);
|
|
51779
51850
|
}
|
|
51780
51851
|
function ReactUnmount(_x2) {
|
|
51781
51852
|
return _ReactUnmount.apply(this, arguments);
|
|
@@ -51785,14 +51856,23 @@ function _ReactUnmount() {
|
|
|
51785
51856
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
51786
51857
|
while (1) switch (_context2.prev = _context2.next) {
|
|
51787
51858
|
case 0:
|
|
51859
|
+
if (!(pendingQueue !== null)) {
|
|
51860
|
+
_context2.next = 3;
|
|
51861
|
+
break;
|
|
51862
|
+
}
|
|
51863
|
+
pendingQueue = pendingQueue.filter(function (item) {
|
|
51864
|
+
return item.container !== container;
|
|
51865
|
+
});
|
|
51866
|
+
return _context2.abrupt("return");
|
|
51867
|
+
case 3:
|
|
51788
51868
|
if (!(createRoot !== undefined)) {
|
|
51789
|
-
_context2.next =
|
|
51869
|
+
_context2.next = 5;
|
|
51790
51870
|
break;
|
|
51791
51871
|
}
|
|
51792
51872
|
return _context2.abrupt("return", modernUnmount(container));
|
|
51793
|
-
case
|
|
51873
|
+
case 5:
|
|
51794
51874
|
legacyUnmount(container);
|
|
51795
|
-
case
|
|
51875
|
+
case 6:
|
|
51796
51876
|
case "end":
|
|
51797
51877
|
return _context2.stop();
|
|
51798
51878
|
}
|
|
@@ -71037,7 +71117,7 @@ function Table(props) {
|
|
|
71037
71117
|
})
|
|
71038
71118
|
}));
|
|
71039
71119
|
if (isRenderVirtualTable) {
|
|
71040
|
-
var _props$data4, _virtualInfo$rowSpanI2;
|
|
71120
|
+
var _props$data4, _props$data5, _virtualInfo$rowSpanI2;
|
|
71041
71121
|
var showStickyHeader = !props.hideHeader && props.sticky;
|
|
71042
71122
|
if (virtualInfo.isExternalScroll) {
|
|
71043
71123
|
var _props$sticky$top, _props$virtualScrollC, _props$data3, _virtualInfo$rowSpanI;
|
|
@@ -71086,6 +71166,26 @@ function Table(props) {
|
|
|
71086
71166
|
})
|
|
71087
71167
|
});
|
|
71088
71168
|
}
|
|
71169
|
+
|
|
71170
|
+
// sticky-only:有 sticky 但不需要 virtual 的轻量路径
|
|
71171
|
+
// 避免 Scroll 组件和虚拟滚动的额外开销
|
|
71172
|
+
var isStickyOnly = !virtual && !!((_props$data4 = props.data) !== null && _props$data4 !== void 0 && _props$data4.length);
|
|
71173
|
+
if (isStickyOnly) {
|
|
71174
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
71175
|
+
children: [renderHeadMirrorScroller(), showStickyHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(StickyWrapper, objectSpread2_default()(objectSpread2_default()({}, stickyProps), {}, {
|
|
71176
|
+
children: $headTable
|
|
71177
|
+
})), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
71178
|
+
ref: scrollRef,
|
|
71179
|
+
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bodyWrapper,
|
|
71180
|
+
onScroll: handleBodyScroll,
|
|
71181
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
71182
|
+
style: tableStyle,
|
|
71183
|
+
ref: tbodyRef,
|
|
71184
|
+
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()({}, bodyCommonProps)), showFoot && /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
|
|
71185
|
+
})
|
|
71186
|
+
}), renderBottomMirrorScroller()]
|
|
71187
|
+
});
|
|
71188
|
+
}
|
|
71089
71189
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
71090
71190
|
children: [renderHeadMirrorScroller(), showStickyHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(StickyWrapper, objectSpread2_default()(objectSpread2_default()({}, stickyProps), {}, {
|
|
71091
71191
|
children: $headTable
|
|
@@ -71106,7 +71206,7 @@ function Table(props) {
|
|
|
71106
71206
|
isEmpty: !!$empty,
|
|
71107
71207
|
tableRef: tableRef,
|
|
71108
71208
|
setFakeVirtual: scrollAble ? undefined : setFakeVirtual,
|
|
71109
|
-
children: [!props.hideHeader && !props.sticky && $headTable, !!((_props$
|
|
71209
|
+
children: [!props.hideHeader && !props.sticky && $headTable, !!((_props$data5 = props.data) !== null && _props$data5 !== void 0 && _props$data5.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
71110
71210
|
style: objectSpread2_default()(objectSpread2_default()({}, tableStyle), {}, {
|
|
71111
71211
|
transform: virtualInfo.translateStyle
|
|
71112
71212
|
}),
|
|
@@ -79980,7 +80080,7 @@ var watermark_interface = __webpack_require__(6640);
|
|
|
79980
80080
|
|
|
79981
80081
|
|
|
79982
80082
|
/* harmony default export */ var src_0 = ({
|
|
79983
|
-
version: '3.10.2-beta.
|
|
80083
|
+
version: '3.10.2-beta.3'
|
|
79984
80084
|
});
|
|
79985
80085
|
}();
|
|
79986
80086
|
/******/ return __webpack_exports__;
|