@oiij/naive-ui 0.0.68 → 0.0.70
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/components/config-providers/ConfigProviders.js +1 -1
- package/dist/components/config-providers/ConfigProviders.vue.d.ts +3 -24
- package/dist/components/config-providers/index.d.ts +2 -2
- package/dist/components/copy-button/CopyButton.vue.d.ts +5 -18
- package/dist/components/data-table-plus/DataTablePlus.js +1 -1
- package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +58 -114
- package/dist/components/data-table-plus/index.d.ts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/loading-provider/LoadingProvider.vue.d.ts +3 -19
- package/dist/components/preset-form/PresetForm.js +1 -1
- package/dist/components/preset-form/PresetForm.vue.d.ts +19 -19
- package/dist/components/preset-form/index.d.ts +2 -2
- package/dist/components/preset-input/PresetInput.vue.d.ts +3 -3
- package/dist/components/preset-picker/PresetPicker.vue.d.ts +5 -5
- package/dist/components/preset-picker/index.d.ts +1 -1
- package/dist/components/preset-select/PresetSelect.js +1 -1
- package/dist/components/preset-select/PresetSelect.vue.d.ts +32 -52
- package/dist/components/preset-select/index.d.ts +1 -1
- package/dist/components/remote-request/RemoteRequest.js +1 -1
- package/dist/components/remote-request/RemoteRequest.vue.d.ts +6 -10
- package/dist/components/remote-request/index.d.ts +1 -1
- package/dist/components/search-input/SearchInput.js +2 -2
- package/dist/components/search-input/SearchInput.vue.d.ts +5 -25
- package/dist/components/toggle-input/ToggleInput.vue.d.ts +1 -1
- package/dist/components/tooltip-button/TooltipButton.vue.d.ts +3 -13
- package/dist/components/transition/BaseTransition.vue.d.ts +3 -10
- package/dist/components/type-writer/TypeWriter.vue.d.ts +5 -18
- package/dist/components.d.ts +1 -1
- package/dist/composables/_helper.js +7 -1
- package/dist/composables/index.d.ts +4 -4
- package/dist/composables/index.js +4 -4
- package/dist/composables/{useDataRequest.d.ts → use-data-request.d.ts} +9 -13
- package/dist/composables/{useDataRequest.js → use-data-request.js} +1 -1
- package/dist/composables/use-loading.d.ts +6 -0
- package/dist/composables/{useLoading.js → use-loading.js} +1 -1
- package/dist/composables/{useNaiveForm.d.ts → use-naive-form.d.ts} +8 -8
- package/dist/composables/{useNaiveForm.js → use-naive-form.js} +1 -1
- package/dist/composables/use-naive-theme.d.ts +52 -0
- package/dist/composables/use-naive-theme.js +89 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/package.json +7 -7
- package/dist/composables/useLoading.d.ts +0 -10
- package/dist/composables/useNaiveTheme.d.ts +0 -171
- package/dist/composables/useNaiveTheme.js +0 -86
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import LoadingProvider_default from "../loading-provider/LoadingProvider.js";
|
|
2
2
|
import "../loading-provider/index.js";
|
|
3
|
-
import { useLoading } from "../../composables/
|
|
3
|
+
import { useLoading } from "../../composables/use-loading.js";
|
|
4
4
|
import "../../composables/index.js";
|
|
5
5
|
import { createBlock, createCommentVNode, createVNode, defineComponent, guardReactiveProps, normalizeProps, onMounted, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
6
6
|
import { NConfigProvider, NDialogProvider, NGlobalStyle, NLoadingBarProvider, NMessageProvider, NModalProvider, NNotificationProvider, useDialog, useLoadingBar, useMessage, useModal, useNotification } from "naive-ui";
|
|
@@ -1,33 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "../../components.js";
|
|
4
|
-
import * as vue20 from "vue";
|
|
5
|
-
import * as naive_ui3 from "naive-ui";
|
|
1
|
+
import { ConfigProvidersProps } from "./index.js";
|
|
2
|
+
import * as vue21 from "vue";
|
|
6
3
|
|
|
7
4
|
//#region src/components/config-providers/ConfigProviders.vue.d.ts
|
|
8
5
|
declare var __VLS_44: {};
|
|
9
6
|
type __VLS_Slots = {} & {
|
|
10
7
|
default?: (props: typeof __VLS_44) => any;
|
|
11
8
|
};
|
|
12
|
-
declare const __VLS_base:
|
|
13
|
-
globalStyle?: boolean;
|
|
14
|
-
configProviderProps?: naive_ui3.ConfigProviderProps & ClassStyle;
|
|
15
|
-
loadingBarProviderProps?: naive_ui3.LoadingBarProviderProps & ClassStyle;
|
|
16
|
-
loadingProviderProps?: LoadingProviderProps & ClassStyle;
|
|
17
|
-
dialogProviderProps?: naive_ui3.DialogProviderProps & ClassStyle;
|
|
18
|
-
modalProviderProps?: naive_ui3.ModalProviderProps & ClassStyle;
|
|
19
|
-
notificationProviderProps?: naive_ui3.NotificationProviderProps & ClassStyle;
|
|
20
|
-
messageProviderProps?: naive_ui3.MessageProviderProps & ClassStyle;
|
|
21
|
-
}, {}, {}, {}, {}, vue20.ComponentOptionsMixin, vue20.ComponentOptionsMixin, {}, string, vue20.PublicProps, Readonly<{
|
|
22
|
-
globalStyle?: boolean;
|
|
23
|
-
configProviderProps?: naive_ui3.ConfigProviderProps & ClassStyle;
|
|
24
|
-
loadingBarProviderProps?: naive_ui3.LoadingBarProviderProps & ClassStyle;
|
|
25
|
-
loadingProviderProps?: LoadingProviderProps & ClassStyle;
|
|
26
|
-
dialogProviderProps?: naive_ui3.DialogProviderProps & ClassStyle;
|
|
27
|
-
modalProviderProps?: naive_ui3.ModalProviderProps & ClassStyle;
|
|
28
|
-
notificationProviderProps?: naive_ui3.NotificationProviderProps & ClassStyle;
|
|
29
|
-
messageProviderProps?: naive_ui3.MessageProviderProps & ClassStyle;
|
|
30
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, vue20.ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_base: vue21.DefineComponent<ConfigProvidersProps, {}, {}, {}, {}, vue21.ComponentOptionsMixin, vue21.ComponentOptionsMixin, {}, string, vue21.PublicProps, Readonly<ConfigProvidersProps> & Readonly<{}>, {}, {}, {}, {}, string, vue21.ComponentProvideOptions, false, {}, any>;
|
|
31
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
11
|
declare const _default: typeof __VLS_export;
|
|
33
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useLoading } from "../../composables/useLoading.js";
|
|
2
|
-
import "../../composables/index.js";
|
|
3
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
4
2
|
import { LoadingProviderProps } from "../loading-provider/index.js";
|
|
3
|
+
import { useLoading } from "../../composables/use-loading.js";
|
|
4
|
+
import "../../composables/index.js";
|
|
5
5
|
import { _default } from "./ConfigProviders.vue.js";
|
|
6
6
|
import { ConfigProviderProps, DialogProviderInst, DialogProviderProps, LoadingBarProviderInst, LoadingBarProviderProps, MessageProviderInst, MessageProviderProps, ModalProviderInst, ModalProviderProps, NotificationProviderInst, NotificationProviderProps } from "naive-ui";
|
|
7
7
|
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import * as _vueuse_core8 from "@vueuse/core";
|
|
4
|
-
import * as vue49 from "vue";
|
|
5
|
-
import * as naive_ui23 from "naive-ui";
|
|
1
|
+
import { CopyButtonProps } from "./index.js";
|
|
2
|
+
import * as vue55 from "vue";
|
|
6
3
|
|
|
7
4
|
//#region src/components/copy-button/CopyButton.vue.d.ts
|
|
8
5
|
declare var __VLS_9: {}, __VLS_18: {}, __VLS_25: {};
|
|
@@ -13,21 +10,11 @@ type __VLS_Slots = {} & {
|
|
|
13
10
|
} & {
|
|
14
11
|
tooltip?: (props: typeof __VLS_25) => any;
|
|
15
12
|
};
|
|
16
|
-
declare const __VLS_base:
|
|
17
|
-
value?: string;
|
|
18
|
-
config?: _vueuse_core8.UseClipboardOptions<string | undefined>;
|
|
19
|
-
tooltipProps?: naive_ui23.TooltipProps & ClassStyle;
|
|
20
|
-
buttonProps?: naive_ui23.ButtonProps & ClassStyle;
|
|
21
|
-
}, {}, {}, {}, {}, vue49.ComponentOptionsMixin, vue49.ComponentOptionsMixin, {} & {
|
|
13
|
+
declare const __VLS_base: vue55.DefineComponent<CopyButtonProps, {}, {}, {}, {}, vue55.ComponentOptionsMixin, vue55.ComponentOptionsMixin, {} & {
|
|
22
14
|
copied: (v: string | undefined) => any;
|
|
23
|
-
}, string,
|
|
24
|
-
value?: string;
|
|
25
|
-
config?: _vueuse_core8.UseClipboardOptions<string | undefined>;
|
|
26
|
-
tooltipProps?: naive_ui23.TooltipProps & ClassStyle;
|
|
27
|
-
buttonProps?: naive_ui23.ButtonProps & ClassStyle;
|
|
28
|
-
}> & Readonly<{
|
|
15
|
+
}, string, vue55.PublicProps, Readonly<CopyButtonProps> & Readonly<{
|
|
29
16
|
onCopied?: ((v: string | undefined) => any) | undefined;
|
|
30
|
-
}>, {}, {}, {}, {}, string,
|
|
17
|
+
}>, {}, {}, {}, {}, string, vue55.ComponentProvideOptions, false, {}, any>;
|
|
31
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
19
|
declare const _default: typeof __VLS_export;
|
|
33
20
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useDataRequest } from "../../composables/
|
|
1
|
+
import { useDataRequest } from "../../composables/use-data-request.js";
|
|
2
2
|
import MageArrowUp_default from "../icons/MageArrowUp.js";
|
|
3
3
|
import SearchInput_default from "../search-input/SearchInput.js";
|
|
4
4
|
import "../search-input/index.js";
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { DataObject } from "../../composables/
|
|
2
|
-
import "../../composables/index.js";
|
|
1
|
+
import { DataObject, UseDataRequestPagination } from "../../composables/use-data-request.js";
|
|
3
2
|
import { DataTablePlusEmits, DataTablePlusExpose, DataTablePlusProps } from "./index.js";
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
3
|
+
import "../../composables/index.js";
|
|
4
|
+
import * as _vueuse_core31 from "@vueuse/core";
|
|
5
|
+
import * as vue63 from "vue";
|
|
6
6
|
import { DataTableBaseColumn, DataTableFilterState, DataTableInst, DataTableSortState } from "naive-ui";
|
|
7
7
|
|
|
8
8
|
//#region src/components/data-table-plus/DataTablePlus.vue.d.ts
|
|
9
9
|
declare const __VLS_export: <P extends DataObject, D extends DataObject, R extends DataObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
10
|
-
props:
|
|
10
|
+
props: vue63.PublicProps & __VLS_PrettifyLocal<DataTablePlusProps<P, D, R> & {
|
|
11
11
|
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
12
12
|
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
13
13
|
onLoad?: ((row: R) => any) | undefined;
|
|
14
14
|
onScroll?: ((ev: Event) => any) | undefined;
|
|
15
15
|
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
16
16
|
onBefore?: ((params: P[]) => any) | undefined;
|
|
17
|
+
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
18
|
+
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
17
19
|
onClickRow?: ((row: R, index: number, event: MouseEvent, currentData: R[]) => any) | undefined;
|
|
18
20
|
onContextMenuRow?: ((row: R, index: number, event: MouseEvent, currentData: R[]) => any) | undefined;
|
|
19
21
|
onScrollBottom?: ((ev: Event) => any) | undefined;
|
|
@@ -24,12 +26,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
24
26
|
"onUpdate:expandedRowKeys"?: ((keys: (string | number)[], currentData: R[]) => any) | undefined;
|
|
25
27
|
"onUpdate:filters"?: ((filterState: DataTableFilterState, sourceColumn: DataTableBaseColumn) => any) | undefined;
|
|
26
28
|
"onUpdate:sorter"?: ((options: DataTableSortState | DataTableSortState[] | null) => any) | undefined;
|
|
27
|
-
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
28
|
-
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
29
29
|
}> & (typeof globalThis extends {
|
|
30
30
|
__VLS_PROPS_FALLBACK: infer P_1;
|
|
31
31
|
} ? P_1 : {});
|
|
32
|
-
expose: (exposed:
|
|
32
|
+
expose: (exposed: vue63.ShallowUnwrapRef<DataTablePlusExpose<P, D, R>>) => void;
|
|
33
33
|
attrs: any;
|
|
34
34
|
slots: {
|
|
35
35
|
header?: (props: {
|
|
@@ -38,11 +38,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
38
38
|
error: Error | undefined;
|
|
39
39
|
params: [] | P[];
|
|
40
40
|
list: R[];
|
|
41
|
-
paginationRef: {
|
|
42
|
-
page: number;
|
|
43
|
-
pageSize: number;
|
|
44
|
-
itemCount: number;
|
|
45
|
-
} | {
|
|
41
|
+
paginationRef: UseDataRequestPagination | {
|
|
46
42
|
page: number;
|
|
47
43
|
pageSize: number;
|
|
48
44
|
itemCount: number;
|
|
@@ -50,15 +46,11 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
50
46
|
filters: DataTableFilterState | undefined;
|
|
51
47
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
52
48
|
dataTableRef: DataTableInst | null;
|
|
53
|
-
pagination:
|
|
54
|
-
page: number;
|
|
55
|
-
pageSize: number;
|
|
56
|
-
itemCount: number;
|
|
57
|
-
}, {
|
|
49
|
+
pagination: vue63.Ref<{
|
|
58
50
|
page: number;
|
|
59
51
|
pageSize: number;
|
|
60
52
|
itemCount: number;
|
|
61
|
-
} | {
|
|
53
|
+
}, UseDataRequestPagination | {
|
|
62
54
|
page: number;
|
|
63
55
|
pageSize: number;
|
|
64
56
|
itemCount: number;
|
|
@@ -72,10 +64,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
72
64
|
setParams: (_params: Partial<P>) => void;
|
|
73
65
|
runParams: (_params: Partial<P>) => void;
|
|
74
66
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
75
|
-
onBefore:
|
|
76
|
-
onSuccess:
|
|
77
|
-
onError:
|
|
78
|
-
onFinally:
|
|
67
|
+
onBefore: _vueuse_core31.EventHookOn<[P[]]>;
|
|
68
|
+
onSuccess: _vueuse_core31.EventHookOn<[D, P[]]>;
|
|
69
|
+
onError: _vueuse_core31.EventHookOn<[Error, P[]]>;
|
|
70
|
+
onFinally: _vueuse_core31.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
79
71
|
}) => any;
|
|
80
72
|
} & {
|
|
81
73
|
title?: (props: {}) => any;
|
|
@@ -86,11 +78,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
86
78
|
error: Error | undefined;
|
|
87
79
|
params: [] | P[];
|
|
88
80
|
list: R[];
|
|
89
|
-
paginationRef: {
|
|
90
|
-
page: number;
|
|
91
|
-
pageSize: number;
|
|
92
|
-
itemCount: number;
|
|
93
|
-
} | {
|
|
81
|
+
paginationRef: UseDataRequestPagination | {
|
|
94
82
|
page: number;
|
|
95
83
|
pageSize: number;
|
|
96
84
|
itemCount: number;
|
|
@@ -98,15 +86,11 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
98
86
|
filters: DataTableFilterState | undefined;
|
|
99
87
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
100
88
|
dataTableRef: DataTableInst | null;
|
|
101
|
-
pagination:
|
|
102
|
-
page: number;
|
|
103
|
-
pageSize: number;
|
|
104
|
-
itemCount: number;
|
|
105
|
-
}, {
|
|
89
|
+
pagination: vue63.Ref<{
|
|
106
90
|
page: number;
|
|
107
91
|
pageSize: number;
|
|
108
92
|
itemCount: number;
|
|
109
|
-
} | {
|
|
93
|
+
}, UseDataRequestPagination | {
|
|
110
94
|
page: number;
|
|
111
95
|
pageSize: number;
|
|
112
96
|
itemCount: number;
|
|
@@ -120,10 +104,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
120
104
|
setParams: (_params: Partial<P>) => void;
|
|
121
105
|
runParams: (_params: Partial<P>) => void;
|
|
122
106
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
123
|
-
onBefore:
|
|
124
|
-
onSuccess:
|
|
125
|
-
onError:
|
|
126
|
-
onFinally:
|
|
107
|
+
onBefore: _vueuse_core31.EventHookOn<[P[]]>;
|
|
108
|
+
onSuccess: _vueuse_core31.EventHookOn<[D, P[]]>;
|
|
109
|
+
onError: _vueuse_core31.EventHookOn<[Error, P[]]>;
|
|
110
|
+
onFinally: _vueuse_core31.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
127
111
|
}) => any;
|
|
128
112
|
} & {
|
|
129
113
|
filter?: (props: {
|
|
@@ -132,11 +116,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
132
116
|
error: Error | undefined;
|
|
133
117
|
params: [] | P[];
|
|
134
118
|
list: R[];
|
|
135
|
-
paginationRef: {
|
|
136
|
-
page: number;
|
|
137
|
-
pageSize: number;
|
|
138
|
-
itemCount: number;
|
|
139
|
-
} | {
|
|
119
|
+
paginationRef: UseDataRequestPagination | {
|
|
140
120
|
page: number;
|
|
141
121
|
pageSize: number;
|
|
142
122
|
itemCount: number;
|
|
@@ -144,15 +124,11 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
144
124
|
filters: DataTableFilterState | undefined;
|
|
145
125
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
146
126
|
dataTableRef: DataTableInst | null;
|
|
147
|
-
pagination:
|
|
148
|
-
page: number;
|
|
149
|
-
pageSize: number;
|
|
150
|
-
itemCount: number;
|
|
151
|
-
}, {
|
|
127
|
+
pagination: vue63.Ref<{
|
|
152
128
|
page: number;
|
|
153
129
|
pageSize: number;
|
|
154
130
|
itemCount: number;
|
|
155
|
-
} | {
|
|
131
|
+
}, UseDataRequestPagination | {
|
|
156
132
|
page: number;
|
|
157
133
|
pageSize: number;
|
|
158
134
|
itemCount: number;
|
|
@@ -166,10 +142,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
166
142
|
setParams: (_params: Partial<P>) => void;
|
|
167
143
|
runParams: (_params: Partial<P>) => void;
|
|
168
144
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
169
|
-
onBefore:
|
|
170
|
-
onSuccess:
|
|
171
|
-
onError:
|
|
172
|
-
onFinally:
|
|
145
|
+
onBefore: _vueuse_core31.EventHookOn<[P[]]>;
|
|
146
|
+
onSuccess: _vueuse_core31.EventHookOn<[D, P[]]>;
|
|
147
|
+
onError: _vueuse_core31.EventHookOn<[Error, P[]]>;
|
|
148
|
+
onFinally: _vueuse_core31.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
173
149
|
}) => any;
|
|
174
150
|
} & {
|
|
175
151
|
empty?: (props: {
|
|
@@ -178,11 +154,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
178
154
|
error: Error | undefined;
|
|
179
155
|
params: [] | P[];
|
|
180
156
|
list: R[];
|
|
181
|
-
paginationRef: {
|
|
182
|
-
page: number;
|
|
183
|
-
pageSize: number;
|
|
184
|
-
itemCount: number;
|
|
185
|
-
} | {
|
|
157
|
+
paginationRef: UseDataRequestPagination | {
|
|
186
158
|
page: number;
|
|
187
159
|
pageSize: number;
|
|
188
160
|
itemCount: number;
|
|
@@ -190,15 +162,11 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
190
162
|
filters: DataTableFilterState | undefined;
|
|
191
163
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
192
164
|
dataTableRef: DataTableInst | null;
|
|
193
|
-
pagination:
|
|
194
|
-
page: number;
|
|
195
|
-
pageSize: number;
|
|
196
|
-
itemCount: number;
|
|
197
|
-
}, {
|
|
165
|
+
pagination: vue63.Ref<{
|
|
198
166
|
page: number;
|
|
199
167
|
pageSize: number;
|
|
200
168
|
itemCount: number;
|
|
201
|
-
} | {
|
|
169
|
+
}, UseDataRequestPagination | {
|
|
202
170
|
page: number;
|
|
203
171
|
pageSize: number;
|
|
204
172
|
itemCount: number;
|
|
@@ -212,10 +180,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
212
180
|
setParams: (_params: Partial<P>) => void;
|
|
213
181
|
runParams: (_params: Partial<P>) => void;
|
|
214
182
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
215
|
-
onBefore:
|
|
216
|
-
onSuccess:
|
|
217
|
-
onError:
|
|
218
|
-
onFinally:
|
|
183
|
+
onBefore: _vueuse_core31.EventHookOn<[P[]]>;
|
|
184
|
+
onSuccess: _vueuse_core31.EventHookOn<[D, P[]]>;
|
|
185
|
+
onError: _vueuse_core31.EventHookOn<[Error, P[]]>;
|
|
186
|
+
onFinally: _vueuse_core31.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
219
187
|
}) => any;
|
|
220
188
|
} & {
|
|
221
189
|
loading?: (props: {
|
|
@@ -224,11 +192,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
224
192
|
error: Error | undefined;
|
|
225
193
|
params: [] | P[];
|
|
226
194
|
list: R[];
|
|
227
|
-
paginationRef: {
|
|
228
|
-
page: number;
|
|
229
|
-
pageSize: number;
|
|
230
|
-
itemCount: number;
|
|
231
|
-
} | {
|
|
195
|
+
paginationRef: UseDataRequestPagination | {
|
|
232
196
|
page: number;
|
|
233
197
|
pageSize: number;
|
|
234
198
|
itemCount: number;
|
|
@@ -236,15 +200,11 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
236
200
|
filters: DataTableFilterState | undefined;
|
|
237
201
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
238
202
|
dataTableRef: DataTableInst | null;
|
|
239
|
-
pagination:
|
|
240
|
-
page: number;
|
|
241
|
-
pageSize: number;
|
|
242
|
-
itemCount: number;
|
|
243
|
-
}, {
|
|
203
|
+
pagination: vue63.Ref<{
|
|
244
204
|
page: number;
|
|
245
205
|
pageSize: number;
|
|
246
206
|
itemCount: number;
|
|
247
|
-
} | {
|
|
207
|
+
}, UseDataRequestPagination | {
|
|
248
208
|
page: number;
|
|
249
209
|
pageSize: number;
|
|
250
210
|
itemCount: number;
|
|
@@ -258,10 +218,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
258
218
|
setParams: (_params: Partial<P>) => void;
|
|
259
219
|
runParams: (_params: Partial<P>) => void;
|
|
260
220
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
261
|
-
onBefore:
|
|
262
|
-
onSuccess:
|
|
263
|
-
onError:
|
|
264
|
-
onFinally:
|
|
221
|
+
onBefore: _vueuse_core31.EventHookOn<[P[]]>;
|
|
222
|
+
onSuccess: _vueuse_core31.EventHookOn<[D, P[]]>;
|
|
223
|
+
onError: _vueuse_core31.EventHookOn<[Error, P[]]>;
|
|
224
|
+
onFinally: _vueuse_core31.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
265
225
|
}) => any;
|
|
266
226
|
} & {
|
|
267
227
|
footer?: (props: {
|
|
@@ -270,11 +230,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
270
230
|
error: Error | undefined;
|
|
271
231
|
params: [] | P[];
|
|
272
232
|
list: R[];
|
|
273
|
-
paginationRef: {
|
|
274
|
-
page: number;
|
|
275
|
-
pageSize: number;
|
|
276
|
-
itemCount: number;
|
|
277
|
-
} | {
|
|
233
|
+
paginationRef: UseDataRequestPagination | {
|
|
278
234
|
page: number;
|
|
279
235
|
pageSize: number;
|
|
280
236
|
itemCount: number;
|
|
@@ -282,15 +238,11 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
282
238
|
filters: DataTableFilterState | undefined;
|
|
283
239
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
284
240
|
dataTableRef: DataTableInst | null;
|
|
285
|
-
pagination:
|
|
286
|
-
page: number;
|
|
287
|
-
pageSize: number;
|
|
288
|
-
itemCount: number;
|
|
289
|
-
}, {
|
|
241
|
+
pagination: vue63.Ref<{
|
|
290
242
|
page: number;
|
|
291
243
|
pageSize: number;
|
|
292
244
|
itemCount: number;
|
|
293
|
-
} | {
|
|
245
|
+
}, UseDataRequestPagination | {
|
|
294
246
|
page: number;
|
|
295
247
|
pageSize: number;
|
|
296
248
|
itemCount: number;
|
|
@@ -304,10 +256,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
304
256
|
setParams: (_params: Partial<P>) => void;
|
|
305
257
|
runParams: (_params: Partial<P>) => void;
|
|
306
258
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
307
|
-
onBefore:
|
|
308
|
-
onSuccess:
|
|
309
|
-
onError:
|
|
310
|
-
onFinally:
|
|
259
|
+
onBefore: _vueuse_core31.EventHookOn<[P[]]>;
|
|
260
|
+
onSuccess: _vueuse_core31.EventHookOn<[D, P[]]>;
|
|
261
|
+
onError: _vueuse_core31.EventHookOn<[Error, P[]]>;
|
|
262
|
+
onFinally: _vueuse_core31.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
311
263
|
}) => any;
|
|
312
264
|
} & {
|
|
313
265
|
'footer-extra'?: (props: {
|
|
@@ -316,11 +268,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
316
268
|
error: Error | undefined;
|
|
317
269
|
params: [] | P[];
|
|
318
270
|
list: R[];
|
|
319
|
-
paginationRef: {
|
|
320
|
-
page: number;
|
|
321
|
-
pageSize: number;
|
|
322
|
-
itemCount: number;
|
|
323
|
-
} | {
|
|
271
|
+
paginationRef: UseDataRequestPagination | {
|
|
324
272
|
page: number;
|
|
325
273
|
pageSize: number;
|
|
326
274
|
itemCount: number;
|
|
@@ -328,15 +276,11 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
328
276
|
filters: DataTableFilterState | undefined;
|
|
329
277
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
330
278
|
dataTableRef: DataTableInst | null;
|
|
331
|
-
pagination:
|
|
332
|
-
page: number;
|
|
333
|
-
pageSize: number;
|
|
334
|
-
itemCount: number;
|
|
335
|
-
}, {
|
|
279
|
+
pagination: vue63.Ref<{
|
|
336
280
|
page: number;
|
|
337
281
|
pageSize: number;
|
|
338
282
|
itemCount: number;
|
|
339
|
-
} | {
|
|
283
|
+
}, UseDataRequestPagination | {
|
|
340
284
|
page: number;
|
|
341
285
|
pageSize: number;
|
|
342
286
|
itemCount: number;
|
|
@@ -350,14 +294,14 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
350
294
|
setParams: (_params: Partial<P>) => void;
|
|
351
295
|
runParams: (_params: Partial<P>) => void;
|
|
352
296
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
353
|
-
onBefore:
|
|
354
|
-
onSuccess:
|
|
355
|
-
onError:
|
|
356
|
-
onFinally:
|
|
297
|
+
onBefore: _vueuse_core31.EventHookOn<[P[]]>;
|
|
298
|
+
onSuccess: _vueuse_core31.EventHookOn<[D, P[]]>;
|
|
299
|
+
onError: _vueuse_core31.EventHookOn<[Error, P[]]>;
|
|
300
|
+
onFinally: _vueuse_core31.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
357
301
|
}) => any;
|
|
358
302
|
};
|
|
359
303
|
emit: DataTablePlusEmits<P, D, R>;
|
|
360
|
-
}>) =>
|
|
304
|
+
}>) => vue63.VNode & {
|
|
361
305
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
362
306
|
};
|
|
363
307
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataObject, DataRequestFields, UseDataRequestReturns } from "../../composables/
|
|
1
|
+
import { DataObject, DataRequestFields, UseDataRequestReturns } from "../../composables/use-data-request.js";
|
|
2
2
|
import { RemoteRequestEmits, RemoteRequestProps } from "../remote-request/index.js";
|
|
3
3
|
import { SearchInputProps } from "../search-input/index.js";
|
|
4
4
|
import { _default } from "./DataTablePlus.vue.js";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { NaiveFormRules } from "../composables/useNaiveForm.js";
|
|
2
1
|
import { _default } from "./remote-request/RemoteRequest.vue.js";
|
|
3
2
|
import { RemoteRequestEmits, RemoteRequestExpose, RemoteRequestFields, RemoteRequestInst, RemoteRequestProps } from "./remote-request/index.js";
|
|
4
3
|
import { _default as _default$1 } from "./search-input/SearchInput.vue.js";
|
|
@@ -7,6 +6,7 @@ import { _default as _default$2 } from "./data-table-plus/DataTablePlus.vue.js";
|
|
|
7
6
|
import { ClassStyle, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps } from "./data-table-plus/index.js";
|
|
8
7
|
import { _default as _default$3 } from "./loading-provider/LoadingProvider.vue.js";
|
|
9
8
|
import { LoadingProviderInst, LoadingProviderProps, loadingProviderInjectionKey } from "./loading-provider/index.js";
|
|
9
|
+
import { NaiveFormRules } from "../composables/use-naive-form.js";
|
|
10
10
|
import { _default as _default$4 } from "./config-providers/ConfigProviders.vue.js";
|
|
11
11
|
import { ConfigProvidersProps } from "./config-providers/index.js";
|
|
12
12
|
import { _default as _default$5 } from "./copy-button/CopyButton.vue.js";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import * as vue40 from "vue";
|
|
4
|
-
import * as naive_ui21 from "naive-ui";
|
|
1
|
+
import { LoadingProviderProps } from "./index.js";
|
|
2
|
+
import * as vue35 from "vue";
|
|
5
3
|
|
|
6
4
|
//#region src/components/loading-provider/LoadingProvider.vue.d.ts
|
|
7
5
|
declare var __VLS_26: {}, __VLS_29: {}, __VLS_31: {};
|
|
@@ -12,21 +10,7 @@ type __VLS_Slots = {} & {
|
|
|
12
10
|
} & {
|
|
13
11
|
default?: (props: typeof __VLS_31) => any;
|
|
14
12
|
};
|
|
15
|
-
declare const __VLS_base:
|
|
16
|
-
show?: boolean;
|
|
17
|
-
appendTo?: string | vue40.RendererElement;
|
|
18
|
-
mask?: boolean | vue40.CSSProperties;
|
|
19
|
-
blur?: boolean;
|
|
20
|
-
duration?: number;
|
|
21
|
-
spinProps?: Omit<naive_ui21.SpinProps, "show"> & ClassStyle;
|
|
22
|
-
}, {}, {}, {}, {}, vue40.ComponentOptionsMixin, vue40.ComponentOptionsMixin, {}, string, vue40.PublicProps, Readonly<{
|
|
23
|
-
show?: boolean;
|
|
24
|
-
appendTo?: string | vue40.RendererElement;
|
|
25
|
-
mask?: boolean | vue40.CSSProperties;
|
|
26
|
-
blur?: boolean;
|
|
27
|
-
duration?: number;
|
|
28
|
-
spinProps?: Omit<naive_ui21.SpinProps, "show"> & ClassStyle;
|
|
29
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, vue40.ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_base: vue35.DefineComponent<LoadingProviderProps, {}, {}, {}, {}, vue35.ComponentOptionsMixin, vue35.ComponentOptionsMixin, {}, string, vue35.PublicProps, Readonly<LoadingProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue35.ComponentProvideOptions, false, {}, any>;
|
|
30
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
15
|
declare const _default: typeof __VLS_export;
|
|
32
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useNaiveForm } from "../../composables/
|
|
1
|
+
import { useNaiveForm } from "../../composables/use-naive-form.js";
|
|
2
2
|
import PresetInput_default from "../preset-input/PresetInput.js";
|
|
3
3
|
import "../preset-input/index.js";
|
|
4
4
|
import { mergeRule } from "./_utils.js";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { DataObject } from "../../composables/
|
|
1
|
+
import { DataObject } from "../../composables/use-data-request.js";
|
|
2
2
|
import { PresetFormExpose, PresetFormProps } from "./index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
3
|
+
import * as _vueuse_core8 from "@vueuse/core";
|
|
4
|
+
import * as vue26 from "vue";
|
|
5
|
+
import * as naive_ui0 from "naive-ui";
|
|
6
6
|
import { FormInst } from "naive-ui";
|
|
7
7
|
import * as async_validator0 from "async-validator";
|
|
8
8
|
|
|
9
9
|
//#region src/components/preset-form/PresetForm.vue.d.ts
|
|
10
10
|
declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
11
|
-
props:
|
|
11
|
+
props: vue26.PublicProps & __VLS_PrettifyLocal<PresetFormProps<V> & {
|
|
12
12
|
onValidated?: ((val: V) => any) | undefined;
|
|
13
13
|
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
15
15
|
} ? P : {});
|
|
16
|
-
expose: (exposed:
|
|
16
|
+
expose: (exposed: vue26.ShallowUnwrapRef<PresetFormExpose<V>>) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
19
19
|
header?: (props: {
|
|
20
20
|
formRef: FormInst | null;
|
|
21
21
|
formValue: V;
|
|
22
|
-
formRules: Partial<Record<keyof V,
|
|
22
|
+
formRules: Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>;
|
|
23
23
|
formProps: {
|
|
24
|
-
model:
|
|
25
|
-
rules:
|
|
24
|
+
model: vue26.Reactive<V>;
|
|
25
|
+
rules: vue26.Reactive<Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>>;
|
|
26
26
|
};
|
|
27
27
|
setValue: (_value: Partial<V>) => void;
|
|
28
28
|
validate: () => Promise<{
|
|
@@ -32,16 +32,16 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
32
32
|
resetForm: () => void;
|
|
33
33
|
reset: () => void;
|
|
34
34
|
clear: () => void;
|
|
35
|
-
onValidated:
|
|
35
|
+
onValidated: _vueuse_core8.EventHookOn<[V]>;
|
|
36
36
|
}) => any;
|
|
37
37
|
} & {
|
|
38
38
|
default?: (props: {
|
|
39
39
|
formRef: FormInst | null;
|
|
40
40
|
formValue: V;
|
|
41
|
-
formRules: Partial<Record<keyof V,
|
|
41
|
+
formRules: Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>;
|
|
42
42
|
formProps: {
|
|
43
|
-
model:
|
|
44
|
-
rules:
|
|
43
|
+
model: vue26.Reactive<V>;
|
|
44
|
+
rules: vue26.Reactive<Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>>;
|
|
45
45
|
};
|
|
46
46
|
setValue: (_value: Partial<V>) => void;
|
|
47
47
|
validate: () => Promise<{
|
|
@@ -51,16 +51,16 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
51
51
|
resetForm: () => void;
|
|
52
52
|
reset: () => void;
|
|
53
53
|
clear: () => void;
|
|
54
|
-
onValidated:
|
|
54
|
+
onValidated: _vueuse_core8.EventHookOn<[V]>;
|
|
55
55
|
}) => any;
|
|
56
56
|
} & {
|
|
57
57
|
footer?: (props: {
|
|
58
58
|
formRef: FormInst | null;
|
|
59
59
|
formValue: V;
|
|
60
|
-
formRules: Partial<Record<keyof V,
|
|
60
|
+
formRules: Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>;
|
|
61
61
|
formProps: {
|
|
62
|
-
model:
|
|
63
|
-
rules:
|
|
62
|
+
model: vue26.Reactive<V>;
|
|
63
|
+
rules: vue26.Reactive<Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>>;
|
|
64
64
|
};
|
|
65
65
|
setValue: (_value: Partial<V>) => void;
|
|
66
66
|
validate: () => Promise<{
|
|
@@ -70,11 +70,11 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
70
70
|
resetForm: () => void;
|
|
71
71
|
reset: () => void;
|
|
72
72
|
clear: () => void;
|
|
73
|
-
onValidated:
|
|
73
|
+
onValidated: _vueuse_core8.EventHookOn<[V]>;
|
|
74
74
|
}) => any;
|
|
75
75
|
};
|
|
76
76
|
emit: (e: "validated", val: V) => void;
|
|
77
|
-
}>) =>
|
|
77
|
+
}>) => vue26.VNode & {
|
|
78
78
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
79
79
|
};
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataObject } from "../../composables/
|
|
2
|
-
import { NaiveFormClearRules, NaiveFormReturns, NaiveFormRules } from "../../composables/useNaiveForm.js";
|
|
1
|
+
import { DataObject } from "../../composables/use-data-request.js";
|
|
3
2
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
3
|
+
import { NaiveFormClearRules, NaiveFormReturns, NaiveFormRules } from "../../composables/use-naive-form.js";
|
|
4
4
|
import { PresetInputOptions } from "../preset-input/index.js";
|
|
5
5
|
import { _default } from "./PresetForm.vue.js";
|
|
6
6
|
import { VNode } from "vue";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PresetInputProps } from "./index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue40 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/preset-input/PresetInput.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props:
|
|
6
|
+
props: vue40.PublicProps & __VLS_PrettifyLocal<PresetInputProps<V> & {
|
|
7
7
|
"onUpdate:value"?: ((val?: V | undefined) => any) | undefined;
|
|
8
8
|
}> & (typeof globalThis extends {
|
|
9
9
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -12,7 +12,7 @@ declare const __VLS_export: <V>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
12
12
|
attrs: any;
|
|
13
13
|
slots: {};
|
|
14
14
|
emit: (e: "update:value", val?: V) => void;
|
|
15
|
-
}>) =>
|
|
15
|
+
}>) => vue40.VNode & {
|
|
16
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: typeof __VLS_export;
|