@bit-sun/business-component 4.2.0-alpha.6.18 → 4.2.0-alpha.6.18-jw
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/index.esm.js +23 -27
- package/dist/index.js +23 -27
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/index.tsx +10 -10
package/dist/index.esm.js
CHANGED
|
@@ -302,19 +302,17 @@ function _regeneratorDefine(e, r, n, t) {
|
|
|
302
302
|
i = 0;
|
|
303
303
|
}
|
|
304
304
|
_regeneratorDefine = function (e, r, n, t) {
|
|
305
|
-
|
|
305
|
+
function o(r, n) {
|
|
306
|
+
_regeneratorDefine(e, r, function (e) {
|
|
307
|
+
return this._invoke(r, n, e);
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
r ? i ? i(e, r, {
|
|
306
311
|
value: n,
|
|
307
312
|
enumerable: !t,
|
|
308
313
|
configurable: !t,
|
|
309
314
|
writable: !t
|
|
310
|
-
}) : e[r] = n;
|
|
311
|
-
function o(r, n) {
|
|
312
|
-
_regeneratorDefine(e, r, function (e) {
|
|
313
|
-
return this._invoke(r, n, e);
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
o("next", 0), o("throw", 1), o("return", 2);
|
|
317
|
-
}
|
|
315
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
318
316
|
}, _regeneratorDefine(e, r, n, t);
|
|
319
317
|
}
|
|
320
318
|
function _setPrototypeOf(t, e) {
|
|
@@ -7538,7 +7536,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7538
7536
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7539
7537
|
var result, _t;
|
|
7540
7538
|
return _regenerator().w(function (_context) {
|
|
7541
|
-
while (1) switch (_context.n) {
|
|
7539
|
+
while (1) switch (_context.p = _context.n) {
|
|
7542
7540
|
case 0:
|
|
7543
7541
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7544
7542
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
@@ -7904,7 +7902,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7904
7902
|
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
|
|
7905
7903
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7906
7904
|
return _regenerator().w(function (_context3) {
|
|
7907
|
-
while (1) switch (_context3.n) {
|
|
7905
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
7908
7906
|
case 0:
|
|
7909
7907
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7910
7908
|
return d[selectKey] == value;
|
|
@@ -14810,7 +14808,7 @@ function getStorageVale(storageKeyString) {
|
|
|
14810
14808
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
14811
14809
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
14812
14810
|
localstorage = _storageKeyString$spl2[0],
|
|
14813
|
-
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
14811
|
+
restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
|
|
14814
14812
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
14815
14813
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
14816
14814
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -19262,8 +19260,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19262
19260
|
setPagePath = _useState0[1];
|
|
19263
19261
|
var _useLocation = useLocation(),
|
|
19264
19262
|
pathname = _useLocation.pathname,
|
|
19265
|
-
_useLocation$state = _useLocation.state
|
|
19266
|
-
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19263
|
+
_useLocation$state = _useLocation.state;
|
|
19267
19264
|
var _useState1 = useState(false),
|
|
19268
19265
|
_useState10 = _slicedToArray(_useState1, 2),
|
|
19269
19266
|
isFullScreen = _useState10[0],
|
|
@@ -19739,17 +19736,16 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19739
19736
|
isFullScreen: isFullScreen
|
|
19740
19737
|
});
|
|
19741
19738
|
useEffect(function () {
|
|
19742
|
-
if (!localStorage.getItem('isTabChange') ||
|
|
19743
|
-
|
|
19744
|
-
|
|
19745
|
-
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19749
|
-
|
|
19750
|
-
|
|
19751
|
-
|
|
19752
|
-
}, 0);
|
|
19739
|
+
// if (!localStorage.getItem('isTabChange') || state?.updateCurrentPage) {
|
|
19740
|
+
// if (pagePath === pathname) {
|
|
19741
|
+
// // @ts-ignore
|
|
19742
|
+
// config.ref?.current?.tableRef?.current?.refreshTable();
|
|
19743
|
+
// }
|
|
19744
|
+
// }
|
|
19745
|
+
// setTimeout(() => {
|
|
19746
|
+
// // 处理页面刷新两面
|
|
19747
|
+
// localStorage.removeItem('isTabChange');
|
|
19748
|
+
// }, 0);
|
|
19753
19749
|
}, [pathname]);
|
|
19754
19750
|
var expandedRowKeys = props === null || props === void 0 ? void 0 : (_props$expandable = props.expandable) === null || _props$expandable === void 0 ? void 0 : _props$expandable.expandedRowKeys;
|
|
19755
19751
|
//todo summary属性已经被使用,为了兼容之前的,现在使用 summaryList
|
|
@@ -19917,7 +19913,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
19917
19913
|
if (!match) return null;
|
|
19918
19914
|
var _match = _toArray(match),
|
|
19919
19915
|
url = _match[0],
|
|
19920
|
-
values = _match.slice(1);
|
|
19916
|
+
values = _arrayLikeToArray(_match).slice(1);
|
|
19921
19917
|
var isExact = pathname === url;
|
|
19922
19918
|
if (exact && !isExact) return null;
|
|
19923
19919
|
return {
|
|
@@ -32597,7 +32593,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32597
32593
|
});
|
|
32598
32594
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
32599
32595
|
var _ref6 = _toArray(_ref5),
|
|
32600
|
-
resArr = _ref6.slice(0);
|
|
32596
|
+
resArr = _arrayLikeToArray(_ref6).slice(0);
|
|
32601
32597
|
var configParams = {};
|
|
32602
32598
|
detailTablesSetting.map(function (item, index) {
|
|
32603
32599
|
var _resArr$index;
|
package/dist/index.js
CHANGED
|
@@ -325,19 +325,17 @@ function _regeneratorDefine(e, r, n, t) {
|
|
|
325
325
|
i = 0;
|
|
326
326
|
}
|
|
327
327
|
_regeneratorDefine = function (e, r, n, t) {
|
|
328
|
-
|
|
328
|
+
function o(r, n) {
|
|
329
|
+
_regeneratorDefine(e, r, function (e) {
|
|
330
|
+
return this._invoke(r, n, e);
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
r ? i ? i(e, r, {
|
|
329
334
|
value: n,
|
|
330
335
|
enumerable: !t,
|
|
331
336
|
configurable: !t,
|
|
332
337
|
writable: !t
|
|
333
|
-
}) : e[r] = n;
|
|
334
|
-
function o(r, n) {
|
|
335
|
-
_regeneratorDefine(e, r, function (e) {
|
|
336
|
-
return this._invoke(r, n, e);
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
o("next", 0), o("throw", 1), o("return", 2);
|
|
340
|
-
}
|
|
338
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
341
339
|
}, _regeneratorDefine(e, r, n, t);
|
|
342
340
|
}
|
|
343
341
|
function _setPrototypeOf(t, e) {
|
|
@@ -7561,7 +7559,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7561
7559
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7562
7560
|
var result, _t;
|
|
7563
7561
|
return _regenerator().w(function (_context) {
|
|
7564
|
-
while (1) switch (_context.n) {
|
|
7562
|
+
while (1) switch (_context.p = _context.n) {
|
|
7565
7563
|
case 0:
|
|
7566
7564
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7567
7565
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
@@ -7927,7 +7925,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7927
7925
|
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
|
|
7928
7926
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7929
7927
|
return _regenerator().w(function (_context3) {
|
|
7930
|
-
while (1) switch (_context3.n) {
|
|
7928
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
7931
7929
|
case 0:
|
|
7932
7930
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7933
7931
|
return d[selectKey] == value;
|
|
@@ -14833,7 +14831,7 @@ function getStorageVale(storageKeyString) {
|
|
|
14833
14831
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
14834
14832
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
14835
14833
|
localstorage = _storageKeyString$spl2[0],
|
|
14836
|
-
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
14834
|
+
restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
|
|
14837
14835
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
14838
14836
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
14839
14837
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -19285,8 +19283,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19285
19283
|
setPagePath = _useState0[1];
|
|
19286
19284
|
var _useLocation = umi.useLocation(),
|
|
19287
19285
|
pathname = _useLocation.pathname,
|
|
19288
|
-
_useLocation$state = _useLocation.state
|
|
19289
|
-
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19286
|
+
_useLocation$state = _useLocation.state;
|
|
19290
19287
|
var _useState1 = React$1.useState(false),
|
|
19291
19288
|
_useState10 = _slicedToArray(_useState1, 2),
|
|
19292
19289
|
isFullScreen = _useState10[0],
|
|
@@ -19762,17 +19759,16 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19762
19759
|
isFullScreen: isFullScreen
|
|
19763
19760
|
});
|
|
19764
19761
|
React$1.useEffect(function () {
|
|
19765
|
-
if (!localStorage.getItem('isTabChange') ||
|
|
19766
|
-
|
|
19767
|
-
|
|
19768
|
-
|
|
19769
|
-
|
|
19770
|
-
|
|
19771
|
-
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
|
|
19775
|
-
}, 0);
|
|
19762
|
+
// if (!localStorage.getItem('isTabChange') || state?.updateCurrentPage) {
|
|
19763
|
+
// if (pagePath === pathname) {
|
|
19764
|
+
// // @ts-ignore
|
|
19765
|
+
// config.ref?.current?.tableRef?.current?.refreshTable();
|
|
19766
|
+
// }
|
|
19767
|
+
// }
|
|
19768
|
+
// setTimeout(() => {
|
|
19769
|
+
// // 处理页面刷新两面
|
|
19770
|
+
// localStorage.removeItem('isTabChange');
|
|
19771
|
+
// }, 0);
|
|
19776
19772
|
}, [pathname]);
|
|
19777
19773
|
var expandedRowKeys = props === null || props === void 0 ? void 0 : (_props$expandable = props.expandable) === null || _props$expandable === void 0 ? void 0 : _props$expandable.expandedRowKeys;
|
|
19778
19774
|
//todo summary属性已经被使用,为了兼容之前的,现在使用 summaryList
|
|
@@ -19940,7 +19936,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
19940
19936
|
if (!match) return null;
|
|
19941
19937
|
var _match = _toArray(match),
|
|
19942
19938
|
url = _match[0],
|
|
19943
|
-
values = _match.slice(1);
|
|
19939
|
+
values = _arrayLikeToArray(_match).slice(1);
|
|
19944
19940
|
var isExact = pathname === url;
|
|
19945
19941
|
if (exact && !isExact) return null;
|
|
19946
19942
|
return {
|
|
@@ -32620,7 +32616,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32620
32616
|
});
|
|
32621
32617
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
32622
32618
|
var _ref6 = _toArray(_ref5),
|
|
32623
|
-
resArr = _ref6.slice(0);
|
|
32619
|
+
resArr = _arrayLikeToArray(_ref6).slice(0);
|
|
32624
32620
|
var configParams = {};
|
|
32625
32621
|
detailTablesSetting.map(function (item, index) {
|
|
32626
32622
|
var _resArr$index;
|
package/package.json
CHANGED
|
@@ -852,16 +852,16 @@ export default (props: any) => {
|
|
|
852
852
|
};
|
|
853
853
|
|
|
854
854
|
useEffect(() => {
|
|
855
|
-
if (!localStorage.getItem('isTabChange') || state?.updateCurrentPage) {
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
}
|
|
861
|
-
setTimeout(() => {
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
}, 0);
|
|
855
|
+
// if (!localStorage.getItem('isTabChange') || state?.updateCurrentPage) {
|
|
856
|
+
// if (pagePath === pathname) {
|
|
857
|
+
// // @ts-ignore
|
|
858
|
+
// config.ref?.current?.tableRef?.current?.refreshTable();
|
|
859
|
+
// }
|
|
860
|
+
// }
|
|
861
|
+
// setTimeout(() => {
|
|
862
|
+
// // 处理页面刷新两面
|
|
863
|
+
// localStorage.removeItem('isTabChange');
|
|
864
|
+
// }, 0);
|
|
865
865
|
}, [pathname]);
|
|
866
866
|
|
|
867
867
|
const expandedRowKeys = props?.expandable?.expandedRowKeys;
|