@ginjou/nuxt 0.1.0-beta.3 → 0.1.0-beta.4
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.cjs
CHANGED
|
@@ -37,6 +37,10 @@ const composables$2 = [
|
|
|
37
37
|
{
|
|
38
38
|
from: "./runtime/composables/select",
|
|
39
39
|
name: "useAsyncSelect"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
from: "./runtime/composables/infinite-list",
|
|
43
|
+
name: "useAsyncInfiniteList"
|
|
40
44
|
}
|
|
41
45
|
];
|
|
42
46
|
function ImportListForAsync(resolve) {
|
|
@@ -69,6 +73,7 @@ const composables$1 = [
|
|
|
69
73
|
"useGetOne",
|
|
70
74
|
"useGo",
|
|
71
75
|
"useI18nContext",
|
|
76
|
+
"useInfiniteList",
|
|
72
77
|
"useList",
|
|
73
78
|
"useLocale",
|
|
74
79
|
"useLocation",
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -34,6 +34,10 @@ const composables$2 = [
|
|
|
34
34
|
{
|
|
35
35
|
from: "./runtime/composables/select",
|
|
36
36
|
name: "useAsyncSelect"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
from: "./runtime/composables/infinite-list",
|
|
40
|
+
name: "useAsyncInfiniteList"
|
|
37
41
|
}
|
|
38
42
|
];
|
|
39
43
|
function ImportListForAsync(resolve) {
|
|
@@ -66,6 +70,7 @@ const composables$1 = [
|
|
|
66
70
|
"useGetOne",
|
|
67
71
|
"useGo",
|
|
68
72
|
"useI18nContext",
|
|
73
|
+
"useInfiniteList",
|
|
69
74
|
"useList",
|
|
70
75
|
"useLocale",
|
|
71
76
|
"useLocation",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BaseRecord } from '@ginjou/core';
|
|
2
|
+
import type { UseInfiniteListContext, UseInfiniteListProps, UseInfiniteListResult } from '@ginjou/vue';
|
|
3
|
+
import type { AsyncResult } from '../utils/async.js';
|
|
4
|
+
export declare function useAsyncInfiniteList<TData extends BaseRecord = BaseRecord, TError = unknown, TResultData extends BaseRecord = TData, TPageParam = number>(props?: UseInfiniteListProps<TData, TError, TResultData, TPageParam>, context?: UseInfiniteListContext): AsyncResult<UseInfiniteListResult<TError, TResultData, TPageParam>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useInfiniteList } from "@ginjou/vue";
|
|
2
|
+
import { withAsync } from "../utils/async.js";
|
|
3
|
+
export function useAsyncInfiniteList(props, context) {
|
|
4
|
+
const query = useInfiniteList(props, context);
|
|
5
|
+
return withAsync(query, async () => {
|
|
6
|
+
await query.suspense();
|
|
7
|
+
});
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ginjou/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.4",
|
|
5
5
|
"author": "zhong666 <hi@zhong666.me>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/aa900031/ginjou#readme",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@nuxt/kit": "^3.17.1",
|
|
41
|
-
"@ginjou/vue": "^0.1.0-beta.
|
|
41
|
+
"@ginjou/vue": "^0.1.0-beta.8",
|
|
42
42
|
"@ginjou/with-vue-router": "^0.1.0-beta.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|