@gingkoo/pandora-metabase 1.0.53 → 1.0.54
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.
|
@@ -307,11 +307,12 @@ var sortList = function sortList(arr) {
|
|
|
307
307
|
});
|
|
308
308
|
};
|
|
309
309
|
var NextDom = function NextDom(props) {
|
|
310
|
+
var _store$metaList;
|
|
310
311
|
var meta = props.meta,
|
|
311
312
|
groupIndex = props.groupIndex;
|
|
312
313
|
var store = (0, _useProvider.useStore)();
|
|
313
314
|
// @ts-ignore
|
|
314
|
-
if (!store.metaList[groupIndex].list[0].table.name) return null;
|
|
315
|
+
if (!((_store$metaList = store.metaList) !== null && _store$metaList !== void 0 && (_store$metaList = _store$metaList[groupIndex]) !== null && _store$metaList !== void 0 && (_store$metaList = _store$metaList.list) !== null && _store$metaList !== void 0 && (_store$metaList = _store$metaList[0]) !== null && _store$metaList !== void 0 && (_store$metaList = _store$metaList.table) !== null && _store$metaList !== void 0 && _store$metaList.name)) return null;
|
|
315
316
|
var available = findNextIcon(store, props);
|
|
316
317
|
if (!store.showToolbar(_enum.TypeEnum.permissionTable)) {
|
|
317
318
|
available = available.filter(function (v) {
|
|
@@ -320,7 +321,8 @@ var NextDom = function NextDom(props) {
|
|
|
320
321
|
}
|
|
321
322
|
var size = judgeSize(store, props, available.length, groupIndex);
|
|
322
323
|
function handleClick(type) {
|
|
323
|
-
var
|
|
324
|
+
var _store$metaList2;
|
|
325
|
+
var index = (_store$metaList2 = store.metaList) === null || _store$metaList2 === void 0 || (_store$metaList2 = _store$metaList2[groupIndex]) === null || _store$metaList2 === void 0 || (_store$metaList2 = _store$metaList2.list) === null || _store$metaList2 === void 0 ? void 0 : _store$metaList2.indexOf(meta);
|
|
324
326
|
store.addMeta(type, index + 1, groupIndex);
|
|
325
327
|
}
|
|
326
328
|
var MetaIconDom = metaIcon(size, handleClick);
|
|
@@ -299,11 +299,12 @@ var sortList = function sortList(arr) {
|
|
|
299
299
|
});
|
|
300
300
|
};
|
|
301
301
|
var NextDom = function NextDom(props) {
|
|
302
|
+
var _store$metaList;
|
|
302
303
|
var meta = props.meta,
|
|
303
304
|
groupIndex = props.groupIndex;
|
|
304
305
|
var store = useStore();
|
|
305
306
|
// @ts-ignore
|
|
306
|
-
if (!store.metaList[groupIndex].list[0].table.name) return null;
|
|
307
|
+
if (!((_store$metaList = store.metaList) !== null && _store$metaList !== void 0 && (_store$metaList = _store$metaList[groupIndex]) !== null && _store$metaList !== void 0 && (_store$metaList = _store$metaList.list) !== null && _store$metaList !== void 0 && (_store$metaList = _store$metaList[0]) !== null && _store$metaList !== void 0 && (_store$metaList = _store$metaList.table) !== null && _store$metaList !== void 0 && _store$metaList.name)) return null;
|
|
307
308
|
var available = findNextIcon(store, props);
|
|
308
309
|
if (!store.showToolbar(TypeEnum.permissionTable)) {
|
|
309
310
|
available = available.filter(function (v) {
|
|
@@ -312,7 +313,8 @@ var NextDom = function NextDom(props) {
|
|
|
312
313
|
}
|
|
313
314
|
var size = judgeSize(store, props, available.length, groupIndex);
|
|
314
315
|
function handleClick(type) {
|
|
315
|
-
var
|
|
316
|
+
var _store$metaList2;
|
|
317
|
+
var index = (_store$metaList2 = store.metaList) === null || _store$metaList2 === void 0 || (_store$metaList2 = _store$metaList2[groupIndex]) === null || _store$metaList2 === void 0 || (_store$metaList2 = _store$metaList2.list) === null || _store$metaList2 === void 0 ? void 0 : _store$metaList2.indexOf(meta);
|
|
316
318
|
store.addMeta(type, index + 1, groupIndex);
|
|
317
319
|
}
|
|
318
320
|
var MetaIconDom = metaIcon(size, handleClick);
|