aloha-vue 1.2.128 → 1.2.130
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/ATableHeaderTh/ATableHeaderTh.js +2 -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/src/styles/components/ATable.scss +9 -0
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
|
|
|
@@ -121,8 +121,6 @@ export default {
|
|
|
121
121
|
h("div", {
|
|
122
122
|
class: [
|
|
123
123
|
"a_table__cell__child",
|
|
124
|
-
this.column.class,
|
|
125
|
-
this.column.classHeader,
|
|
126
124
|
],
|
|
127
125
|
}, [
|
|
128
126
|
this.columnGroupNames && h(ATranslation, {
|
|
@@ -133,6 +131,8 @@ export default {
|
|
|
133
131
|
h(AButton, {
|
|
134
132
|
class: [
|
|
135
133
|
"a_table__th__btn",
|
|
134
|
+
this.column.class,
|
|
135
|
+
this.column.classHeader,
|
|
136
136
|
{
|
|
137
137
|
"a_btn a_btn_link a_table__th__btn_sort": this.isSortable,
|
|
138
138
|
a_table__th__btn_sequence: this.sequenceNumberSort,
|
|
@@ -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
|
|
|
@@ -168,6 +168,15 @@
|
|
|
168
168
|
text-align: inherit;
|
|
169
169
|
display: flex;
|
|
170
170
|
align-items: center;
|
|
171
|
+
&.a_text_right {
|
|
172
|
+
justify-content: flex-end;
|
|
173
|
+
}
|
|
174
|
+
&.a_text_left {
|
|
175
|
+
justify-content: flex-start;
|
|
176
|
+
}
|
|
177
|
+
&.a_text_center {
|
|
178
|
+
justify-content: center;
|
|
179
|
+
}
|
|
171
180
|
}
|
|
172
181
|
.a_table__th__btn_sort {
|
|
173
182
|
padding-right: 15px;
|