@oiij/naive-ui 0.0.65 → 0.0.66
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/bubble/Bubble.vue.d.ts +12 -12
- package/dist/components/copy-button/CopyButton.vue.d.ts +10 -10
- package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +43 -43
- package/dist/components/full-loading/FullLoading.vue.d.ts +11 -11
- package/dist/components/index.d.ts +2 -2
- package/dist/components/preset-form/PresetForm.vue.d.ts +18 -18
- package/dist/components/preset-input/PresetInput.vue.d.ts +3 -3
- package/dist/components/preset-picker/PresetPicker.js +5 -1
- package/dist/components/preset-picker/index.d.ts +1 -0
- package/dist/components/preset-select/PresetSelect.vue.d.ts +27 -27
- package/dist/components/remote-request/RemoteRequest.vue.d.ts +10 -10
- package/dist/components/search-input/SearchInput.vue.d.ts +12 -12
- package/dist/components/toggle-input/ToggleInput.js +64 -0
- package/dist/components/toggle-input/ToggleInput.vue.d.ts +46 -0
- package/dist/components/toggle-input/index.d.ts +1 -0
- package/dist/components/transition/BaseTransition.vue.d.ts +6 -6
- package/dist/components.d.ts +3 -3
- package/dist/components.js +3 -4
- package/package.json +5 -5
- package/dist/components/toggle-editor/ToggleEditor.js +0 -44
- package/dist/components/toggle-editor/ToggleEditor.vue.d.ts +0 -20
- package/dist/components/toggle-editor/index.d.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as vue25 from "vue";
|
|
2
|
+
import * as naive_ui15 from "naive-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/bubble/Bubble.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {}, __VLS_27: {}, __VLS_35: {}, __VLS_42: {}, __VLS_51: {};
|
|
@@ -14,35 +14,35 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
} & {
|
|
15
15
|
footer?: (props: typeof __VLS_51) => any;
|
|
16
16
|
};
|
|
17
|
-
declare const __VLS_base:
|
|
17
|
+
declare const __VLS_base: vue25.DefineComponent<{
|
|
18
18
|
avatar?: {
|
|
19
|
-
icon?:
|
|
20
|
-
props?:
|
|
19
|
+
icon?: vue25.VNodeChild;
|
|
20
|
+
props?: naive_ui15.AvatarProps;
|
|
21
21
|
};
|
|
22
22
|
content?: string;
|
|
23
23
|
contentClass?: string;
|
|
24
|
-
contentStyle?:
|
|
24
|
+
contentStyle?: vue25.CSSProperties;
|
|
25
25
|
loading?: boolean;
|
|
26
26
|
typing?: boolean;
|
|
27
27
|
markdown?: boolean;
|
|
28
28
|
placement?: "start" | "end";
|
|
29
|
-
}, {}, {}, {}, {},
|
|
29
|
+
}, {}, {}, {}, {}, vue25.ComponentOptionsMixin, vue25.ComponentOptionsMixin, {} & {
|
|
30
30
|
typingComplete: () => any;
|
|
31
|
-
}, string,
|
|
31
|
+
}, string, vue25.PublicProps, Readonly<{
|
|
32
32
|
avatar?: {
|
|
33
|
-
icon?:
|
|
34
|
-
props?:
|
|
33
|
+
icon?: vue25.VNodeChild;
|
|
34
|
+
props?: naive_ui15.AvatarProps;
|
|
35
35
|
};
|
|
36
36
|
content?: string;
|
|
37
37
|
contentClass?: string;
|
|
38
|
-
contentStyle?:
|
|
38
|
+
contentStyle?: vue25.CSSProperties;
|
|
39
39
|
loading?: boolean;
|
|
40
40
|
typing?: boolean;
|
|
41
41
|
markdown?: boolean;
|
|
42
42
|
placement?: "start" | "end";
|
|
43
43
|
}> & Readonly<{
|
|
44
44
|
onTypingComplete?: (() => any) | undefined;
|
|
45
|
-
}>, {}, {}, {}, {}, string,
|
|
45
|
+
}>, {}, {}, {}, {}, string, vue25.ComponentProvideOptions, false, {}, any>;
|
|
46
46
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
47
|
declare const _default: typeof __VLS_export;
|
|
48
48
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import "../../components.js";
|
|
3
3
|
import * as _vueuse_core4 from "@vueuse/core";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as vue34 from "vue";
|
|
5
|
+
import * as naive_ui17 from "naive-ui";
|
|
6
6
|
|
|
7
7
|
//#region src/components/copy-button/CopyButton.vue.d.ts
|
|
8
8
|
declare var __VLS_9: {}, __VLS_18: {}, __VLS_25: {};
|
|
@@ -13,21 +13,21 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
} & {
|
|
14
14
|
tooltip?: (props: typeof __VLS_25) => any;
|
|
15
15
|
};
|
|
16
|
-
declare const __VLS_base:
|
|
16
|
+
declare const __VLS_base: vue34.DefineComponent<{
|
|
17
17
|
value?: string;
|
|
18
18
|
config?: _vueuse_core4.UseClipboardOptions<string | undefined>;
|
|
19
|
-
tooltipProps?:
|
|
20
|
-
buttonProps?:
|
|
21
|
-
}, {}, {}, {}, {},
|
|
19
|
+
tooltipProps?: naive_ui17.TooltipProps & ClassStyle;
|
|
20
|
+
buttonProps?: naive_ui17.ButtonProps & ClassStyle;
|
|
21
|
+
}, {}, {}, {}, {}, vue34.ComponentOptionsMixin, vue34.ComponentOptionsMixin, {} & {
|
|
22
22
|
copied: (v: string | undefined) => any;
|
|
23
|
-
}, string,
|
|
23
|
+
}, string, vue34.PublicProps, Readonly<{
|
|
24
24
|
value?: string;
|
|
25
25
|
config?: _vueuse_core4.UseClipboardOptions<string | undefined>;
|
|
26
|
-
tooltipProps?:
|
|
27
|
-
buttonProps?:
|
|
26
|
+
tooltipProps?: naive_ui17.TooltipProps & ClassStyle;
|
|
27
|
+
buttonProps?: naive_ui17.ButtonProps & ClassStyle;
|
|
28
28
|
}> & Readonly<{
|
|
29
29
|
onCopied?: ((v: string | undefined) => any) | undefined;
|
|
30
|
-
}>, {}, {}, {}, {}, string,
|
|
30
|
+
}>, {}, {}, {}, {}, string, vue34.ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
32
|
declare const _default: typeof __VLS_export;
|
|
33
33
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import "../../composables/index.js";
|
|
3
3
|
import { DataTablePlusEmits, DataTablePlusExpose, DataTablePlusProps } from "./index.js";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as _vueuse_core29 from "@vueuse/core";
|
|
5
|
+
import * as vue51 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
|
|
@@ -12,8 +12,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
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
|
-
|
|
28
|
-
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
29
|
-
}> & vue72.PublicProps & (typeof globalThis extends {
|
|
29
|
+
}> & vue51.PublicProps & (typeof globalThis extends {
|
|
30
30
|
__VLS_PROPS_FALLBACK: infer P_1;
|
|
31
31
|
} ? P_1 : {});
|
|
32
|
-
expose: (exposed:
|
|
32
|
+
expose: (exposed: vue51.ShallowUnwrapRef<DataTablePlusExpose<P, D, R>>) => void;
|
|
33
33
|
attrs: any;
|
|
34
34
|
slots: {
|
|
35
35
|
header?: (props: {
|
|
@@ -50,7 +50,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
50
50
|
filters: DataTableFilterState | undefined;
|
|
51
51
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
52
52
|
dataTableRef: DataTableInst | null;
|
|
53
|
-
pagination:
|
|
53
|
+
pagination: vue51.Ref<{
|
|
54
54
|
page: number;
|
|
55
55
|
pageSize: number;
|
|
56
56
|
itemCount: number;
|
|
@@ -72,10 +72,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
72
72
|
setParams: (_params: Partial<P>) => void;
|
|
73
73
|
runParams: (_params: Partial<P>) => void;
|
|
74
74
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
75
|
-
onBefore:
|
|
76
|
-
onSuccess:
|
|
77
|
-
onError:
|
|
78
|
-
onFinally:
|
|
75
|
+
onBefore: _vueuse_core29.EventHookOn<[P[]]>;
|
|
76
|
+
onSuccess: _vueuse_core29.EventHookOn<[D, P[]]>;
|
|
77
|
+
onError: _vueuse_core29.EventHookOn<[Error, P[]]>;
|
|
78
|
+
onFinally: _vueuse_core29.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
79
79
|
}) => any;
|
|
80
80
|
} & {
|
|
81
81
|
title?: (props: {}) => any;
|
|
@@ -98,7 +98,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
98
98
|
filters: DataTableFilterState | undefined;
|
|
99
99
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
100
100
|
dataTableRef: DataTableInst | null;
|
|
101
|
-
pagination:
|
|
101
|
+
pagination: vue51.Ref<{
|
|
102
102
|
page: number;
|
|
103
103
|
pageSize: number;
|
|
104
104
|
itemCount: number;
|
|
@@ -120,10 +120,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
120
120
|
setParams: (_params: Partial<P>) => void;
|
|
121
121
|
runParams: (_params: Partial<P>) => void;
|
|
122
122
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
123
|
-
onBefore:
|
|
124
|
-
onSuccess:
|
|
125
|
-
onError:
|
|
126
|
-
onFinally:
|
|
123
|
+
onBefore: _vueuse_core29.EventHookOn<[P[]]>;
|
|
124
|
+
onSuccess: _vueuse_core29.EventHookOn<[D, P[]]>;
|
|
125
|
+
onError: _vueuse_core29.EventHookOn<[Error, P[]]>;
|
|
126
|
+
onFinally: _vueuse_core29.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
127
127
|
}) => any;
|
|
128
128
|
} & {
|
|
129
129
|
filter?: (props: {
|
|
@@ -144,7 +144,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
144
144
|
filters: DataTableFilterState | undefined;
|
|
145
145
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
146
146
|
dataTableRef: DataTableInst | null;
|
|
147
|
-
pagination:
|
|
147
|
+
pagination: vue51.Ref<{
|
|
148
148
|
page: number;
|
|
149
149
|
pageSize: number;
|
|
150
150
|
itemCount: number;
|
|
@@ -166,10 +166,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
166
166
|
setParams: (_params: Partial<P>) => void;
|
|
167
167
|
runParams: (_params: Partial<P>) => void;
|
|
168
168
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
169
|
-
onBefore:
|
|
170
|
-
onSuccess:
|
|
171
|
-
onError:
|
|
172
|
-
onFinally:
|
|
169
|
+
onBefore: _vueuse_core29.EventHookOn<[P[]]>;
|
|
170
|
+
onSuccess: _vueuse_core29.EventHookOn<[D, P[]]>;
|
|
171
|
+
onError: _vueuse_core29.EventHookOn<[Error, P[]]>;
|
|
172
|
+
onFinally: _vueuse_core29.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
173
173
|
}) => any;
|
|
174
174
|
} & {
|
|
175
175
|
empty?: (props: {
|
|
@@ -190,7 +190,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
190
190
|
filters: DataTableFilterState | undefined;
|
|
191
191
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
192
192
|
dataTableRef: DataTableInst | null;
|
|
193
|
-
pagination:
|
|
193
|
+
pagination: vue51.Ref<{
|
|
194
194
|
page: number;
|
|
195
195
|
pageSize: number;
|
|
196
196
|
itemCount: number;
|
|
@@ -212,10 +212,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
212
212
|
setParams: (_params: Partial<P>) => void;
|
|
213
213
|
runParams: (_params: Partial<P>) => void;
|
|
214
214
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
215
|
-
onBefore:
|
|
216
|
-
onSuccess:
|
|
217
|
-
onError:
|
|
218
|
-
onFinally:
|
|
215
|
+
onBefore: _vueuse_core29.EventHookOn<[P[]]>;
|
|
216
|
+
onSuccess: _vueuse_core29.EventHookOn<[D, P[]]>;
|
|
217
|
+
onError: _vueuse_core29.EventHookOn<[Error, P[]]>;
|
|
218
|
+
onFinally: _vueuse_core29.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
219
219
|
}) => any;
|
|
220
220
|
} & {
|
|
221
221
|
loading?: (props: {
|
|
@@ -236,7 +236,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
236
236
|
filters: DataTableFilterState | undefined;
|
|
237
237
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
238
238
|
dataTableRef: DataTableInst | null;
|
|
239
|
-
pagination:
|
|
239
|
+
pagination: vue51.Ref<{
|
|
240
240
|
page: number;
|
|
241
241
|
pageSize: number;
|
|
242
242
|
itemCount: number;
|
|
@@ -258,10 +258,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
258
258
|
setParams: (_params: Partial<P>) => void;
|
|
259
259
|
runParams: (_params: Partial<P>) => void;
|
|
260
260
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
261
|
-
onBefore:
|
|
262
|
-
onSuccess:
|
|
263
|
-
onError:
|
|
264
|
-
onFinally:
|
|
261
|
+
onBefore: _vueuse_core29.EventHookOn<[P[]]>;
|
|
262
|
+
onSuccess: _vueuse_core29.EventHookOn<[D, P[]]>;
|
|
263
|
+
onError: _vueuse_core29.EventHookOn<[Error, P[]]>;
|
|
264
|
+
onFinally: _vueuse_core29.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
265
265
|
}) => any;
|
|
266
266
|
} & {
|
|
267
267
|
footer?: (props: {
|
|
@@ -282,7 +282,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
282
282
|
filters: DataTableFilterState | undefined;
|
|
283
283
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
284
284
|
dataTableRef: DataTableInst | null;
|
|
285
|
-
pagination:
|
|
285
|
+
pagination: vue51.Ref<{
|
|
286
286
|
page: number;
|
|
287
287
|
pageSize: number;
|
|
288
288
|
itemCount: number;
|
|
@@ -304,10 +304,10 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
304
304
|
setParams: (_params: Partial<P>) => void;
|
|
305
305
|
runParams: (_params: Partial<P>) => void;
|
|
306
306
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
307
|
-
onBefore:
|
|
308
|
-
onSuccess:
|
|
309
|
-
onError:
|
|
310
|
-
onFinally:
|
|
307
|
+
onBefore: _vueuse_core29.EventHookOn<[P[]]>;
|
|
308
|
+
onSuccess: _vueuse_core29.EventHookOn<[D, P[]]>;
|
|
309
|
+
onError: _vueuse_core29.EventHookOn<[Error, P[]]>;
|
|
310
|
+
onFinally: _vueuse_core29.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
311
311
|
}) => any;
|
|
312
312
|
} & {
|
|
313
313
|
'footer-extra'?: (props: {
|
|
@@ -328,7 +328,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
328
328
|
filters: DataTableFilterState | undefined;
|
|
329
329
|
sorters: Record<string, DataTableSortState> | undefined;
|
|
330
330
|
dataTableRef: DataTableInst | null;
|
|
331
|
-
pagination:
|
|
331
|
+
pagination: vue51.Ref<{
|
|
332
332
|
page: number;
|
|
333
333
|
pageSize: number;
|
|
334
334
|
itemCount: number;
|
|
@@ -350,14 +350,14 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
350
350
|
setParams: (_params: Partial<P>) => void;
|
|
351
351
|
runParams: (_params: Partial<P>) => void;
|
|
352
352
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
353
|
-
onBefore:
|
|
354
|
-
onSuccess:
|
|
355
|
-
onError:
|
|
356
|
-
onFinally:
|
|
353
|
+
onBefore: _vueuse_core29.EventHookOn<[P[]]>;
|
|
354
|
+
onSuccess: _vueuse_core29.EventHookOn<[D, P[]]>;
|
|
355
|
+
onError: _vueuse_core29.EventHookOn<[Error, P[]]>;
|
|
356
|
+
onFinally: _vueuse_core29.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
357
357
|
}) => any;
|
|
358
358
|
};
|
|
359
359
|
emit: DataTablePlusEmits<P, D, R>;
|
|
360
|
-
}>) =>
|
|
360
|
+
}>) => vue51.VNode & {
|
|
361
361
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
362
362
|
};
|
|
363
363
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import "../../components.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as vue71 from "vue";
|
|
4
|
+
import * as naive_ui39 from "naive-ui";
|
|
5
5
|
|
|
6
6
|
//#region src/components/full-loading/FullLoading.vue.d.ts
|
|
7
7
|
declare var __VLS_27: {}, __VLS_30: {};
|
|
@@ -10,23 +10,23 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
} & {
|
|
11
11
|
icon?: (props: typeof __VLS_30) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
13
|
+
declare const __VLS_base: vue71.DefineComponent<{
|
|
14
14
|
show?: boolean;
|
|
15
|
-
appendTo?: string |
|
|
16
|
-
mask?: boolean |
|
|
15
|
+
appendTo?: string | vue71.RendererElement;
|
|
16
|
+
mask?: boolean | vue71.CSSProperties;
|
|
17
17
|
blur?: boolean;
|
|
18
18
|
disableScroll?: boolean;
|
|
19
19
|
scrollSelector?: string | HTMLElement;
|
|
20
|
-
spinProps?: Omit<
|
|
21
|
-
}, {}, {}, {}, {},
|
|
20
|
+
spinProps?: Omit<naive_ui39.SpinProps, "show"> & ClassStyle;
|
|
21
|
+
}, {}, {}, {}, {}, vue71.ComponentOptionsMixin, vue71.ComponentOptionsMixin, {}, string, vue71.PublicProps, Readonly<{
|
|
22
22
|
show?: boolean;
|
|
23
|
-
appendTo?: string |
|
|
24
|
-
mask?: boolean |
|
|
23
|
+
appendTo?: string | vue71.RendererElement;
|
|
24
|
+
mask?: boolean | vue71.CSSProperties;
|
|
25
25
|
blur?: boolean;
|
|
26
26
|
disableScroll?: boolean;
|
|
27
27
|
scrollSelector?: string | HTMLElement;
|
|
28
|
-
spinProps?: Omit<
|
|
29
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
28
|
+
spinProps?: Omit<naive_ui39.SpinProps, "show"> & ClassStyle;
|
|
29
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, vue71.ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
31
|
declare const _default: typeof __VLS_export;
|
|
32
32
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -21,8 +21,8 @@ import { _default as _default$9 } from "./preset-picker/PresetPicker.vue.js";
|
|
|
21
21
|
import { PresetPickerEmits, PresetPickerExpose, PresetPickerInst, PresetPickerProps, PresetPickerValue } from "./preset-picker/index.js";
|
|
22
22
|
import { _default as _default$10 } from "./preset-select/PresetSelect.vue.js";
|
|
23
23
|
import { ArrayAwareType, OptionFormat, PresetSelectEmits, PresetSelectExpose, PresetSelectFields, PresetSelectInst, PresetSelectProps, PresetSelectValue } from "./preset-select/index.js";
|
|
24
|
-
import { _default as _default$11 } from "./toggle-
|
|
25
|
-
import "./toggle-
|
|
24
|
+
import { _default as _default$11 } from "./toggle-input/ToggleInput.vue.js";
|
|
25
|
+
import "./toggle-input/index.js";
|
|
26
26
|
import { _default as _default$12 } from "./tooltip-button/TooltipButton.vue.js";
|
|
27
27
|
import { TooltipButtonProps } from "./tooltip-button/index.js";
|
|
28
28
|
import { _default as _default$13 } from "./transition/BaseTransition.vue.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
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_core6 from "@vueuse/core";
|
|
4
|
+
import * as vue39 from "vue";
|
|
5
|
+
import * as naive_ui21 from "naive-ui";
|
|
6
6
|
import { FormInst } from "naive-ui";
|
|
7
7
|
import * as async_validator0 from "async-validator";
|
|
8
8
|
|
|
@@ -10,19 +10,19 @@ import * as async_validator0 from "async-validator";
|
|
|
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
11
|
props: __VLS_PrettifyLocal<PresetFormProps<V> & {
|
|
12
12
|
onValidated?: ((val: V) => any) | undefined;
|
|
13
|
-
}> &
|
|
13
|
+
}> & vue39.PublicProps & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
15
15
|
} ? P : {});
|
|
16
|
-
expose: (exposed:
|
|
16
|
+
expose: (exposed: vue39.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_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.FormItemRule[]>>;
|
|
23
23
|
formProps: {
|
|
24
|
-
model:
|
|
25
|
-
rules:
|
|
24
|
+
model: vue39.Reactive<V>;
|
|
25
|
+
rules: vue39.Reactive<Partial<Record<keyof V, naive_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.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_core6.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_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.FormItemRule[]>>;
|
|
42
42
|
formProps: {
|
|
43
|
-
model:
|
|
44
|
-
rules:
|
|
43
|
+
model: vue39.Reactive<V>;
|
|
44
|
+
rules: vue39.Reactive<Partial<Record<keyof V, naive_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.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_core6.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_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.FormItemRule[]>>;
|
|
61
61
|
formProps: {
|
|
62
|
-
model:
|
|
63
|
-
rules:
|
|
62
|
+
model: vue39.Reactive<V>;
|
|
63
|
+
rules: vue39.Reactive<Partial<Record<keyof V, naive_ui21.FormRules | naive_ui21.FormItemRule | naive_ui21.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_core6.EventHookOn<[V]>;
|
|
74
74
|
}) => any;
|
|
75
75
|
};
|
|
76
76
|
emit: (e: "validated", val: V) => void;
|
|
77
|
-
}>) =>
|
|
77
|
+
}>) => vue39.VNode & {
|
|
78
78
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
79
79
|
};
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { PresetInputProps } from "./index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue23 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
6
|
props: __VLS_PrettifyLocal<PresetInputProps<V> & {
|
|
7
7
|
"onUpdate:value"?: ((val?: V | undefined) => any) | undefined;
|
|
8
|
-
}> &
|
|
8
|
+
}> & vue23.PublicProps & (typeof globalThis extends {
|
|
9
9
|
__VLS_PROPS_FALLBACK: infer P;
|
|
10
10
|
} ? P : {});
|
|
11
11
|
expose: (exposed: {}) => void;
|
|
12
12
|
attrs: any;
|
|
13
13
|
slots: {};
|
|
14
14
|
emit: (e: "update:value", val?: V) => void;
|
|
15
|
-
}>) =>
|
|
15
|
+
}>) => vue23.VNode & {
|
|
16
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -12,6 +12,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
multiple: { type: Boolean },
|
|
13
13
|
disabled: { type: Boolean },
|
|
14
14
|
clearable: { type: Boolean },
|
|
15
|
+
tooltip: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: true
|
|
18
|
+
},
|
|
15
19
|
placeholder: { default: "请选择" },
|
|
16
20
|
type: {},
|
|
17
21
|
columns: {},
|
|
@@ -148,7 +152,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
148
152
|
default: withCtx(() => [createVNode(unref(NButtonGroup), null, {
|
|
149
153
|
default: withCtx(() => [
|
|
150
154
|
createVNode(unref(NTooltip), {
|
|
151
|
-
disabled: Array.isArray(__props.value) ?
|
|
155
|
+
disabled: !__props.tooltip || !Array.isArray(__props.value) ? true : false,
|
|
152
156
|
trigger: Array.isArray(__props.value) ? "hover" : "manual"
|
|
153
157
|
}, {
|
|
154
158
|
trigger: withCtx(() => [createVNode(unref(NButton), mergeProps({
|
|
@@ -29,6 +29,7 @@ type PresetPickerProps<V extends PresetPickerValue, R extends DataObject = DataO
|
|
|
29
29
|
multiple?: boolean;
|
|
30
30
|
disabled?: boolean;
|
|
31
31
|
clearable?: boolean;
|
|
32
|
+
tooltip?: boolean;
|
|
32
33
|
placeholder?: string;
|
|
33
34
|
type?: ButtonProps['type'];
|
|
34
35
|
columns?: DataTableColumns<R>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { PresetSelectEmits, PresetSelectExpose, PresetSelectProps, PresetSelectValue } from "./index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _vueuse_core9 from "@vueuse/core";
|
|
4
|
+
import * as vue48 from "vue";
|
|
5
5
|
import { SelectInst, SelectOption } from "naive-ui";
|
|
6
6
|
|
|
7
7
|
//#region src/components/preset-select/PresetSelect.vue.d.ts
|
|
@@ -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
|
-
|
|
23
|
-
}> &
|
|
22
|
+
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
23
|
+
}> & vue48.PublicProps & (typeof globalThis extends {
|
|
24
24
|
__VLS_PROPS_FALLBACK: infer P_1;
|
|
25
25
|
} ? P_1 : {});
|
|
26
|
-
expose: (exposed:
|
|
26
|
+
expose: (exposed: vue48.ShallowUnwrapRef<PresetSelectExpose<P, D, R>>) => void;
|
|
27
27
|
attrs: any;
|
|
28
28
|
slots: {
|
|
29
29
|
header?: (props: {
|
|
@@ -51,10 +51,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
51
51
|
setParams: (_params: Partial<P>) => void;
|
|
52
52
|
runParams: (_params: Partial<P>) => void;
|
|
53
53
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
54
|
-
onBefore:
|
|
55
|
-
onSuccess:
|
|
56
|
-
onError:
|
|
57
|
-
onFinally:
|
|
54
|
+
onBefore: _vueuse_core9.EventHookOn<[P[]]>;
|
|
55
|
+
onSuccess: _vueuse_core9.EventHookOn<[D, P[]]>;
|
|
56
|
+
onError: _vueuse_core9.EventHookOn<[Error, P[]]>;
|
|
57
|
+
onFinally: _vueuse_core9.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
58
58
|
}) => any;
|
|
59
59
|
} & {
|
|
60
60
|
footer?: (props: {
|
|
@@ -82,10 +82,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
82
82
|
setParams: (_params: Partial<P>) => void;
|
|
83
83
|
runParams: (_params: Partial<P>) => void;
|
|
84
84
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
85
|
-
onBefore:
|
|
86
|
-
onSuccess:
|
|
87
|
-
onError:
|
|
88
|
-
onFinally:
|
|
85
|
+
onBefore: _vueuse_core9.EventHookOn<[P[]]>;
|
|
86
|
+
onSuccess: _vueuse_core9.EventHookOn<[D, P[]]>;
|
|
87
|
+
onError: _vueuse_core9.EventHookOn<[Error, P[]]>;
|
|
88
|
+
onFinally: _vueuse_core9.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
89
89
|
}) => any;
|
|
90
90
|
} & {
|
|
91
91
|
'footer-extra'?: (props: {
|
|
@@ -113,10 +113,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
113
113
|
setParams: (_params: Partial<P>) => void;
|
|
114
114
|
runParams: (_params: Partial<P>) => void;
|
|
115
115
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
116
|
-
onBefore:
|
|
117
|
-
onSuccess:
|
|
118
|
-
onError:
|
|
119
|
-
onFinally:
|
|
116
|
+
onBefore: _vueuse_core9.EventHookOn<[P[]]>;
|
|
117
|
+
onSuccess: _vueuse_core9.EventHookOn<[D, P[]]>;
|
|
118
|
+
onError: _vueuse_core9.EventHookOn<[Error, P[]]>;
|
|
119
|
+
onFinally: _vueuse_core9.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
120
120
|
}) => any;
|
|
121
121
|
} & {
|
|
122
122
|
empty?: (props: {
|
|
@@ -144,10 +144,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
144
144
|
setParams: (_params: Partial<P>) => void;
|
|
145
145
|
runParams: (_params: Partial<P>) => void;
|
|
146
146
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
147
|
-
onBefore:
|
|
148
|
-
onSuccess:
|
|
149
|
-
onError:
|
|
150
|
-
onFinally:
|
|
147
|
+
onBefore: _vueuse_core9.EventHookOn<[P[]]>;
|
|
148
|
+
onSuccess: _vueuse_core9.EventHookOn<[D, P[]]>;
|
|
149
|
+
onError: _vueuse_core9.EventHookOn<[Error, P[]]>;
|
|
150
|
+
onFinally: _vueuse_core9.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
151
151
|
}) => any;
|
|
152
152
|
} & {
|
|
153
153
|
arrow?: (props: {
|
|
@@ -175,14 +175,14 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
175
175
|
setParams: (_params: Partial<P>) => void;
|
|
176
176
|
runParams: (_params: Partial<P>) => void;
|
|
177
177
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
178
|
-
onBefore:
|
|
179
|
-
onSuccess:
|
|
180
|
-
onError:
|
|
181
|
-
onFinally:
|
|
178
|
+
onBefore: _vueuse_core9.EventHookOn<[P[]]>;
|
|
179
|
+
onSuccess: _vueuse_core9.EventHookOn<[D, P[]]>;
|
|
180
|
+
onError: _vueuse_core9.EventHookOn<[Error, P[]]>;
|
|
181
|
+
onFinally: _vueuse_core9.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
182
182
|
}) => any;
|
|
183
183
|
};
|
|
184
184
|
emit: PresetSelectEmits<V, P, D, R>;
|
|
185
|
-
}>) =>
|
|
185
|
+
}>) => vue48.VNode & {
|
|
186
186
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
187
187
|
};
|
|
188
188
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { RemoteRequestEmits, RemoteRequestExpose, RemoteRequestProps } from "./index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _vueuse_core57 from "@vueuse/core";
|
|
4
|
+
import * as vue68 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
8
|
props: __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;
|
|
13
|
-
|
|
12
|
+
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
13
|
+
}> & vue68.PublicProps & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P_1;
|
|
15
15
|
} ? P_1 : {});
|
|
16
|
-
expose: (exposed:
|
|
16
|
+
expose: (exposed: vue68.ShallowUnwrapRef<RemoteRequestExpose<P, D, R>>) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
19
19
|
default?: (props: {
|
|
@@ -40,14 +40,14 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
40
40
|
setParams: (_params: Partial<P>) => void;
|
|
41
41
|
runParams: (_params: Partial<P>) => void;
|
|
42
42
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
43
|
-
onBefore:
|
|
44
|
-
onSuccess:
|
|
45
|
-
onError:
|
|
46
|
-
onFinally:
|
|
43
|
+
onBefore: _vueuse_core57.EventHookOn<[P[]]>;
|
|
44
|
+
onSuccess: _vueuse_core57.EventHookOn<[D, P[]]>;
|
|
45
|
+
onError: _vueuse_core57.EventHookOn<[Error, P[]]>;
|
|
46
|
+
onFinally: _vueuse_core57.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
47
47
|
}) => any;
|
|
48
48
|
};
|
|
49
49
|
emit: RemoteRequestEmits<P, D>;
|
|
50
|
-
}>) =>
|
|
50
|
+
}>) => vue68.VNode & {
|
|
51
51
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
52
52
|
};
|
|
53
53
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import "../../components.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as vue80 from "vue";
|
|
4
|
+
import * as naive_ui41 from "naive-ui";
|
|
5
5
|
|
|
6
6
|
//#region src/components/search-input/SearchInput.vue.d.ts
|
|
7
7
|
declare var __VLS_19: {}, __VLS_21: {}, __VLS_28: {
|
|
@@ -17,29 +17,29 @@ type __VLS_Slots = {} & {
|
|
|
17
17
|
} & {
|
|
18
18
|
'button-icon'?: (props: typeof __VLS_39) => any;
|
|
19
19
|
};
|
|
20
|
-
declare const __VLS_base:
|
|
20
|
+
declare const __VLS_base: vue80.DefineComponent<{
|
|
21
21
|
value?: string | null;
|
|
22
|
-
type?:
|
|
22
|
+
type?: naive_ui41.ButtonProps["type"];
|
|
23
23
|
placeholder?: string;
|
|
24
24
|
loading?: boolean;
|
|
25
25
|
autoTrigger?: boolean | number;
|
|
26
26
|
searchButton?: "text" | "icon" | boolean;
|
|
27
|
-
inputProps?:
|
|
28
|
-
buttonProps?:
|
|
29
|
-
}, {}, {}, {}, {},
|
|
27
|
+
inputProps?: naive_ui41.InputProps & ClassStyle;
|
|
28
|
+
buttonProps?: naive_ui41.ButtonProps & ClassStyle;
|
|
29
|
+
}, {}, {}, {}, {}, vue80.ComponentOptionsMixin, vue80.ComponentOptionsMixin, {} & {
|
|
30
30
|
"update:value": (v: string | null | undefined) => any;
|
|
31
|
-
}, string,
|
|
31
|
+
}, string, vue80.PublicProps, Readonly<{
|
|
32
32
|
value?: string | null;
|
|
33
|
-
type?:
|
|
33
|
+
type?: naive_ui41.ButtonProps["type"];
|
|
34
34
|
placeholder?: string;
|
|
35
35
|
loading?: boolean;
|
|
36
36
|
autoTrigger?: boolean | number;
|
|
37
37
|
searchButton?: "text" | "icon" | boolean;
|
|
38
|
-
inputProps?:
|
|
39
|
-
buttonProps?:
|
|
38
|
+
inputProps?: naive_ui41.InputProps & ClassStyle;
|
|
39
|
+
buttonProps?: naive_ui41.ButtonProps & ClassStyle;
|
|
40
40
|
}> & Readonly<{
|
|
41
41
|
"onUpdate:value"?: ((v: string | null | undefined) => any) | undefined;
|
|
42
|
-
}>, {}, {}, {}, {}, string,
|
|
42
|
+
}>, {}, {}, {}, {}, string, vue80.ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
45
45
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { createElementBlock, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeProps, openBlock, ref, renderSlot, toDisplayString, unref, useModel, useTemplateRef, watchEffect } from "vue";
|
|
2
|
+
import { NInput } from "naive-ui";
|
|
3
|
+
|
|
4
|
+
//#region src/components/toggle-input/ToggleInput.vue
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "ToggleInput",
|
|
7
|
+
props: /* @__PURE__ */ mergeModels({
|
|
8
|
+
trigger: { default: "click" },
|
|
9
|
+
inputProps: {}
|
|
10
|
+
}, {
|
|
11
|
+
"value": {},
|
|
12
|
+
"valueModifiers": {}
|
|
13
|
+
}),
|
|
14
|
+
emits: /* @__PURE__ */ mergeModels(["trigger"], ["update:value"]),
|
|
15
|
+
setup(__props, { emit: __emit }) {
|
|
16
|
+
const emit = __emit;
|
|
17
|
+
const value = useModel(__props, "value");
|
|
18
|
+
const showInput = ref(false);
|
|
19
|
+
const inputRef = useTemplateRef("input-ref");
|
|
20
|
+
const inputValue = ref(value.value);
|
|
21
|
+
watchEffect(() => {
|
|
22
|
+
inputValue.value = value.value;
|
|
23
|
+
});
|
|
24
|
+
function onTrigger() {
|
|
25
|
+
inputValue.value = value.value;
|
|
26
|
+
showInput.value = true;
|
|
27
|
+
emit("trigger");
|
|
28
|
+
nextTick(() => {
|
|
29
|
+
inputRef.value?.focus();
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function onUpdateValue(val) {
|
|
33
|
+
inputValue.value = val;
|
|
34
|
+
}
|
|
35
|
+
function hideInput() {
|
|
36
|
+
showInput.value = false;
|
|
37
|
+
}
|
|
38
|
+
function onEmit() {
|
|
39
|
+
hideInput();
|
|
40
|
+
value.value = inputValue.value;
|
|
41
|
+
}
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return openBlock(), createElementBlock("div", {
|
|
44
|
+
onClick: _cache[0] || (_cache[0] = ($event) => __props.trigger === "click" && onTrigger()),
|
|
45
|
+
onDblclick: _cache[1] || (_cache[1] = ($event) => __props.trigger === "dblclick" && onTrigger())
|
|
46
|
+
}, [showInput.value ? renderSlot(_ctx.$slots, "input", normalizeProps(mergeProps({ key: 0 }, {
|
|
47
|
+
onUpdateValue,
|
|
48
|
+
hideInput,
|
|
49
|
+
onEmit,
|
|
50
|
+
inputValue: inputValue.value
|
|
51
|
+
})), () => [createVNode(unref(NInput), mergeProps({
|
|
52
|
+
ref: "input-ref",
|
|
53
|
+
value: typeof inputValue.value === "string" ? inputValue.value : inputValue.value?.toString()
|
|
54
|
+
}, __props.inputProps, {
|
|
55
|
+
"onUpdate:value": onUpdateValue,
|
|
56
|
+
onBlur: onEmit
|
|
57
|
+
}), null, 16, ["value"])]) : renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 1 }, { value: inputValue.value })), () => [createTextVNode(toDisplayString(inputValue.value), 1)])], 32);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
var ToggleInput_default = _sfc_main;
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export { ToggleInput_default as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
|
+
import * as vue13 from "vue";
|
|
3
|
+
import { InputProps } from "naive-ui";
|
|
4
|
+
|
|
5
|
+
//#region src/components/toggle-input/ToggleInput.vue.d.ts
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
trigger?: 'click' | 'dblclick';
|
|
8
|
+
inputProps?: InputProps & ClassStyle;
|
|
9
|
+
};
|
|
10
|
+
declare function onUpdateValue(val: string | number): void;
|
|
11
|
+
declare function hideInput(): void;
|
|
12
|
+
declare function onEmit(): void;
|
|
13
|
+
type __VLS_ModelProps = {
|
|
14
|
+
'value'?: string | number;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
17
|
+
declare var __VLS_1: {
|
|
18
|
+
onUpdateValue: typeof onUpdateValue;
|
|
19
|
+
hideInput: typeof hideInput;
|
|
20
|
+
onEmit: typeof onEmit;
|
|
21
|
+
inputValue: string | number | undefined;
|
|
22
|
+
}, __VLS_13: {
|
|
23
|
+
value: string | number | undefined;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_Slots = {} & {
|
|
26
|
+
input?: (props: typeof __VLS_1) => any;
|
|
27
|
+
} & {
|
|
28
|
+
default?: (props: typeof __VLS_13) => any;
|
|
29
|
+
};
|
|
30
|
+
declare const __VLS_base: vue13.DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, vue13.ComponentOptionsMixin, vue13.ComponentOptionsMixin, {
|
|
31
|
+
"update:value": (value: string | number | undefined) => any;
|
|
32
|
+
} & {
|
|
33
|
+
trigger: () => any;
|
|
34
|
+
}, string, vue13.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
35
|
+
onTrigger?: (() => any) | undefined;
|
|
36
|
+
"onUpdate:value"?: ((value: string | number | undefined) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, vue13.ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { _default } from "./ToggleInput.vue.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import "../../components.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue61 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/transition/BaseTransition.vue.d.ts
|
|
6
6
|
declare var __VLS_7: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_7) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base:
|
|
10
|
+
declare const __VLS_base: vue61.DefineComponent<{
|
|
11
11
|
name?: string;
|
|
12
|
-
transitionProps?:
|
|
13
|
-
}, {}, {}, {}, {},
|
|
12
|
+
transitionProps?: vue61.TransitionProps & ClassStyle;
|
|
13
|
+
}, {}, {}, {}, {}, vue61.ComponentOptionsMixin, vue61.ComponentOptionsMixin, {}, string, vue61.PublicProps, Readonly<{
|
|
14
14
|
name?: string;
|
|
15
|
-
transitionProps?:
|
|
16
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
15
|
+
transitionProps?: vue61.TransitionProps & ClassStyle;
|
|
16
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, vue61.ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
19
19
|
type __VLS_WithSlots<T, S> = T & {
|
package/dist/components.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ import { _default as _default$7 } from "./components/preset-picker/PresetPicker.
|
|
|
21
21
|
import { PresetPickerEmits, PresetPickerExpose, PresetPickerInst, PresetPickerProps, PresetPickerValue } from "./components/preset-picker/index.js";
|
|
22
22
|
import { _default as _default$8 } from "./components/preset-select/PresetSelect.vue.js";
|
|
23
23
|
import { ArrayAwareType, OptionFormat, PresetSelectEmits, PresetSelectExpose, PresetSelectFields, PresetSelectInst, PresetSelectProps, PresetSelectValue } from "./components/preset-select/index.js";
|
|
24
|
-
import { _default as _default$11 } from "./components/toggle-
|
|
24
|
+
import { _default as _default$11 } from "./components/toggle-input/ToggleInput.vue.js";
|
|
25
25
|
import { _default as _default$12 } from "./components/tooltip-button/TooltipButton.vue.js";
|
|
26
26
|
import { TooltipButtonProps } from "./components/tooltip-button/index.js";
|
|
27
27
|
import { _default as _default$13 } from "./components/transition/BaseTransition.vue.js";
|
|
@@ -29,5 +29,5 @@ import { TransitionProps } from "./components/transition/index.js";
|
|
|
29
29
|
import { _default as _default$14 } from "./components/type-writer/TypeWriter.vue.js";
|
|
30
30
|
import { TypeWriterProps } from "./components/type-writer/index.js";
|
|
31
31
|
import "./components/index.js";
|
|
32
|
-
|
|
33
|
-
export { ArrayAwareType, BubbleProps, ClassStyle, ConfigProvidersProps, CopyButtonProps, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps, FullLoadingProps, LoadingIns, _default as NBubble, _default$1 as NConfigProviders, _default$2 as NCopyButton, _default$3 as NDataTablePlus, _default$4 as NFullLoading, _default$5 as NPresetForm, _default$6 as NPresetInput, _default$7 as NPresetPicker, _default$8 as NPresetSelect, _default$9 as NRemoteRequest, _default$10 as NSearchInput, _default$11 as
|
|
32
|
+
import { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots, ComponentType } from "vue-component-type-helpers";
|
|
33
|
+
export { ArrayAwareType, BubbleProps, ClassStyle, ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots, ComponentType, ConfigProvidersProps, CopyButtonProps, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps, FullLoadingProps, LoadingIns, _default as NBubble, _default$1 as NConfigProviders, _default$2 as NCopyButton, _default$3 as NDataTablePlus, _default$4 as NFullLoading, _default$5 as NPresetForm, _default$6 as NPresetInput, _default$7 as NPresetPicker, _default$8 as NPresetSelect, _default$9 as NRemoteRequest, _default$10 as NSearchInput, _default$11 as NToggleInput, _default$12 as NTooltipButton, _default$13 as NTransition, _default$14 as NTypeWriter, NaiveFormRules, OptionFormat, PresetFormExpose, PresetFormInst, PresetFormOptionItem, PresetFormOptions, PresetFormProps, PresetInputOptions, PresetInputProps, PresetInputType, PresetPickerEmits, PresetPickerExpose, PresetPickerInst, PresetPickerProps, PresetPickerValue, PresetSelectEmits, PresetSelectExpose, PresetSelectFields, PresetSelectInst, PresetSelectProps, PresetSelectValue, RemoteRequestEmits, RemoteRequestExpose, RemoteRequestFields, RemoteRequestInst, RemoteRequestProps, SearchInputProps, TooltipButtonProps, TransitionProps, TypeWriterProps };
|
package/dist/components.js
CHANGED
|
@@ -11,9 +11,8 @@ import PresetForm_default from "./components/preset-form/PresetForm.js";
|
|
|
11
11
|
import PresetPicker_default from "./components/preset-picker/PresetPicker.js";
|
|
12
12
|
import PresetSelect_default from "./components/preset-select/PresetSelect.js";
|
|
13
13
|
import RemoteRequest_default from "./components/remote-request/RemoteRequest.js";
|
|
14
|
-
import
|
|
14
|
+
import ToggleInput_default from "./components/toggle-input/ToggleInput.js";
|
|
15
15
|
import TooltipButton_default from "./components/tooltip-button/TooltipButton.js";
|
|
16
|
+
import { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots, ComponentType } from "vue-component-type-helpers";
|
|
16
17
|
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
export { Bubble_default as NBubble, ConfigProviders_default as NConfigProviders, CopyButton_default as NCopyButton, DataTablePlus_default as NDataTablePlus, FullLoading_default as NFullLoading, PresetForm_default as NPresetForm, PresetInput_default as NPresetInput, PresetPicker_default as NPresetPicker, PresetSelect_default as NPresetSelect, RemoteRequest_default as NRemoteRequest, SearchInput_default as NSearchInput, ToggleEditor_default as NToggleEditor, TooltipButton_default as NTooltipButton, BaseTransition_default as NTransition, TypeWriter_default as NTypeWriter };
|
|
18
|
+
export { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots, ComponentType, Bubble_default as NBubble, ConfigProviders_default as NConfigProviders, CopyButton_default as NCopyButton, DataTablePlus_default as NDataTablePlus, FullLoading_default as NFullLoading, PresetForm_default as NPresetForm, PresetInput_default as NPresetInput, PresetPicker_default as NPresetPicker, PresetSelect_default as NPresetSelect, RemoteRequest_default as NRemoteRequest, SearchInput_default as NSearchInput, ToggleInput_default as NToggleInput, TooltipButton_default as NTooltipButton, BaseTransition_default as NTransition, TypeWriter_default as NTypeWriter };
|
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.66",
|
|
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.25",
|
|
46
46
|
"vue-component-type-helpers": "^3.1.8",
|
|
47
47
|
"vue-hooks-plus": "^2.4.1",
|
|
48
|
+
"@oiij/markdown-it": "0.0.9",
|
|
48
49
|
"@oiij/css-render": "0.0.7",
|
|
49
|
-
"@oiij/use": "0.0.
|
|
50
|
-
"@oiij/markdown-it": "0.0.9"
|
|
50
|
+
"@oiij/use": "0.0.29"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/prismjs": "^1.26.5",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"vue-component-type-helpers": "^3.1.8",
|
|
62
62
|
"vue-hooks-plus": "^2.4.1",
|
|
63
63
|
"@oiij/css-render": "0.0.7",
|
|
64
|
-
"@oiij/
|
|
65
|
-
"@oiij/
|
|
64
|
+
"@oiij/use": "0.0.29",
|
|
65
|
+
"@oiij/markdown-it": "0.0.9"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Fragment, createBlock, createElementBlock, createTextVNode, defineComponent, mergeModels, mergeProps, nextTick, openBlock, ref, toDisplayString, unref, useModel, useTemplateRef } from "vue";
|
|
2
|
-
import { NInput } from "naive-ui";
|
|
3
|
-
|
|
4
|
-
//#region src/components/toggle-editor/ToggleEditor.vue
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "ToggleEditor",
|
|
7
|
-
props: /* @__PURE__ */ mergeModels({ inputProps: {} }, {
|
|
8
|
-
"value": {},
|
|
9
|
-
"valueModifiers": {}
|
|
10
|
-
}),
|
|
11
|
-
emits: ["update:value"],
|
|
12
|
-
setup(__props) {
|
|
13
|
-
const value = useModel(__props, "value");
|
|
14
|
-
const editorFlag = ref(false);
|
|
15
|
-
const inputRef = useTemplateRef("inputRef");
|
|
16
|
-
const inputValue = ref(value.value);
|
|
17
|
-
function onClick() {
|
|
18
|
-
editorFlag.value = true;
|
|
19
|
-
nextTick(() => {
|
|
20
|
-
inputRef.value?.focus();
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
function onChange() {
|
|
24
|
-
editorFlag.value = false;
|
|
25
|
-
value.value = inputValue.value;
|
|
26
|
-
}
|
|
27
|
-
return (_ctx, _cache) => {
|
|
28
|
-
return openBlock(), createElementBlock("div", { onClick }, [editorFlag.value ? (openBlock(), createBlock(unref(NInput), mergeProps({
|
|
29
|
-
key: 0,
|
|
30
|
-
ref_key: "inputRef",
|
|
31
|
-
ref: inputRef,
|
|
32
|
-
value: inputValue.value
|
|
33
|
-
}, __props.inputProps, {
|
|
34
|
-
"onUpdate:value": _cache[0] || (_cache[0] = (val) => inputValue.value = val),
|
|
35
|
-
onChange,
|
|
36
|
-
onBlur: onChange
|
|
37
|
-
}), null, 16, ["value"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(inputValue.value), 1)], 64))]);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
var ToggleEditor_default = _sfc_main;
|
|
42
|
-
|
|
43
|
-
//#endregion
|
|
44
|
-
export { ToggleEditor_default as default };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
|
-
import * as vue13 from "vue";
|
|
3
|
-
import { InputProps } from "naive-ui";
|
|
4
|
-
|
|
5
|
-
//#region src/components/toggle-editor/ToggleEditor.vue.d.ts
|
|
6
|
-
type __VLS_Props = {
|
|
7
|
-
inputProps?: InputProps & ClassStyle;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_ModelProps = {
|
|
10
|
-
'value'?: string;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
-
declare const __VLS_export: vue13.DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, vue13.ComponentOptionsMixin, vue13.ComponentOptionsMixin, {
|
|
14
|
-
"update:value": (value: string | undefined) => any;
|
|
15
|
-
}, string, vue13.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
-
"onUpdate:value"?: ((value: string | undefined) => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string, vue13.ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const _default: typeof __VLS_export;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { _default } from "./ToggleEditor.vue.js";
|