shineout 3.7.0-beta.41 → 3.7.0-beta.42
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 +4 -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.0-beta.
|
|
525
|
+
version: '3.7.0-beta.42'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12227,7 +12227,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12227
12227
|
};
|
|
12228
12228
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12229
12229
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12230
|
-
/* harmony default export */ var version = ('3.7.0-beta.
|
|
12230
|
+
/* harmony default export */ var version = ('3.7.0-beta.42');
|
|
12231
12231
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12232
12232
|
|
|
12233
12233
|
|
|
@@ -61940,7 +61940,8 @@ var useTableFilter = function useTableFilter(props) {
|
|
|
61940
61940
|
}, [filterInfo]);
|
|
61941
61941
|
var filteredData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
61942
61942
|
var _props$data;
|
|
61943
|
-
|
|
61943
|
+
// why use slice: props.data引用不改变会导致后续的useMemo无法重新计算
|
|
61944
|
+
if (activeFilters.length === 0) return (props.data || []).slice();
|
|
61944
61945
|
return (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.filter(function (item) {
|
|
61945
61946
|
return activeFilters.every(function (key) {
|
|
61946
61947
|
var filter = filterInfo.get(key);
|
|
@@ -71291,7 +71292,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71291
71292
|
|
|
71292
71293
|
|
|
71293
71294
|
/* harmony default export */ var src_0 = ({
|
|
71294
|
-
version: '3.7.0-beta.
|
|
71295
|
+
version: '3.7.0-beta.42'
|
|
71295
71296
|
});
|
|
71296
71297
|
}();
|
|
71297
71298
|
/******/ return __webpack_exports__;
|