eco-vue-js 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +7 -9
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +9 -17
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AA4EA;;;
|
1
|
+
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AA4EA;;;wBA8cwB,IAAI,KAAK,KAAK;;;;iBAtBrB,WAAW;;;;;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;WA+BvC,GAAG;;;kBAnRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;kBATF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;YA/IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;OAsZwB,IAAI;;;4BAPnD,IAAI,KAAK,KAAK;;;;qBAtBrB,WAAW;;;;;oBAFZ,kBAAkB,IAAI,CAAC;+BACZ,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;SA8ByB,IAAI;WACpE,GAAG;;;kBAnRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;kBATF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;YA/IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;;;;;gCA+YvB,IAAI,KAAK,KAAK;;;;yBAtBrB,WAAW;;;;;wBAFZ,kBAAkB,IAAI,CAAC;mCACZ,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;aA8ByB,IAAI;eACpE,GAAG;;;sBAnRA,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;;;sBATF,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;;;gBA/IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;gBAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;AApD/C,wBAgd2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -137,6 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
137
137
|
return;
|
138
138
|
resetPage();
|
139
139
|
});
|
140
|
+
watch(count, (value) => emit("update:count", value), { immediate: true });
|
140
141
|
__expose({
|
141
142
|
resetPage
|
142
143
|
});
|
@@ -185,25 +186,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
185
186
|
class: normalizeClass({
|
186
187
|
"last:min-h-[calc(100vh-var(--header-height)-var(--infinite-list-header-height))] last:pb-16": !_ctx.minHeight
|
187
188
|
}),
|
188
|
-
"onUpdate:count":
|
189
|
-
updateCount($event);
|
190
|
-
_ctx.$emit("update:count", $event);
|
191
|
-
}),
|
189
|
+
"onUpdate:count": updateCount,
|
192
190
|
"onUpdate:pagesCount": updatePagesCount,
|
193
|
-
"onUpdate:nextPage": _cache[
|
191
|
+
"onUpdate:nextPage": _cache[1] || (_cache[1] = ($event) => {
|
194
192
|
updateNextPage($event);
|
195
193
|
infiniteScroll.value?.checkIsScrollDown();
|
196
194
|
}),
|
197
|
-
"onUpdate:previousPage": _cache[
|
195
|
+
"onUpdate:previousPage": _cache[2] || (_cache[2] = ($event) => {
|
198
196
|
updatePreviousPage($event);
|
199
197
|
infiniteScroll.value?.checkIsScrollUp();
|
200
198
|
}),
|
201
199
|
"onUpdate:scroll": updateScroll,
|
202
|
-
"onUpdateFromHeader:scroll": _cache[
|
200
|
+
"onUpdateFromHeader:scroll": _cache[3] || (_cache[3] = ($event) => _ctx.headerTop > 0 && nextTick(() => updateScroll(_ctx.headerTop))),
|
203
201
|
"onError:invalidPage": removePage,
|
204
202
|
onRefetch: ($event) => unref(refetchNextPages)(index),
|
205
|
-
"onUpdate:selected": _cache[
|
206
|
-
onFetched: _cache[
|
203
|
+
"onUpdate:selected": _cache[4] || (_cache[4] = ($event) => _ctx.$emit("update:selected", $event)),
|
204
|
+
onFetched: _cache[5] || (_cache[5] = ($event) => isResettingPage.value = false)
|
207
205
|
}, {
|
208
206
|
default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last }) => [
|
209
207
|
renderSlot(_ctx.$slots, "default", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AAuHA;;;
|
1
|
+
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AAuHA;;;wBAkewB,IAAI,KAAK,KAAK;;;;iBArBrB,WAAW;;;;;;;;;;;;;gBACZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;oBAC1B,MAAM;eACX,OAAO;cACR,OAAO;;;;;;;;;;;WAwBd,GAAG;;;kBAtSA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;cACT,IAAI;;;kBARF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;cACT,IAAI;;;YA1JN,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,iBAAiB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC9C,qBAAqB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAClD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;;;;;;OA8aiD,IAAI;;;4BAPnD,IAAI,KAAK,KAAK;;;;qBArBrB,WAAW;;;;;;;;;;;;;oBACZ,kBAAkB,IAAI,CAAC;+BACZ,OAAO,KAAK,OAAO;wBAC1B,MAAM;mBACX,OAAO;kBACR,OAAO;;;;;;;;;;;;;;;SAuBkD,IAAI;WACpE,GAAG;;;kBAtSA,IAAI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,IAAI;gBAClD,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,mBAAmB,SAAS,MAAM,GAAG,IAAI;gBACzC,SAAS,GAAG,IAAI;gBAChB,2BAA2B,GAAG,IAAI;gBAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;gBACzC,SAAS,GAAG,IAAI;;;;AApDtB,wBAwe2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -42,8 +42,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
42
|
refetchInterval: props.refetchInterval ? computed(() => isIntersecting.value ? props.refetchInterval : void 0) : void 0
|
43
43
|
}
|
44
44
|
);
|
45
|
-
const count = computed(() => data.value?.count);
|
46
|
-
const pagesCount = computed(() => data.value?.pages_count);
|
47
45
|
const nextPage = computed(() => data.value?.next);
|
48
46
|
const previousPage = computed(() => data.value?.previous);
|
49
47
|
const setItem = (index, newItem) => {
|
@@ -79,21 +77,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
79
77
|
return void 0;
|
80
78
|
return data.value.results[data.value.results.length - 1];
|
81
79
|
};
|
82
|
-
watch(
|
83
|
-
if (value !== void 0)
|
84
|
-
emit("update:
|
85
|
-
|
86
|
-
|
87
|
-
if (value)
|
88
|
-
emit("update:pagesCount", value);
|
89
|
-
|
90
|
-
|
91
|
-
if (props.lastPage && value !== void 0)
|
92
|
-
emit("update:nextPage", value);
|
93
|
-
}, { immediate: true });
|
94
|
-
watch(previousPage, (value) => {
|
95
|
-
if (props.firstPage && value !== void 0)
|
96
|
-
emit("update:previousPage", value);
|
80
|
+
watch(data, (value) => {
|
81
|
+
if (props.firstPage && value?.previous !== void 0)
|
82
|
+
emit("update:previousPage", value.previous);
|
83
|
+
if (props.lastPage && value?.next !== void 0)
|
84
|
+
emit("update:nextPage", value.next);
|
85
|
+
if (value?.pages_count)
|
86
|
+
emit("update:pagesCount", value.pages_count);
|
87
|
+
if (value?.count !== void 0)
|
88
|
+
emit("update:count", value.count);
|
97
89
|
}, { immediate: true });
|
98
90
|
watch(error, (error2) => {
|
99
91
|
if (props.isInvalidPage(error2))
|