@anweb/nuxt-ancore 1.14.1 → 1.14.2

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "AnCore",
3
3
  "configKey": "ancore",
4
- "version": "1.14.1",
4
+ "version": "1.14.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -33,7 +33,7 @@ export const useAnList = (initConfig) => {
33
33
  config.value.filter[config.value.skipField || "skip"] = items.length;
34
34
  });
35
35
  const canLoadMore = scrollConfig?.options?.canLoadMore || (() => {
36
- return (scrollConfig?.canLoadMore?.() ?? true) && inited.value && items.length < (count.value || 0) && // @ts-ignore
36
+ return (scrollConfig?.canLoadMore?.() ?? true) && inited.value && data.status.value === "idle" && items.length < (count.value || 0) && // @ts-ignore
37
37
  !!config.value.filter.limit;
38
38
  });
39
39
  const { reset } = useInfiniteScroll(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anweb/nuxt-ancore",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "description": "AnCore Nuxt module",
5
5
  "repository": "https://github.com/ANLTD/ancore",
6
6
  "license": "MIT",
@@ -33,13 +33,13 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@nuxt/kit": "^4.2.1",
36
- "@vueuse/core": "^14.0.0",
37
- "@vueuse/integrations": "^14.0.0",
36
+ "@vueuse/core": "^14.1.0",
37
+ "@vueuse/integrations": "^14.1.0",
38
38
  "async-validator": "^4.2.5",
39
39
  "i18next": "^25.6.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@nuxt/devtools": "^3.1.0",
42
+ "@nuxt/devtools": "^3.1.1",
43
43
  "@nuxt/module-builder": "^1.0.2",
44
44
  "@nuxt/schema": "^4.2.1",
45
45
  "@types/node": "latest",