@hostlink/nuxt-light 1.67.0 → 1.67.1
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/module.json
CHANGED
|
@@ -172,7 +172,7 @@ const table = ref();
|
|
|
172
172
|
const rows = ref(props.rows ?? []);
|
|
173
173
|
const resolvedSearchOptions = ref({});
|
|
174
174
|
const localSearchOptions = ref({});
|
|
175
|
-
|
|
175
|
+
const resolveSeqs = /* @__PURE__ */ new Map();
|
|
176
176
|
const resolveColumnOptions = async (col) => {
|
|
177
177
|
if (!col.searchOptions || !col.name) return;
|
|
178
178
|
if (Array.isArray(col.searchOptions)) {
|
|
@@ -185,10 +185,11 @@ const resolveColumnOptions = async (col) => {
|
|
|
185
185
|
columnValue: filters.value[col.name],
|
|
186
186
|
column: col
|
|
187
187
|
};
|
|
188
|
-
const seq =
|
|
188
|
+
const seq = (resolveSeqs.get(col.name) ?? 0) + 1;
|
|
189
|
+
resolveSeqs.set(col.name, seq);
|
|
189
190
|
try {
|
|
190
191
|
const result = await col.searchOptions(ctx);
|
|
191
|
-
if (seq !==
|
|
192
|
+
if (seq !== resolveSeqs.get(col.name)) return;
|
|
192
193
|
resolvedSearchOptions.value[col.name] = result;
|
|
193
194
|
localSearchOptions.value[col.name] = result;
|
|
194
195
|
} catch {
|
|
@@ -226,7 +226,6 @@ declare const light: {
|
|
|
226
226
|
label: {
|
|
227
227
|
create: string;
|
|
228
228
|
set: string;
|
|
229
|
-
clear: string;
|
|
230
229
|
filter: string;
|
|
231
230
|
remove: string;
|
|
232
231
|
cancel: string;
|
|
@@ -234,6 +233,7 @@ declare const light: {
|
|
|
234
233
|
reset: string;
|
|
235
234
|
select: string;
|
|
236
235
|
search: string;
|
|
236
|
+
clear: string;
|
|
237
237
|
ok: string;
|
|
238
238
|
update: string;
|
|
239
239
|
refresh: string;
|
|
@@ -360,11 +360,11 @@ declare const light: {
|
|
|
360
360
|
today: string;
|
|
361
361
|
};
|
|
362
362
|
editor: {
|
|
363
|
-
size: string;
|
|
364
363
|
bold: string;
|
|
365
364
|
left: string;
|
|
366
365
|
right: string;
|
|
367
366
|
center: string;
|
|
367
|
+
size: string;
|
|
368
368
|
align: string;
|
|
369
369
|
italic: string;
|
|
370
370
|
strikethrough: string;
|
|
@@ -448,8 +448,8 @@ declare const light: {
|
|
|
448
448
|
icon: string;
|
|
449
449
|
};
|
|
450
450
|
uploader: {
|
|
451
|
-
clear: string;
|
|
452
451
|
done: string;
|
|
452
|
+
clear: string;
|
|
453
453
|
add: string;
|
|
454
454
|
upload: string;
|
|
455
455
|
removeQueue: string;
|
|
@@ -823,7 +823,6 @@ declare const _default: () => {
|
|
|
823
823
|
label: {
|
|
824
824
|
create: string;
|
|
825
825
|
set: string;
|
|
826
|
-
clear: string;
|
|
827
826
|
filter: string;
|
|
828
827
|
remove: string;
|
|
829
828
|
cancel: string;
|
|
@@ -831,6 +830,7 @@ declare const _default: () => {
|
|
|
831
830
|
reset: string;
|
|
832
831
|
select: string;
|
|
833
832
|
search: string;
|
|
833
|
+
clear: string;
|
|
834
834
|
ok: string;
|
|
835
835
|
update: string;
|
|
836
836
|
refresh: string;
|
|
@@ -957,11 +957,11 @@ declare const _default: () => {
|
|
|
957
957
|
today: string;
|
|
958
958
|
};
|
|
959
959
|
editor: {
|
|
960
|
-
size: string;
|
|
961
960
|
bold: string;
|
|
962
961
|
left: string;
|
|
963
962
|
right: string;
|
|
964
963
|
center: string;
|
|
964
|
+
size: string;
|
|
965
965
|
align: string;
|
|
966
966
|
italic: string;
|
|
967
967
|
strikethrough: string;
|
|
@@ -1045,8 +1045,8 @@ declare const _default: () => {
|
|
|
1045
1045
|
icon: string;
|
|
1046
1046
|
};
|
|
1047
1047
|
uploader: {
|
|
1048
|
-
clear: string;
|
|
1049
1048
|
done: string;
|
|
1049
|
+
clear: string;
|
|
1050
1050
|
add: string;
|
|
1051
1051
|
upload: string;
|
|
1052
1052
|
removeQueue: string;
|