aloha-vue 1.2.128 → 1.2.129
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/package.json +1 -1
- package/src/ATable/ATable.js +1 -2
- package/src/ATable/ATableTr/ATableTr.js +0 -3
- package/src/ATable/ATableTr/compositionAPI/AttributesAPI.js +2 -0
- package/src/ATable/compositionAPI/LimitOffsetAPI.js +0 -3
- package/src/ATable/compositionAPI/RowsAPI.js +7 -0
- package/src/ATable/compositionAPI/SortChangeAPI.js +0 -2
package/package.json
CHANGED
package/src/ATable/ATable.js
CHANGED
|
@@ -476,7 +476,6 @@ export default {
|
|
|
476
476
|
} = LimitOffsetAPI(props, context, {
|
|
477
477
|
closePreviewAll,
|
|
478
478
|
scrollToTable,
|
|
479
|
-
setEmptySelectedRowsIndexes,
|
|
480
479
|
setFocusToTable,
|
|
481
480
|
viewCurrent,
|
|
482
481
|
});
|
|
@@ -494,6 +493,7 @@ export default {
|
|
|
494
493
|
dataSorted,
|
|
495
494
|
limit,
|
|
496
495
|
offset,
|
|
496
|
+
setEmptySelectedRowsIndexes,
|
|
497
497
|
usePaginationLocal,
|
|
498
498
|
});
|
|
499
499
|
|
|
@@ -597,7 +597,6 @@ export default {
|
|
|
597
597
|
changeModelSort,
|
|
598
598
|
} = SortChangeAPI(props, context, {
|
|
599
599
|
modelSortLocal,
|
|
600
|
-
setEmptySelectedRowsIndexes,
|
|
601
600
|
closePreviewAll,
|
|
602
601
|
});
|
|
603
602
|
|
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
export default function LimitOffsetAPI(props, { emit }, {
|
|
12
12
|
closePreviewAll = () => {},
|
|
13
13
|
scrollToTable = () => {},
|
|
14
|
-
setEmptySelectedRowsIndexes = () => {},
|
|
15
14
|
setFocusToTable = () => {},
|
|
16
15
|
viewCurrent = computed(() => ({})),
|
|
17
16
|
}) {
|
|
@@ -50,7 +49,6 @@ export default function LimitOffsetAPI(props, { emit }, {
|
|
|
50
49
|
offset: offsetLocal,
|
|
51
50
|
limit: limit.value,
|
|
52
51
|
});
|
|
53
|
-
setEmptySelectedRowsIndexes();
|
|
54
52
|
if (reloadLocal) {
|
|
55
53
|
closePreviewAll();
|
|
56
54
|
}
|
|
@@ -65,7 +63,6 @@ export default function LimitOffsetAPI(props, { emit }, {
|
|
|
65
63
|
offset: offset.value,
|
|
66
64
|
limit: limitLocal,
|
|
67
65
|
});
|
|
68
|
-
setEmptySelectedRowsIndexes();
|
|
69
66
|
closePreviewAll();
|
|
70
67
|
};
|
|
71
68
|
|
|
@@ -14,6 +14,7 @@ export default function RowsAPI(props, {
|
|
|
14
14
|
dataSorted = computed(() => []),
|
|
15
15
|
limit = ref(0),
|
|
16
16
|
offset = ref(0),
|
|
17
|
+
setEmptySelectedRowsIndexes = () => {},
|
|
17
18
|
usePaginationLocal = computed(() => false),
|
|
18
19
|
}) {
|
|
19
20
|
const pagination = toRef(props, "pagination");
|
|
@@ -22,6 +23,7 @@ export default function RowsAPI(props, {
|
|
|
22
23
|
const rowsLocal = ref([]);
|
|
23
24
|
let rowsLocalIndex = 0;
|
|
24
25
|
let rowsLocalInterval = undefined;
|
|
26
|
+
let firstLoad = true;
|
|
25
27
|
|
|
26
28
|
const dataPaginated = computed(() => {
|
|
27
29
|
if (limit.value && !pagination.value.isOutside && usePaginationLocal.value) {
|
|
@@ -84,6 +86,11 @@ export default function RowsAPI(props, {
|
|
|
84
86
|
if (isEqual(newValue, oldValue)) {
|
|
85
87
|
return;
|
|
86
88
|
}
|
|
89
|
+
if (!firstLoad) {
|
|
90
|
+
setEmptySelectedRowsIndexes();
|
|
91
|
+
}
|
|
92
|
+
firstLoad = false;
|
|
93
|
+
|
|
87
94
|
rowsLocal.value = [];
|
|
88
95
|
rowsLocalIndex = 0;
|
|
89
96
|
stopRenderRows();
|
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
|
|
11
11
|
export default function SortChangeAPI(props, { emit }, {
|
|
12
12
|
modelSortLocal = ref([]),
|
|
13
|
-
setEmptySelectedRowsIndexes = () => {},
|
|
14
13
|
closePreviewAll = () => {},
|
|
15
14
|
}) {
|
|
16
15
|
const isSortingMultiColumn = toRef(props, "isSortingMultiColumn");
|
|
@@ -62,7 +61,6 @@ export default function SortChangeAPI(props, { emit }, {
|
|
|
62
61
|
emit("changeSorting", {
|
|
63
62
|
modelSort: cloneDeep(modelSortLocal.value),
|
|
64
63
|
});
|
|
65
|
-
setEmptySelectedRowsIndexes();
|
|
66
64
|
closePreviewAll();
|
|
67
65
|
};
|
|
68
66
|
|