@oiij/naive-ui 0.0.68 → 0.0.69
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.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.vue.d.ts +59 -115
- 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.vue.d.ts +18 -18
- package/dist/components/preset-form/index.d.ts +1 -1
- package/dist/components/preset-input/PresetInput.vue.d.ts +3 -3
- package/dist/components/preset-picker/PresetPicker.vue.d.ts +4 -4
- package/dist/components/preset-select/PresetSelect.vue.d.ts +33 -53
- package/dist/components/remote-request/RemoteRequest.vue.d.ts +12 -16
- 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 +5 -5
- package/dist/components/tooltip-button/TooltipButton.vue.d.ts +5 -15
- 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/useDataRequest.d.ts +8 -12
- package/dist/composables/useLoading.d.ts +3 -7
- package/dist/composables/useNaiveForm.d.ts +6 -6
- package/dist/composables/useNaiveTheme.d.ts +3 -9
- package/package.json +6 -6
|
@@ -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 vue18 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: vue18.DefineComponent<ConfigProvidersProps, {}, {}, {}, {}, vue18.ComponentOptionsMixin, vue18.ComponentOptionsMixin, {}, string, vue18.PublicProps, Readonly<ConfigProvidersProps> & Readonly<{}>, {}, {}, {}, {}, string, vue18.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/useLoading.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 vue31 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: vue31.DefineComponent<CopyButtonProps, {}, {}, {}, {}, vue31.ComponentOptionsMixin, vue31.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, vue31.PublicProps, Readonly<CopyButtonProps> & Readonly<{
|
|
29
16
|
onCopied?: ((v: string | undefined) => any) | undefined;
|
|
30
|
-
}>, {}, {}, {}, {}, string,
|
|
17
|
+
}>, {}, {}, {}, {}, string, vue31.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,19 +1,21 @@
|
|
|
1
|
-
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
|
-
import "../../composables/index.js";
|
|
1
|
+
import { DataObject, UseDataRequestPagination } from "../../composables/useDataRequest.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
|
-
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
16
15
|
onBefore?: ((params: P[]) => any) | undefined;
|
|
16
|
+
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
17
|
+
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
18
|
+
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => 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:
|
|
49
|
+
pagination: vue63.Ref<{
|
|
54
50
|
page: number;
|
|
55
51
|
pageSize: number;
|
|
56
52
|
itemCount: number;
|
|
57
|
-
}, {
|
|
58
|
-
page: number;
|
|
59
|
-
pageSize: number;
|
|
60
|
-
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,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/useNaiveForm.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 vue55 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: vue55.DefineComponent<LoadingProviderProps, {}, {}, {}, {}, vue55.ComponentOptionsMixin, vue55.ComponentOptionsMixin, {}, string, vue55.PublicProps, Readonly<LoadingProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue55.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,28 +1,28 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { PresetFormExpose, PresetFormProps } from "./index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
3
|
+
import * as _vueuse_core28 from "@vueuse/core";
|
|
4
|
+
import * as vue36 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: vue36.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: vue36.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: vue36.Reactive<V>;
|
|
25
|
+
rules: vue36.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_core28.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: vue36.Reactive<V>;
|
|
44
|
+
rules: vue36.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_core28.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: vue36.Reactive<V>;
|
|
63
|
+
rules: vue36.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_core28.EventHookOn<[V]>;
|
|
74
74
|
}) => any;
|
|
75
75
|
};
|
|
76
76
|
emit: (e: "validated", val: V) => void;
|
|
77
|
-
}>) =>
|
|
77
|
+
}>) => vue36.VNode & {
|
|
78
78
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
79
79
|
};
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
|
-
import { NaiveFormClearRules, NaiveFormReturns, NaiveFormRules } from "../../composables/useNaiveForm.js";
|
|
3
2
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
3
|
+
import { NaiveFormClearRules, NaiveFormReturns, NaiveFormRules } from "../../composables/useNaiveForm.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 vue26 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: vue26.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
|
+
}>) => vue26.VNode & {
|
|
16
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { PresetPickerEmits, PresetPickerExpose, PresetPickerProps, PresetPickerValue } from "./index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue60 from "vue";
|
|
4
4
|
import { DataTableColumns } from "naive-ui";
|
|
5
5
|
|
|
6
6
|
//#region src/components/preset-picker/PresetPicker.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <V extends PresetPickerValue, 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<{
|
|
8
|
-
props:
|
|
8
|
+
props: vue60.PublicProps & __VLS_PrettifyLocal<PresetPickerProps<V, R> & {
|
|
9
9
|
onClose?: (() => any) | undefined;
|
|
10
10
|
"onUpdate:value"?: ((val: V | null, raw: R | R[] | null) => any) | undefined;
|
|
11
11
|
onAfterEnter?: (() => any) | undefined;
|
|
@@ -18,7 +18,7 @@ declare const __VLS_export: <V extends PresetPickerValue, R extends DataObject>(
|
|
|
18
18
|
}> & (typeof globalThis extends {
|
|
19
19
|
__VLS_PROPS_FALLBACK: infer P;
|
|
20
20
|
} ? P : {});
|
|
21
|
-
expose: (exposed:
|
|
21
|
+
expose: (exposed: vue60.ShallowUnwrapRef<PresetPickerExpose<R>>) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: {
|
|
24
24
|
'button-icon'?: (props: {}) => any;
|
|
@@ -54,7 +54,7 @@ declare const __VLS_export: <V extends PresetPickerValue, R extends DataObject>(
|
|
|
54
54
|
'modal-close'?: (props: {}) => any;
|
|
55
55
|
};
|
|
56
56
|
emit: PresetPickerEmits<V, R>;
|
|
57
|
-
}>) =>
|
|
57
|
+
}>) => vue60.VNode & {
|
|
58
58
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
59
59
|
};
|
|
60
60
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { DataObject } from "../../composables/useDataRequest.js";
|
|
1
|
+
import { DataObject, UseDataRequestPagination } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { PresetSelectEmits, PresetSelectExpose, PresetSelectProps, PresetSelectValue } from "./index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _vueuse_core4 from "@vueuse/core";
|
|
4
|
+
import * as vue23 from "vue";
|
|
5
5
|
import { SelectInst, SelectOption } from "naive-ui";
|
|
6
6
|
|
|
7
7
|
//#region src/components/preset-select/PresetSelect.vue.d.ts
|
|
8
8
|
declare const __VLS_export: <V extends PresetSelectValue, 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<{
|
|
9
|
-
props:
|
|
9
|
+
props: vue23.PublicProps & __VLS_PrettifyLocal<PresetSelectProps<V, P, D, R> & {
|
|
10
10
|
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
11
11
|
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
12
12
|
onClear?: (() => any) | undefined;
|
|
@@ -15,15 +15,15 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
15
15
|
onScroll?: ((ev: Event) => any) | undefined;
|
|
16
16
|
"onUpdate:value"?: ((val: V | null, option: SelectOption | SelectOption[] | null, raw: R | R[] | null) => any) | undefined;
|
|
17
17
|
onSearch?: ((value: string) => any) | undefined;
|
|
18
|
-
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
19
18
|
onBefore?: ((params: P[]) => any) | undefined;
|
|
19
|
+
onCreate?: ((label: string) => any) | undefined;
|
|
20
20
|
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
21
21
|
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
22
|
-
|
|
22
|
+
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
23
23
|
}> & (typeof globalThis extends {
|
|
24
24
|
__VLS_PROPS_FALLBACK: infer P_1;
|
|
25
25
|
} ? P_1 : {});
|
|
26
|
-
expose: (exposed:
|
|
26
|
+
expose: (exposed: vue23.ShallowUnwrapRef<PresetSelectExpose<P, D, R>>) => void;
|
|
27
27
|
attrs: any;
|
|
28
28
|
slots: {
|
|
29
29
|
header?: (props: {
|
|
@@ -32,11 +32,7 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
32
32
|
error: Error | undefined;
|
|
33
33
|
params: [] | P[];
|
|
34
34
|
list: R[];
|
|
35
|
-
pagination: {
|
|
36
|
-
page: number;
|
|
37
|
-
pageSize: number;
|
|
38
|
-
itemCount: number;
|
|
39
|
-
} | {
|
|
35
|
+
pagination: UseDataRequestPagination | {
|
|
40
36
|
page: number;
|
|
41
37
|
pageSize: number;
|
|
42
38
|
itemCount: number;
|
|
@@ -51,10 +47,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
51
47
|
setParams: (_params: Partial<P>) => void;
|
|
52
48
|
runParams: (_params: Partial<P>) => void;
|
|
53
49
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
54
|
-
onBefore:
|
|
55
|
-
onSuccess:
|
|
56
|
-
onError:
|
|
57
|
-
onFinally:
|
|
50
|
+
onBefore: _vueuse_core4.EventHookOn<[P[]]>;
|
|
51
|
+
onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
|
|
52
|
+
onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
|
|
53
|
+
onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
58
54
|
}) => any;
|
|
59
55
|
} & {
|
|
60
56
|
footer?: (props: {
|
|
@@ -63,11 +59,7 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
63
59
|
error: Error | undefined;
|
|
64
60
|
params: [] | P[];
|
|
65
61
|
list: R[];
|
|
66
|
-
pagination: {
|
|
67
|
-
page: number;
|
|
68
|
-
pageSize: number;
|
|
69
|
-
itemCount: number;
|
|
70
|
-
} | {
|
|
62
|
+
pagination: UseDataRequestPagination | {
|
|
71
63
|
page: number;
|
|
72
64
|
pageSize: number;
|
|
73
65
|
itemCount: number;
|
|
@@ -82,10 +74,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
82
74
|
setParams: (_params: Partial<P>) => void;
|
|
83
75
|
runParams: (_params: Partial<P>) => void;
|
|
84
76
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
85
|
-
onBefore:
|
|
86
|
-
onSuccess:
|
|
87
|
-
onError:
|
|
88
|
-
onFinally:
|
|
77
|
+
onBefore: _vueuse_core4.EventHookOn<[P[]]>;
|
|
78
|
+
onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
|
|
79
|
+
onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
|
|
80
|
+
onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
89
81
|
}) => any;
|
|
90
82
|
} & {
|
|
91
83
|
'footer-extra'?: (props: {
|
|
@@ -94,11 +86,7 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
94
86
|
error: Error | undefined;
|
|
95
87
|
params: [] | P[];
|
|
96
88
|
list: R[];
|
|
97
|
-
pagination: {
|
|
98
|
-
page: number;
|
|
99
|
-
pageSize: number;
|
|
100
|
-
itemCount: number;
|
|
101
|
-
} | {
|
|
89
|
+
pagination: UseDataRequestPagination | {
|
|
102
90
|
page: number;
|
|
103
91
|
pageSize: number;
|
|
104
92
|
itemCount: number;
|
|
@@ -113,10 +101,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
113
101
|
setParams: (_params: Partial<P>) => void;
|
|
114
102
|
runParams: (_params: Partial<P>) => void;
|
|
115
103
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
116
|
-
onBefore:
|
|
117
|
-
onSuccess:
|
|
118
|
-
onError:
|
|
119
|
-
onFinally:
|
|
104
|
+
onBefore: _vueuse_core4.EventHookOn<[P[]]>;
|
|
105
|
+
onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
|
|
106
|
+
onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
|
|
107
|
+
onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
120
108
|
}) => any;
|
|
121
109
|
} & {
|
|
122
110
|
empty?: (props: {
|
|
@@ -125,11 +113,7 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
125
113
|
error: Error | undefined;
|
|
126
114
|
params: [] | P[];
|
|
127
115
|
list: R[];
|
|
128
|
-
pagination: {
|
|
129
|
-
page: number;
|
|
130
|
-
pageSize: number;
|
|
131
|
-
itemCount: number;
|
|
132
|
-
} | {
|
|
116
|
+
pagination: UseDataRequestPagination | {
|
|
133
117
|
page: number;
|
|
134
118
|
pageSize: number;
|
|
135
119
|
itemCount: number;
|
|
@@ -144,10 +128,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
144
128
|
setParams: (_params: Partial<P>) => void;
|
|
145
129
|
runParams: (_params: Partial<P>) => void;
|
|
146
130
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
147
|
-
onBefore:
|
|
148
|
-
onSuccess:
|
|
149
|
-
onError:
|
|
150
|
-
onFinally:
|
|
131
|
+
onBefore: _vueuse_core4.EventHookOn<[P[]]>;
|
|
132
|
+
onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
|
|
133
|
+
onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
|
|
134
|
+
onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
151
135
|
}) => any;
|
|
152
136
|
} & {
|
|
153
137
|
arrow?: (props: {
|
|
@@ -156,11 +140,7 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
156
140
|
error: Error | undefined;
|
|
157
141
|
params: [] | P[];
|
|
158
142
|
list: R[];
|
|
159
|
-
pagination: {
|
|
160
|
-
page: number;
|
|
161
|
-
pageSize: number;
|
|
162
|
-
itemCount: number;
|
|
163
|
-
} | {
|
|
143
|
+
pagination: UseDataRequestPagination | {
|
|
164
144
|
page: number;
|
|
165
145
|
pageSize: number;
|
|
166
146
|
itemCount: number;
|
|
@@ -175,14 +155,14 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
175
155
|
setParams: (_params: Partial<P>) => void;
|
|
176
156
|
runParams: (_params: Partial<P>) => void;
|
|
177
157
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
178
|
-
onBefore:
|
|
179
|
-
onSuccess:
|
|
180
|
-
onError:
|
|
181
|
-
onFinally:
|
|
158
|
+
onBefore: _vueuse_core4.EventHookOn<[P[]]>;
|
|
159
|
+
onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
|
|
160
|
+
onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
|
|
161
|
+
onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
182
162
|
}) => any;
|
|
183
163
|
};
|
|
184
164
|
emit: PresetSelectEmits<V, P, D, R>;
|
|
185
|
-
}>) =>
|
|
165
|
+
}>) => vue23.VNode & {
|
|
186
166
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
187
167
|
};
|
|
188
168
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { DataObject } from "../../composables/useDataRequest.js";
|
|
1
|
+
import { DataObject, UseDataRequestPagination } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { RemoteRequestEmits, RemoteRequestExpose, RemoteRequestProps } from "./index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _vueuse_core24 from "@vueuse/core";
|
|
4
|
+
import * as vue28 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/remote-request/RemoteRequest.vue.d.ts
|
|
7
7
|
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<{
|
|
8
|
-
props:
|
|
8
|
+
props: vue28.PublicProps & __VLS_PrettifyLocal<RemoteRequestProps<P, D> & {
|
|
9
9
|
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
10
10
|
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
11
|
-
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
12
11
|
onBefore?: ((params: P[]) => any) | undefined;
|
|
12
|
+
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
13
13
|
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P_1;
|
|
15
15
|
} ? P_1 : {});
|
|
16
|
-
expose: (exposed:
|
|
16
|
+
expose: (exposed: vue28.ShallowUnwrapRef<RemoteRequestExpose<P, D, R>>) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
19
19
|
default?: (props: {
|
|
@@ -22,11 +22,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
22
22
|
error: Error | undefined;
|
|
23
23
|
params: [] | P[];
|
|
24
24
|
list: R[];
|
|
25
|
-
pagination: {
|
|
26
|
-
page: number;
|
|
27
|
-
pageSize: number;
|
|
28
|
-
itemCount: number;
|
|
29
|
-
} | {
|
|
25
|
+
pagination: UseDataRequestPagination | {
|
|
30
26
|
page: number;
|
|
31
27
|
pageSize: number;
|
|
32
28
|
itemCount: number;
|
|
@@ -40,14 +36,14 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
40
36
|
setParams: (_params: Partial<P>) => void;
|
|
41
37
|
runParams: (_params: Partial<P>) => void;
|
|
42
38
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
43
|
-
onBefore:
|
|
44
|
-
onSuccess:
|
|
45
|
-
onError:
|
|
46
|
-
onFinally:
|
|
39
|
+
onBefore: _vueuse_core24.EventHookOn<[P[]]>;
|
|
40
|
+
onSuccess: _vueuse_core24.EventHookOn<[D, P[]]>;
|
|
41
|
+
onError: _vueuse_core24.EventHookOn<[Error, P[]]>;
|
|
42
|
+
onFinally: _vueuse_core24.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
47
43
|
}) => any;
|
|
48
44
|
};
|
|
49
45
|
emit: RemoteRequestEmits<P, D>;
|
|
50
|
-
}>) =>
|
|
46
|
+
}>) => vue28.VNode & {
|
|
51
47
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
52
48
|
};
|
|
53
49
|
declare const _default: typeof __VLS_export;
|
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const emit = __emit;
|
|
25
25
|
const inputRef = useTemplateRef("input-ref");
|
|
26
26
|
const _value = ref(__props.value ?? null);
|
|
27
|
-
const _searchButtonType = computed(() => typeof __props.searchButton === "boolean" ? "text" : __props.searchButton);
|
|
27
|
+
const _searchButtonType = computed(() => typeof __props.searchButton === "boolean" ? "text" : __props.searchButton ?? "text");
|
|
28
28
|
const { start } = useTimeoutFn(() => {}, typeof __props.autoTrigger === "number" ? __props.autoTrigger : 500);
|
|
29
29
|
watchEffect(() => {
|
|
30
30
|
_value.value = __props.value ?? null;
|
|
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
}, 16, ["value", "placeholder"]), renderSlot(_ctx.$slots, "button", {
|
|
63
63
|
value: __props.value,
|
|
64
64
|
loading: __props.loading
|
|
65
|
-
}, () => [
|
|
65
|
+
}, () => [__props.searchButton ? (openBlock(), createBlock(unref(NButton), mergeProps({
|
|
66
66
|
key: 0,
|
|
67
67
|
type: __props.type,
|
|
68
68
|
loading: __props.loading
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import * as vue35 from "vue";
|
|
4
|
-
import * as naive_ui15 from "naive-ui";
|
|
1
|
+
import { SearchInputProps } from "./index.js";
|
|
2
|
+
import * as vue45 from "vue";
|
|
5
3
|
|
|
6
4
|
//#region src/components/search-input/SearchInput.vue.d.ts
|
|
7
5
|
declare var __VLS_19: {}, __VLS_21: {}, __VLS_28: {
|
|
@@ -17,29 +15,11 @@ type __VLS_Slots = {} & {
|
|
|
17
15
|
} & {
|
|
18
16
|
'button-icon'?: (props: typeof __VLS_39) => any;
|
|
19
17
|
};
|
|
20
|
-
declare const __VLS_base:
|
|
21
|
-
value?: string | null;
|
|
22
|
-
type?: naive_ui15.ButtonProps["type"];
|
|
23
|
-
placeholder?: string;
|
|
24
|
-
loading?: boolean;
|
|
25
|
-
autoTrigger?: boolean | number;
|
|
26
|
-
searchButton?: "text" | "icon" | boolean;
|
|
27
|
-
inputProps?: naive_ui15.InputProps & ClassStyle;
|
|
28
|
-
buttonProps?: naive_ui15.ButtonProps & ClassStyle;
|
|
29
|
-
}, {}, {}, {}, {}, vue35.ComponentOptionsMixin, vue35.ComponentOptionsMixin, {} & {
|
|
18
|
+
declare const __VLS_base: vue45.DefineComponent<SearchInputProps, {}, {}, {}, {}, vue45.ComponentOptionsMixin, vue45.ComponentOptionsMixin, {} & {
|
|
30
19
|
"update:value": (v: string | null | undefined) => any;
|
|
31
|
-
}, string,
|
|
32
|
-
value?: string | null;
|
|
33
|
-
type?: naive_ui15.ButtonProps["type"];
|
|
34
|
-
placeholder?: string;
|
|
35
|
-
loading?: boolean;
|
|
36
|
-
autoTrigger?: boolean | number;
|
|
37
|
-
searchButton?: "text" | "icon" | boolean;
|
|
38
|
-
inputProps?: naive_ui15.InputProps & ClassStyle;
|
|
39
|
-
buttonProps?: naive_ui15.ButtonProps & ClassStyle;
|
|
40
|
-
}> & Readonly<{
|
|
20
|
+
}, string, vue45.PublicProps, Readonly<SearchInputProps> & Readonly<{
|
|
41
21
|
"onUpdate:value"?: ((v: string | null | undefined) => any) | undefined;
|
|
42
|
-
}>, {}, {}, {}, {}, string,
|
|
22
|
+
}>, {}, {}, {}, {}, string, vue45.ComponentProvideOptions, false, {}, any>;
|
|
43
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
24
|
declare const _default: typeof __VLS_export;
|
|
45
25
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue8 from "vue";
|
|
3
3
|
import { InputProps } from "naive-ui";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toggle-input/ToggleInput.vue.d.ts
|
|
@@ -27,14 +27,14 @@ type __VLS_Slots = {} & {
|
|
|
27
27
|
} & {
|
|
28
28
|
default?: (props: typeof __VLS_13) => any;
|
|
29
29
|
};
|
|
30
|
-
declare const __VLS_base:
|
|
30
|
+
declare const __VLS_base: vue8.DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, vue8.ComponentOptionsMixin, vue8.ComponentOptionsMixin, {
|
|
31
31
|
"update:value": (value: string | number | undefined) => any;
|
|
32
32
|
} & {
|
|
33
33
|
trigger: () => any;
|
|
34
|
-
}, string,
|
|
35
|
-
onTrigger?: (() => any) | undefined;
|
|
34
|
+
}, string, vue8.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
35
|
"onUpdate:value"?: ((value: string | number | undefined) => any) | undefined;
|
|
37
|
-
|
|
36
|
+
onTrigger?: (() => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, vue8.ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
39
|
declare const _default: typeof __VLS_export;
|
|
40
40
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import * as vue8 from "vue";
|
|
4
|
-
import * as naive_ui0 from "naive-ui";
|
|
1
|
+
import { TooltipButtonProps } from "./index.js";
|
|
2
|
+
import * as vue13 from "vue";
|
|
5
3
|
|
|
6
4
|
//#region src/components/tooltip-button/TooltipButton.vue.d.ts
|
|
7
5
|
declare var __VLS_17: {}, __VLS_20: {}, __VLS_22: {};
|
|
@@ -12,19 +10,11 @@ type __VLS_Slots = {} & {
|
|
|
12
10
|
} & {
|
|
13
11
|
tooltip?: (props: typeof __VLS_22) => any;
|
|
14
12
|
};
|
|
15
|
-
declare const __VLS_base:
|
|
16
|
-
tooltip?: string;
|
|
17
|
-
tooltipProps?: naive_ui0.TooltipProps & ClassStyle;
|
|
18
|
-
buttonProps?: naive_ui0.ButtonProps & ClassStyle;
|
|
19
|
-
}, {}, {}, {}, {}, vue8.ComponentOptionsMixin, vue8.ComponentOptionsMixin, {} & {
|
|
13
|
+
declare const __VLS_base: vue13.DefineComponent<TooltipButtonProps, {}, {}, {}, {}, vue13.ComponentOptionsMixin, vue13.ComponentOptionsMixin, {} & {
|
|
20
14
|
click: (ev: MouseEvent) => any;
|
|
21
|
-
}, string,
|
|
22
|
-
tooltip?: string;
|
|
23
|
-
tooltipProps?: naive_ui0.TooltipProps & ClassStyle;
|
|
24
|
-
buttonProps?: naive_ui0.ButtonProps & ClassStyle;
|
|
25
|
-
}> & Readonly<{
|
|
15
|
+
}, string, vue13.PublicProps, Readonly<TooltipButtonProps> & Readonly<{
|
|
26
16
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
27
|
-
}>, {}, {}, {}, {}, string,
|
|
17
|
+
}>, {}, {}, {}, {}, string, vue13.ComponentProvideOptions, false, {}, any>;
|
|
28
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
19
|
declare const _default: typeof __VLS_export;
|
|
30
20
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import * as vue25 from "vue";
|
|
1
|
+
import { TransitionProps as TransitionProps$1 } from "./index.js";
|
|
2
|
+
import * as vue50 from "vue";
|
|
4
3
|
|
|
5
4
|
//#region src/components/transition/BaseTransition.vue.d.ts
|
|
6
5
|
declare var __VLS_7: {};
|
|
7
6
|
type __VLS_Slots = {} & {
|
|
8
7
|
default?: (props: typeof __VLS_7) => any;
|
|
9
8
|
};
|
|
10
|
-
declare const __VLS_base:
|
|
11
|
-
name?: string;
|
|
12
|
-
transitionProps?: vue25.TransitionProps & ClassStyle;
|
|
13
|
-
}, {}, {}, {}, {}, vue25.ComponentOptionsMixin, vue25.ComponentOptionsMixin, {}, string, vue25.PublicProps, Readonly<{
|
|
14
|
-
name?: string;
|
|
15
|
-
transitionProps?: vue25.TransitionProps & ClassStyle;
|
|
16
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, vue25.ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_base: vue50.DefineComponent<TransitionProps$1, {}, {}, {}, {}, vue50.ComponentOptionsMixin, vue50.ComponentOptionsMixin, {}, string, vue50.PublicProps, Readonly<TransitionProps$1> & Readonly<{}>, {}, {}, {}, {}, string, vue50.ComponentProvideOptions, false, {}, any>;
|
|
17
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
11
|
declare const _default: typeof __VLS_export;
|
|
19
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,35 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TypeWriterProps } from "./index.js";
|
|
2
|
+
import * as vue73 from "vue";
|
|
2
3
|
|
|
3
4
|
//#region src/components/type-writer/TypeWriter.vue.d.ts
|
|
4
|
-
declare const __VLS_export:
|
|
5
|
-
value?: string;
|
|
6
|
-
typing?: boolean;
|
|
7
|
-
markdown?: boolean;
|
|
8
|
-
step?: number;
|
|
9
|
-
interval?: number;
|
|
10
|
-
suffix?: string;
|
|
11
|
-
}, {}, {}, {}, {}, vue54.ComponentOptionsMixin, vue54.ComponentOptionsMixin, {} & {
|
|
5
|
+
declare const __VLS_export: vue73.DefineComponent<TypeWriterProps, {}, {}, {}, {}, vue73.ComponentOptionsMixin, vue73.ComponentOptionsMixin, {} & {
|
|
12
6
|
start: () => any;
|
|
13
7
|
update: (v: {
|
|
14
8
|
index: number;
|
|
15
9
|
value: string;
|
|
16
10
|
}) => any;
|
|
17
11
|
stop: (v: string) => any;
|
|
18
|
-
}, string,
|
|
19
|
-
value?: string;
|
|
20
|
-
typing?: boolean;
|
|
21
|
-
markdown?: boolean;
|
|
22
|
-
step?: number;
|
|
23
|
-
interval?: number;
|
|
24
|
-
suffix?: string;
|
|
25
|
-
}> & Readonly<{
|
|
12
|
+
}, string, vue73.PublicProps, Readonly<TypeWriterProps> & Readonly<{
|
|
26
13
|
onStart?: (() => any) | undefined;
|
|
27
14
|
onUpdate?: ((v: {
|
|
28
15
|
index: number;
|
|
29
16
|
value: string;
|
|
30
17
|
}) => any) | undefined;
|
|
31
18
|
onStop?: ((v: string) => any) | undefined;
|
|
32
|
-
}>, {}, {}, {}, {}, string,
|
|
19
|
+
}>, {}, {}, {}, {}, string, vue73.ComponentProvideOptions, false, {}, any>;
|
|
33
20
|
declare const _default: typeof __VLS_export;
|
|
34
21
|
//#endregion
|
|
35
22
|
export { _default };
|
package/dist/components.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { NaiveFormRules } from "./composables/useNaiveForm.js";
|
|
2
1
|
import { _default as _default$8 } from "./components/remote-request/RemoteRequest.vue.js";
|
|
3
2
|
import { RemoteRequestEmits, RemoteRequestExpose, RemoteRequestFields, RemoteRequestInst, RemoteRequestProps } from "./components/remote-request/index.js";
|
|
4
3
|
import { _default as _default$9 } from "./components/search-input/SearchInput.vue.js";
|
|
@@ -7,6 +6,7 @@ import { _default as _default$2 } from "./components/data-table-plus/DataTablePl
|
|
|
7
6
|
import { ClassStyle, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps } from "./components/data-table-plus/index.js";
|
|
8
7
|
import { _default as _default$3 } from "./components/loading-provider/LoadingProvider.vue.js";
|
|
9
8
|
import { LoadingProviderInst, LoadingProviderProps, loadingProviderInjectionKey } from "./components/loading-provider/index.js";
|
|
9
|
+
import { NaiveFormRules } from "./composables/useNaiveForm.js";
|
|
10
10
|
import { _default } from "./components/config-providers/ConfigProviders.vue.js";
|
|
11
11
|
import { ConfigProvidersProps } from "./components/config-providers/index.js";
|
|
12
12
|
import { _default as _default$1 } from "./components/copy-button/CopyButton.vue.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _vueuse_core0 from "@vueuse/core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue0 from "vue";
|
|
3
3
|
import { UseRequestOptions, UseRequestPlugin } from "vue-hooks-plus/es/useRequest/types";
|
|
4
4
|
|
|
5
5
|
//#region src/composables/useDataRequest.d.ts
|
|
@@ -24,20 +24,16 @@ type UseDataRequestPagination = {
|
|
|
24
24
|
itemCount: number;
|
|
25
25
|
};
|
|
26
26
|
declare function useDataRequest<P extends DataObject = DataObject, D extends DataObject = DataObject, R extends DataObject = DataObject>(api: (...args: P[]) => Promise<D>, options?: UseDataRequestOptions<P, D>): {
|
|
27
|
-
loading: Readonly<
|
|
28
|
-
data: Readonly<
|
|
29
|
-
error: Readonly<
|
|
30
|
-
params: Readonly<
|
|
31
|
-
list:
|
|
32
|
-
pagination:
|
|
27
|
+
loading: Readonly<vue0.Ref<boolean, boolean>>;
|
|
28
|
+
data: Readonly<vue0.Ref<D | undefined, D | undefined>>;
|
|
29
|
+
error: Readonly<vue0.Ref<Error | undefined, Error | undefined>>;
|
|
30
|
+
params: Readonly<vue0.Ref<[] | P[], [] | P[]>>;
|
|
31
|
+
list: vue0.ComputedRef<R[]>;
|
|
32
|
+
pagination: vue0.Ref<{
|
|
33
33
|
page: number;
|
|
34
34
|
pageSize: number;
|
|
35
35
|
itemCount: number;
|
|
36
|
-
}, {
|
|
37
|
-
page: number;
|
|
38
|
-
pageSize: number;
|
|
39
|
-
itemCount: number;
|
|
40
|
-
} | {
|
|
36
|
+
}, UseDataRequestPagination | {
|
|
41
37
|
page: number;
|
|
42
38
|
pageSize: number;
|
|
43
39
|
itemCount: number;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
+
import { LoadingProviderInst } from "../components/loading-provider/index.js";
|
|
2
|
+
|
|
1
3
|
//#region src/composables/useLoading.d.ts
|
|
2
|
-
declare function useLoading():
|
|
3
|
-
show: (options?: {
|
|
4
|
-
text?: string;
|
|
5
|
-
duration?: number;
|
|
6
|
-
}) => void;
|
|
7
|
-
hide: () => void;
|
|
8
|
-
} | undefined;
|
|
4
|
+
declare function useLoading(): LoadingProviderInst | undefined;
|
|
9
5
|
//#endregion
|
|
10
6
|
export { useLoading };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataObject } from "./useDataRequest.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _vueuse_core3 from "@vueuse/core";
|
|
3
|
+
import * as vue5 from "vue";
|
|
4
4
|
import { Ref, TemplateRef } from "vue";
|
|
5
5
|
import { FormInst, FormItemRule, FormRules } from "naive-ui";
|
|
6
6
|
import { ValidateError } from "async-validator";
|
|
@@ -17,12 +17,12 @@ type NaiveFormOptions<T extends DataObject> = {
|
|
|
17
17
|
clearRules?: NaiveFormClearRules;
|
|
18
18
|
};
|
|
19
19
|
declare function useNaiveForm<T extends DataObject = DataObject>(formRef: TemplateRef<FormInst>, value?: T | Ref<T>, options?: NaiveFormOptions<T>): {
|
|
20
|
-
formRef: Readonly<
|
|
20
|
+
formRef: Readonly<vue5.ShallowRef<FormInst | null>>;
|
|
21
21
|
formValue: Ref<T, T>;
|
|
22
22
|
formRules: Ref<Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>, Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>>;
|
|
23
23
|
formProps: {
|
|
24
|
-
model:
|
|
25
|
-
rules:
|
|
24
|
+
model: vue5.Reactive<T>;
|
|
25
|
+
rules: vue5.Reactive<Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>>;
|
|
26
26
|
};
|
|
27
27
|
setValue: (_value: Partial<T>) => void;
|
|
28
28
|
validate: () => Promise<{
|
|
@@ -32,7 +32,7 @@ declare function useNaiveForm<T extends DataObject = DataObject>(formRef: Templa
|
|
|
32
32
|
resetForm: () => void;
|
|
33
33
|
reset: () => void;
|
|
34
34
|
clear: () => void;
|
|
35
|
-
onValidated:
|
|
35
|
+
onValidated: _vueuse_core3.EventHookOn<[T]>;
|
|
36
36
|
};
|
|
37
37
|
type NaiveFormReturns<T extends DataObject = DataObject> = ReturnType<typeof useNaiveForm<T>>;
|
|
38
38
|
//#endregion
|
|
@@ -4,12 +4,12 @@ import { GlobalThemeOverrides, NDateLocale } from "naive-ui";
|
|
|
4
4
|
import * as naive_ui_es_themes_interface0 from "naive-ui/es/themes/interface";
|
|
5
5
|
|
|
6
6
|
//#region src/composables/useNaiveTheme.d.ts
|
|
7
|
-
|
|
7
|
+
type NaiveThemeOptions = {
|
|
8
8
|
language?: string | Ref<string>;
|
|
9
9
|
darkMode?: boolean | Ref<boolean>;
|
|
10
10
|
colors?: Colors;
|
|
11
11
|
globalThemeOverrides?: GlobalThemeOverrides;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
declare function useNaiveTheme(options?: NaiveThemeOptions): {
|
|
14
14
|
language: Ref<string | undefined, string | undefined>;
|
|
15
15
|
darkMode: Ref<boolean | undefined, boolean | undefined>;
|
|
@@ -151,13 +151,7 @@ declare function useNaiveTheme(options?: NaiveThemeOptions): {
|
|
|
151
151
|
success?: string | undefined;
|
|
152
152
|
warning?: string | undefined;
|
|
153
153
|
error?: string | undefined;
|
|
154
|
-
}, {
|
|
155
|
-
primary?: string;
|
|
156
|
-
info?: string;
|
|
157
|
-
success?: string;
|
|
158
|
-
warning?: string;
|
|
159
|
-
error?: string;
|
|
160
|
-
} | {
|
|
154
|
+
}, Colors | {
|
|
161
155
|
primary?: string | undefined;
|
|
162
156
|
info?: string | undefined;
|
|
163
157
|
success?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oiij/naive-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.69",
|
|
5
5
|
"description": "Some Composable Functions And Components for Vue 3",
|
|
6
6
|
"author": "oiij",
|
|
7
7
|
"license": "MIT",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"vue": "^3.5.26",
|
|
46
46
|
"vue-component-type-helpers": "^3.2.1",
|
|
47
47
|
"vue-hooks-plus": "^2.4.1",
|
|
48
|
-
"@oiij/
|
|
49
|
-
"@oiij/css-render": "0.0.
|
|
50
|
-
"@oiij/
|
|
48
|
+
"@oiij/use": "0.0.32",
|
|
49
|
+
"@oiij/css-render": "0.0.9",
|
|
50
|
+
"@oiij/markdown-it": "0.0.10"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/prismjs": "^1.26.5",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"vue-component-type-helpers": "^3.2.1",
|
|
62
62
|
"vue-hooks-plus": "^2.4.1",
|
|
63
63
|
"@oiij/markdown-it": "0.0.10",
|
|
64
|
-
"@oiij/
|
|
65
|
-
"@oiij/
|
|
64
|
+
"@oiij/use": "0.0.32",
|
|
65
|
+
"@oiij/css-render": "0.0.9"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|