@oiij/naive-ui 0.0.67 → 0.0.68
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/_utils/index.js +2 -0
- package/dist/components/config-providers/ConfigProviders.js +4 -2
- package/dist/components/config-providers/ConfigProviders.vue.d.ts +6 -6
- package/dist/components/config-providers/index.d.ts +1 -1
- package/dist/components/config-providers/index.js +1 -0
- package/dist/components/copy-button/CopyButton.vue.d.ts +10 -10
- package/dist/components/copy-button/index.js +1 -0
- package/dist/components/data-table-plus/DataTablePlus.js +1 -0
- package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +43 -43
- package/dist/components/data-table-plus/index.js +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +28 -0
- package/dist/components/loading-provider/LoadingProvider.js +1 -0
- package/dist/components/loading-provider/LoadingProvider.vue.d.ts +11 -11
- package/dist/components/loading-provider/index.d.ts +4 -3
- package/dist/components/loading-provider/loading-provider.cssr.js +1 -0
- package/dist/components/preset-form/PresetForm.js +1 -0
- package/dist/components/preset-form/PresetForm.vue.d.ts +14 -14
- package/dist/components/preset-form/index.js +1 -0
- package/dist/components/preset-input/PresetInput.js +1 -0
- package/dist/components/preset-input/PresetInput.vue.d.ts +3 -3
- package/dist/components/preset-input/index.js +1 -0
- package/dist/components/preset-picker/PresetPicker.vue.d.ts +4 -4
- package/dist/components/preset-picker/index.js +1 -0
- package/dist/components/preset-select/PresetSelect.vue.d.ts +27 -27
- package/dist/components/preset-select/index.js +1 -0
- package/dist/components/remote-request/RemoteRequest.vue.d.ts +1 -1
- package/dist/components/remote-request/index.js +1 -0
- package/dist/components/search-input/SearchInput.vue.d.ts +12 -12
- package/dist/components/search-input/index.js +1 -0
- package/dist/components/toggle-input/ToggleInput.vue.d.ts +5 -5
- package/dist/components/toggle-input/index.js +1 -0
- package/dist/components/tooltip-button/TooltipButton.vue.d.ts +5 -5
- package/dist/components/tooltip-button/index.js +1 -0
- package/dist/components/transition/BaseTransition.vue.d.ts +6 -6
- package/dist/components/transition/index.js +1 -0
- package/dist/components/type-writer/TypeWriter.js +1 -0
- package/dist/components/type-writer/TypeWriter.vue.d.ts +5 -5
- package/dist/components/type-writer/index.js +1 -0
- package/dist/components/type-writer/type-writer.cssr.js +1 -0
- package/dist/components.d.ts +2 -2
- package/dist/components.js +1 -0
- package/dist/composables/index.js +4 -0
- package/dist/composables/useDataRequest.d.ts +7 -7
- package/dist/composables/useNaiveForm.d.ts +6 -6
- package/dist/index.js +1 -0
- package/package.json +4 -4
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import LoadingProvider_default from "../loading-provider/LoadingProvider.js";
|
|
2
|
+
import "../loading-provider/index.js";
|
|
2
3
|
import { useLoading } from "../../composables/useLoading.js";
|
|
4
|
+
import "../../composables/index.js";
|
|
3
5
|
import { createBlock, createCommentVNode, createVNode, defineComponent, guardReactiveProps, normalizeProps, onMounted, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
6
|
import { NConfigProvider, NDialogProvider, NGlobalStyle, NLoadingBarProvider, NMessageProvider, NModalProvider, NNotificationProvider, useDialog, useLoadingBar, useMessage, useModal, useNotification } from "naive-ui";
|
|
5
7
|
|
|
@@ -12,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
14
|
default: false
|
|
13
15
|
},
|
|
14
16
|
configProviderProps: {},
|
|
15
|
-
|
|
17
|
+
loadingBarProviderProps: {},
|
|
16
18
|
loadingProviderProps: {},
|
|
17
19
|
dialogProviderProps: {},
|
|
18
20
|
modalProviderProps: {},
|
|
@@ -40,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
42
|
});
|
|
41
43
|
return (_ctx, _cache) => {
|
|
42
44
|
return openBlock(), createBlock(unref(NConfigProvider), normalizeProps(guardReactiveProps(__props.configProviderProps)), {
|
|
43
|
-
default: withCtx(() => [createVNode(unref(NLoadingBarProvider), normalizeProps(guardReactiveProps(__props.
|
|
45
|
+
default: withCtx(() => [createVNode(unref(NLoadingBarProvider), normalizeProps(guardReactiveProps(__props.loadingBarProviderProps)), {
|
|
44
46
|
default: withCtx(() => [createVNode(unref(LoadingProvider_default), normalizeProps(guardReactiveProps(__props.loadingProviderProps)), {
|
|
45
47
|
default: withCtx(() => [createVNode(unref(NDialogProvider), normalizeProps(guardReactiveProps(__props.dialogProviderProps)), {
|
|
46
48
|
default: withCtx(() => [createVNode(unref(NModalProvider), normalizeProps(guardReactiveProps(__props.modalProviderProps)), {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import { LoadingProviderProps } from "../loading-provider/index.js";
|
|
3
3
|
import "../../components.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue20 from "vue";
|
|
5
5
|
import * as naive_ui3 from "naive-ui";
|
|
6
6
|
|
|
7
7
|
//#region src/components/config-providers/ConfigProviders.vue.d.ts
|
|
@@ -9,25 +9,25 @@ declare var __VLS_44: {};
|
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
default?: (props: typeof __VLS_44) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_base:
|
|
12
|
+
declare const __VLS_base: vue20.DefineComponent<{
|
|
13
13
|
globalStyle?: boolean;
|
|
14
14
|
configProviderProps?: naive_ui3.ConfigProviderProps & ClassStyle;
|
|
15
|
-
|
|
15
|
+
loadingBarProviderProps?: naive_ui3.LoadingBarProviderProps & ClassStyle;
|
|
16
16
|
loadingProviderProps?: LoadingProviderProps & ClassStyle;
|
|
17
17
|
dialogProviderProps?: naive_ui3.DialogProviderProps & ClassStyle;
|
|
18
18
|
modalProviderProps?: naive_ui3.ModalProviderProps & ClassStyle;
|
|
19
19
|
notificationProviderProps?: naive_ui3.NotificationProviderProps & ClassStyle;
|
|
20
20
|
messageProviderProps?: naive_ui3.MessageProviderProps & ClassStyle;
|
|
21
|
-
}, {}, {}, {}, {},
|
|
21
|
+
}, {}, {}, {}, {}, vue20.ComponentOptionsMixin, vue20.ComponentOptionsMixin, {}, string, vue20.PublicProps, Readonly<{
|
|
22
22
|
globalStyle?: boolean;
|
|
23
23
|
configProviderProps?: naive_ui3.ConfigProviderProps & ClassStyle;
|
|
24
|
-
|
|
24
|
+
loadingBarProviderProps?: naive_ui3.LoadingBarProviderProps & ClassStyle;
|
|
25
25
|
loadingProviderProps?: LoadingProviderProps & ClassStyle;
|
|
26
26
|
dialogProviderProps?: naive_ui3.DialogProviderProps & ClassStyle;
|
|
27
27
|
modalProviderProps?: naive_ui3.ModalProviderProps & ClassStyle;
|
|
28
28
|
notificationProviderProps?: naive_ui3.NotificationProviderProps & ClassStyle;
|
|
29
29
|
messageProviderProps?: naive_ui3.MessageProviderProps & ClassStyle;
|
|
30
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
30
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, vue20.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 & {
|
|
@@ -9,7 +9,7 @@ import { ConfigProviderProps, DialogProviderInst, DialogProviderProps, LoadingBa
|
|
|
9
9
|
type ConfigProvidersProps = {
|
|
10
10
|
globalStyle?: boolean;
|
|
11
11
|
configProviderProps?: ConfigProviderProps & ClassStyle;
|
|
12
|
-
|
|
12
|
+
loadingBarProviderProps?: LoadingBarProviderProps & ClassStyle;
|
|
13
13
|
loadingProviderProps?: LoadingProviderProps & ClassStyle;
|
|
14
14
|
dialogProviderProps?: DialogProviderProps & ClassStyle;
|
|
15
15
|
modalProviderProps?: ModalProviderProps & ClassStyle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ConfigProviders_default from "./ConfigProviders.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import "../../components.js";
|
|
3
3
|
import * as _vueuse_core8 from "@vueuse/core";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as vue49 from "vue";
|
|
5
|
+
import * as naive_ui23 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: vue49.DefineComponent<{
|
|
17
17
|
value?: string;
|
|
18
18
|
config?: _vueuse_core8.UseClipboardOptions<string | undefined>;
|
|
19
|
-
tooltipProps?:
|
|
20
|
-
buttonProps?:
|
|
21
|
-
}, {}, {}, {}, {},
|
|
19
|
+
tooltipProps?: naive_ui23.TooltipProps & ClassStyle;
|
|
20
|
+
buttonProps?: naive_ui23.ButtonProps & ClassStyle;
|
|
21
|
+
}, {}, {}, {}, {}, vue49.ComponentOptionsMixin, vue49.ComponentOptionsMixin, {} & {
|
|
22
22
|
copied: (v: string | undefined) => any;
|
|
23
|
-
}, string,
|
|
23
|
+
}, string, vue49.PublicProps, Readonly<{
|
|
24
24
|
value?: string;
|
|
25
25
|
config?: _vueuse_core8.UseClipboardOptions<string | undefined>;
|
|
26
|
-
tooltipProps?:
|
|
27
|
-
buttonProps?:
|
|
26
|
+
tooltipProps?: naive_ui23.TooltipProps & ClassStyle;
|
|
27
|
+
buttonProps?: naive_ui23.ButtonProps & ClassStyle;
|
|
28
28
|
}> & Readonly<{
|
|
29
29
|
onCopied?: ((v: string | undefined) => any) | undefined;
|
|
30
|
-
}>, {}, {}, {}, {}, string,
|
|
30
|
+
}>, {}, {}, {}, {}, string, vue49.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 & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import CopyButton_default from "./CopyButton.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useDataRequest } from "../../composables/useDataRequest.js";
|
|
2
2
|
import MageArrowUp_default from "../icons/MageArrowUp.js";
|
|
3
3
|
import SearchInput_default from "../search-input/SearchInput.js";
|
|
4
|
+
import "../search-input/index.js";
|
|
4
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, reactive, ref, renderSlot, toDisplayString, toRaw, toValue, unref, useTemplateRef, withCtx } from "vue";
|
|
5
6
|
import { NButton, NDataTable, NFlex, NPagination } from "naive-ui";
|
|
6
7
|
|
|
@@ -1,21 +1,19 @@
|
|
|
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_core10 from "@vueuse/core";
|
|
5
|
+
import * as vue59 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:
|
|
11
|
-
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
10
|
+
props: vue59.PublicProps & __VLS_PrettifyLocal<DataTablePlusProps<P, D, R> & {
|
|
12
11
|
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
12
|
+
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
13
13
|
onLoad?: ((row: R) => any) | undefined;
|
|
14
14
|
onScroll?: ((ev: Event) => any) | undefined;
|
|
15
15
|
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
16
16
|
onBefore?: ((params: P[]) => any) | undefined;
|
|
17
|
-
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
18
|
-
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
19
17
|
onClickRow?: ((row: R, index: number, event: MouseEvent, currentData: R[]) => any) | undefined;
|
|
20
18
|
onContextMenuRow?: ((row: R, index: number, event: MouseEvent, currentData: R[]) => any) | undefined;
|
|
21
19
|
onScrollBottom?: ((ev: Event) => any) | undefined;
|
|
@@ -26,10 +24,12 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
26
24
|
"onUpdate:expandedRowKeys"?: ((keys: (string | number)[], currentData: R[]) => any) | undefined;
|
|
27
25
|
"onUpdate:filters"?: ((filterState: DataTableFilterState, sourceColumn: DataTableBaseColumn) => any) | undefined;
|
|
28
26
|
"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: vue59.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: vue59.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_core10.EventHookOn<[P[]]>;
|
|
76
|
+
onSuccess: _vueuse_core10.EventHookOn<[D, P[]]>;
|
|
77
|
+
onError: _vueuse_core10.EventHookOn<[Error, P[]]>;
|
|
78
|
+
onFinally: _vueuse_core10.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: vue59.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_core10.EventHookOn<[P[]]>;
|
|
124
|
+
onSuccess: _vueuse_core10.EventHookOn<[D, P[]]>;
|
|
125
|
+
onError: _vueuse_core10.EventHookOn<[Error, P[]]>;
|
|
126
|
+
onFinally: _vueuse_core10.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: vue59.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_core10.EventHookOn<[P[]]>;
|
|
170
|
+
onSuccess: _vueuse_core10.EventHookOn<[D, P[]]>;
|
|
171
|
+
onError: _vueuse_core10.EventHookOn<[Error, P[]]>;
|
|
172
|
+
onFinally: _vueuse_core10.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: vue59.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_core10.EventHookOn<[P[]]>;
|
|
216
|
+
onSuccess: _vueuse_core10.EventHookOn<[D, P[]]>;
|
|
217
|
+
onError: _vueuse_core10.EventHookOn<[Error, P[]]>;
|
|
218
|
+
onFinally: _vueuse_core10.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: vue59.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_core10.EventHookOn<[P[]]>;
|
|
262
|
+
onSuccess: _vueuse_core10.EventHookOn<[D, P[]]>;
|
|
263
|
+
onError: _vueuse_core10.EventHookOn<[Error, P[]]>;
|
|
264
|
+
onFinally: _vueuse_core10.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: vue59.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_core10.EventHookOn<[P[]]>;
|
|
308
|
+
onSuccess: _vueuse_core10.EventHookOn<[D, P[]]>;
|
|
309
|
+
onError: _vueuse_core10.EventHookOn<[Error, P[]]>;
|
|
310
|
+
onFinally: _vueuse_core10.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: vue59.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_core10.EventHookOn<[P[]]>;
|
|
354
|
+
onSuccess: _vueuse_core10.EventHookOn<[D, P[]]>;
|
|
355
|
+
onError: _vueuse_core10.EventHookOn<[Error, P[]]>;
|
|
356
|
+
onFinally: _vueuse_core10.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
357
357
|
}) => any;
|
|
358
358
|
};
|
|
359
359
|
emit: DataTablePlusEmits<P, D, R>;
|
|
360
|
-
}>) =>
|
|
360
|
+
}>) => vue59.VNode & {
|
|
361
361
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
362
362
|
};
|
|
363
363
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import DataTablePlus_default from "./DataTablePlus.js";
|
|
@@ -6,7 +6,7 @@ import { SearchInputProps } from "./search-input/index.js";
|
|
|
6
6
|
import { _default as _default$2 } from "./data-table-plus/DataTablePlus.vue.js";
|
|
7
7
|
import { ClassStyle, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps } from "./data-table-plus/index.js";
|
|
8
8
|
import { _default as _default$3 } from "./loading-provider/LoadingProvider.vue.js";
|
|
9
|
-
import { LoadingProviderProps, loadingProviderInjectionKey } from "./loading-provider/index.js";
|
|
9
|
+
import { LoadingProviderInst, LoadingProviderProps, loadingProviderInjectionKey } from "./loading-provider/index.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";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import BaseTransition_default from "./transition/BaseTransition.js";
|
|
2
|
+
import "./transition/index.js";
|
|
3
|
+
import LoadingProvider_default from "./loading-provider/LoadingProvider.js";
|
|
4
|
+
import { loadingProviderInjectionKey } from "./loading-provider/index.js";
|
|
5
|
+
import ConfigProviders_default from "./config-providers/ConfigProviders.js";
|
|
6
|
+
import "./config-providers/index.js";
|
|
7
|
+
import CopyButton_default from "./copy-button/CopyButton.js";
|
|
8
|
+
import "./copy-button/index.js";
|
|
9
|
+
import SearchInput_default from "./search-input/SearchInput.js";
|
|
10
|
+
import "./search-input/index.js";
|
|
11
|
+
import DataTablePlus_default from "./data-table-plus/DataTablePlus.js";
|
|
12
|
+
import "./data-table-plus/index.js";
|
|
13
|
+
import PresetInput_default from "./preset-input/PresetInput.js";
|
|
14
|
+
import "./preset-input/index.js";
|
|
15
|
+
import PresetForm_default from "./preset-form/PresetForm.js";
|
|
16
|
+
import "./preset-form/index.js";
|
|
17
|
+
import PresetPicker_default from "./preset-picker/PresetPicker.js";
|
|
18
|
+
import "./preset-picker/index.js";
|
|
19
|
+
import PresetSelect_default from "./preset-select/PresetSelect.js";
|
|
20
|
+
import "./preset-select/index.js";
|
|
21
|
+
import RemoteRequest_default from "./remote-request/RemoteRequest.js";
|
|
22
|
+
import "./remote-request/index.js";
|
|
23
|
+
import ToggleInput_default from "./toggle-input/ToggleInput.js";
|
|
24
|
+
import "./toggle-input/index.js";
|
|
25
|
+
import TooltipButton_default from "./tooltip-button/TooltipButton.js";
|
|
26
|
+
import "./tooltip-button/index.js";
|
|
27
|
+
import TypeWriter_default from "./type-writer/TypeWriter.js";
|
|
28
|
+
import "./type-writer/index.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import BaseTransition_default from "../transition/BaseTransition.js";
|
|
2
|
+
import "../transition/index.js";
|
|
2
3
|
import { cName, loadingProviderCssr } from "./loading-provider.cssr.js";
|
|
3
4
|
import { loadingProviderInjectionKey } from "./index.js";
|
|
4
5
|
import { Fragment, Teleport, createBlock, createCommentVNode, createElementBlock, createSlots, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderSlot, unref, watchEffect, withCtx } from "vue";
|
|
@@ -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 vue40 from "vue";
|
|
4
|
+
import * as naive_ui21 from "naive-ui";
|
|
5
5
|
|
|
6
6
|
//#region src/components/loading-provider/LoadingProvider.vue.d.ts
|
|
7
7
|
declare var __VLS_26: {}, __VLS_29: {}, __VLS_31: {};
|
|
@@ -12,21 +12,21 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
} & {
|
|
13
13
|
default?: (props: typeof __VLS_31) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_base:
|
|
15
|
+
declare const __VLS_base: vue40.DefineComponent<{
|
|
16
16
|
show?: boolean;
|
|
17
|
-
appendTo?: string |
|
|
18
|
-
mask?: boolean |
|
|
17
|
+
appendTo?: string | vue40.RendererElement;
|
|
18
|
+
mask?: boolean | vue40.CSSProperties;
|
|
19
19
|
blur?: boolean;
|
|
20
20
|
duration?: number;
|
|
21
|
-
spinProps?: Omit<
|
|
22
|
-
}, {}, {}, {}, {},
|
|
21
|
+
spinProps?: Omit<naive_ui21.SpinProps, "show"> & ClassStyle;
|
|
22
|
+
}, {}, {}, {}, {}, vue40.ComponentOptionsMixin, vue40.ComponentOptionsMixin, {}, string, vue40.PublicProps, Readonly<{
|
|
23
23
|
show?: boolean;
|
|
24
|
-
appendTo?: string |
|
|
25
|
-
mask?: boolean |
|
|
24
|
+
appendTo?: string | vue40.RendererElement;
|
|
25
|
+
mask?: boolean | vue40.CSSProperties;
|
|
26
26
|
blur?: boolean;
|
|
27
27
|
duration?: number;
|
|
28
|
-
spinProps?: Omit<
|
|
29
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
28
|
+
spinProps?: Omit<naive_ui21.SpinProps, "show"> & ClassStyle;
|
|
29
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, vue40.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 & {
|
|
@@ -4,13 +4,14 @@ import { CSSProperties, InjectionKey, RendererElement } from "vue";
|
|
|
4
4
|
import { SpinProps } from "naive-ui";
|
|
5
5
|
|
|
6
6
|
//#region src/components/loading-provider/index.d.ts
|
|
7
|
-
|
|
7
|
+
type LoadingProviderInst = {
|
|
8
8
|
show: (options?: {
|
|
9
9
|
text?: string;
|
|
10
10
|
duration?: number;
|
|
11
11
|
}) => void;
|
|
12
12
|
hide: () => void;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
|
+
declare const loadingProviderInjectionKey: InjectionKey<LoadingProviderInst>;
|
|
14
15
|
type LoadingProviderProps = {
|
|
15
16
|
show?: boolean;
|
|
16
17
|
appendTo?: string | RendererElement;
|
|
@@ -20,4 +21,4 @@ type LoadingProviderProps = {
|
|
|
20
21
|
spinProps?: Omit<SpinProps, 'show'> & ClassStyle;
|
|
21
22
|
};
|
|
22
23
|
//#endregion
|
|
23
|
-
export { LoadingProviderProps, loadingProviderInjectionKey };
|
|
24
|
+
export { LoadingProviderInst, LoadingProviderProps, loadingProviderInjectionKey };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useNaiveForm } from "../../composables/useNaiveForm.js";
|
|
2
2
|
import PresetInput_default from "../preset-input/PresetInput.js";
|
|
3
|
+
import "../preset-input/index.js";
|
|
3
4
|
import { mergeRule } from "./_utils.js";
|
|
4
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toValue, unref, useTemplateRef, withCtx } from "vue";
|
|
5
6
|
import { NButton, NCollapseTransition, NDivider, NForm, NFormItem, NGi, NGrid } from "naive-ui";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { PresetFormExpose, PresetFormProps } from "./index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _vueuse_core38 from "@vueuse/core";
|
|
4
|
+
import * as vue69 from "vue";
|
|
5
5
|
import * as naive_ui27 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: vue69.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: vue69.ShallowUnwrapRef<PresetFormExpose<V>>) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
19
19
|
header?: (props: {
|
|
@@ -21,8 +21,8 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
21
21
|
formValue: V;
|
|
22
22
|
formRules: Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
|
|
23
23
|
formProps: {
|
|
24
|
-
model:
|
|
25
|
-
rules:
|
|
24
|
+
model: vue69.Reactive<V>;
|
|
25
|
+
rules: vue69.Reactive<Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>>;
|
|
26
26
|
};
|
|
27
27
|
setValue: (_value: Partial<V>) => void;
|
|
28
28
|
validate: () => Promise<{
|
|
@@ -32,7 +32,7 @@ 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_core38.EventHookOn<[V]>;
|
|
36
36
|
}) => any;
|
|
37
37
|
} & {
|
|
38
38
|
default?: (props: {
|
|
@@ -40,8 +40,8 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
40
40
|
formValue: V;
|
|
41
41
|
formRules: Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
|
|
42
42
|
formProps: {
|
|
43
|
-
model:
|
|
44
|
-
rules:
|
|
43
|
+
model: vue69.Reactive<V>;
|
|
44
|
+
rules: vue69.Reactive<Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>>;
|
|
45
45
|
};
|
|
46
46
|
setValue: (_value: Partial<V>) => void;
|
|
47
47
|
validate: () => Promise<{
|
|
@@ -51,7 +51,7 @@ 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_core38.EventHookOn<[V]>;
|
|
55
55
|
}) => any;
|
|
56
56
|
} & {
|
|
57
57
|
footer?: (props: {
|
|
@@ -59,8 +59,8 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
59
59
|
formValue: V;
|
|
60
60
|
formRules: Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
|
|
61
61
|
formProps: {
|
|
62
|
-
model:
|
|
63
|
-
rules:
|
|
62
|
+
model: vue69.Reactive<V>;
|
|
63
|
+
rules: vue69.Reactive<Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.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_core38.EventHookOn<[V]>;
|
|
74
74
|
}) => any;
|
|
75
75
|
};
|
|
76
76
|
emit: (e: "validated", val: V) => void;
|
|
77
|
-
}>) =>
|
|
77
|
+
}>) => vue69.VNode & {
|
|
78
78
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
79
79
|
};
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import PresetForm_default from "./PresetForm.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import SearchInput_default from "../search-input/SearchInput.js";
|
|
2
|
+
import "../search-input/index.js";
|
|
2
3
|
import { createBlock, defineComponent, h, openBlock, resolveDynamicComponent } from "vue";
|
|
3
4
|
import { NButton, NCheckbox, NCheckboxGroup, NColorPicker, NDatePicker, NDivider, NDynamicTags, NInput, NInputNumber, NRadio, NRadioGroup, NRate, NSelect, NSlider, NSwitch, NTimePicker } from "naive-ui";
|
|
4
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PresetInputProps } from "./index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue18 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: vue18.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
|
+
}>) => vue18.VNode & {
|
|
16
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import PresetInput_default from "./PresetInput.js";
|
|
@@ -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 vue81 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: vue81.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: vue81.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
|
+
}>) => vue81.VNode & {
|
|
58
58
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
59
59
|
};
|
|
60
60
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import PresetPicker_default from "./PresetPicker.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
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_core41 from "@vueuse/core";
|
|
4
|
+
import * as vue78 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:
|
|
10
|
-
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
9
|
+
props: vue78.PublicProps & __VLS_PrettifyLocal<PresetSelectProps<V, P, D, R> & {
|
|
11
10
|
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
11
|
+
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
12
12
|
onClear?: (() => any) | undefined;
|
|
13
13
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
14
14
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
|
@@ -17,13 +17,13 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
17
17
|
onSearch?: ((value: string) => any) | undefined;
|
|
18
18
|
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
19
19
|
onBefore?: ((params: P[]) => any) | undefined;
|
|
20
|
-
onCreate?: ((label: string) => any) | undefined;
|
|
21
20
|
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
22
21
|
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
22
|
+
onCreate?: ((label: string) => 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: vue78.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_core41.EventHookOn<[P[]]>;
|
|
55
|
+
onSuccess: _vueuse_core41.EventHookOn<[D, P[]]>;
|
|
56
|
+
onError: _vueuse_core41.EventHookOn<[Error, P[]]>;
|
|
57
|
+
onFinally: _vueuse_core41.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_core41.EventHookOn<[P[]]>;
|
|
86
|
+
onSuccess: _vueuse_core41.EventHookOn<[D, P[]]>;
|
|
87
|
+
onError: _vueuse_core41.EventHookOn<[Error, P[]]>;
|
|
88
|
+
onFinally: _vueuse_core41.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_core41.EventHookOn<[P[]]>;
|
|
117
|
+
onSuccess: _vueuse_core41.EventHookOn<[D, P[]]>;
|
|
118
|
+
onError: _vueuse_core41.EventHookOn<[Error, P[]]>;
|
|
119
|
+
onFinally: _vueuse_core41.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_core41.EventHookOn<[P[]]>;
|
|
148
|
+
onSuccess: _vueuse_core41.EventHookOn<[D, P[]]>;
|
|
149
|
+
onError: _vueuse_core41.EventHookOn<[Error, P[]]>;
|
|
150
|
+
onFinally: _vueuse_core41.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_core41.EventHookOn<[P[]]>;
|
|
179
|
+
onSuccess: _vueuse_core41.EventHookOn<[D, P[]]>;
|
|
180
|
+
onError: _vueuse_core41.EventHookOn<[Error, P[]]>;
|
|
181
|
+
onFinally: _vueuse_core41.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
182
182
|
}) => any;
|
|
183
183
|
};
|
|
184
184
|
emit: PresetSelectEmits<V, P, D, R>;
|
|
185
|
-
}>) =>
|
|
185
|
+
}>) => vue78.VNode & {
|
|
186
186
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
187
187
|
};
|
|
188
188
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import PresetSelect_default from "./PresetSelect.js";
|
|
@@ -6,8 +6,8 @@ import * as vue32 from "vue";
|
|
|
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: vue32.PublicProps & __VLS_PrettifyLocal<RemoteRequestProps<P, D> & {
|
|
9
|
-
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
10
9
|
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
10
|
+
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
11
11
|
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
12
12
|
onBefore?: ((params: P[]) => any) | undefined;
|
|
13
13
|
}> & (typeof globalThis extends {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import RemoteRequest_default from "./RemoteRequest.js";
|
|
@@ -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 vue35 from "vue";
|
|
4
|
+
import * as naive_ui15 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: vue35.DefineComponent<{
|
|
21
21
|
value?: string | null;
|
|
22
|
-
type?:
|
|
22
|
+
type?: naive_ui15.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_ui15.InputProps & ClassStyle;
|
|
28
|
+
buttonProps?: naive_ui15.ButtonProps & ClassStyle;
|
|
29
|
+
}, {}, {}, {}, {}, vue35.ComponentOptionsMixin, vue35.ComponentOptionsMixin, {} & {
|
|
30
30
|
"update:value": (v: string | null | undefined) => any;
|
|
31
|
-
}, string,
|
|
31
|
+
}, string, vue35.PublicProps, Readonly<{
|
|
32
32
|
value?: string | null;
|
|
33
|
-
type?:
|
|
33
|
+
type?: naive_ui15.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_ui15.InputProps & ClassStyle;
|
|
39
|
+
buttonProps?: naive_ui15.ButtonProps & ClassStyle;
|
|
40
40
|
}> & Readonly<{
|
|
41
41
|
"onUpdate:value"?: ((v: string | null | undefined) => any) | undefined;
|
|
42
|
-
}>, {}, {}, {}, {}, string,
|
|
42
|
+
}>, {}, {}, {}, {}, string, vue35.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 @@
|
|
|
1
|
+
import SearchInput_default from "./SearchInput.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue13 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: vue13.DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, vue13.ComponentOptionsMixin, vue13.ComponentOptionsMixin, {
|
|
31
31
|
"update:value": (value: string | number | undefined) => any;
|
|
32
32
|
} & {
|
|
33
33
|
trigger: () => any;
|
|
34
|
-
}, string,
|
|
35
|
-
"onUpdate:value"?: ((value: string | number | undefined) => any) | undefined;
|
|
34
|
+
}, string, vue13.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
35
|
onTrigger?: (() => any) | undefined;
|
|
37
|
-
|
|
36
|
+
"onUpdate:value"?: ((value: string | number | undefined) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, vue13.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 & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ToggleInput_default from "./ToggleInput.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import "../../components.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue8 from "vue";
|
|
4
4
|
import * as naive_ui0 from "naive-ui";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tooltip-button/TooltipButton.vue.d.ts
|
|
@@ -12,19 +12,19 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
} & {
|
|
13
13
|
tooltip?: (props: typeof __VLS_22) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_base:
|
|
15
|
+
declare const __VLS_base: vue8.DefineComponent<{
|
|
16
16
|
tooltip?: string;
|
|
17
17
|
tooltipProps?: naive_ui0.TooltipProps & ClassStyle;
|
|
18
18
|
buttonProps?: naive_ui0.ButtonProps & ClassStyle;
|
|
19
|
-
}, {}, {}, {}, {},
|
|
19
|
+
}, {}, {}, {}, {}, vue8.ComponentOptionsMixin, vue8.ComponentOptionsMixin, {} & {
|
|
20
20
|
click: (ev: MouseEvent) => any;
|
|
21
|
-
}, string,
|
|
21
|
+
}, string, vue8.PublicProps, Readonly<{
|
|
22
22
|
tooltip?: string;
|
|
23
23
|
tooltipProps?: naive_ui0.TooltipProps & ClassStyle;
|
|
24
24
|
buttonProps?: naive_ui0.ButtonProps & ClassStyle;
|
|
25
25
|
}> & Readonly<{
|
|
26
26
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
27
|
-
}>, {}, {}, {}, {}, string,
|
|
27
|
+
}>, {}, {}, {}, {}, string, vue8.ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
30
30
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import TooltipButton_default from "./TooltipButton.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 vue25 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: vue25.DefineComponent<{
|
|
11
11
|
name?: string;
|
|
12
|
-
transitionProps?:
|
|
13
|
-
}, {}, {}, {}, {},
|
|
12
|
+
transitionProps?: vue25.TransitionProps & ClassStyle;
|
|
13
|
+
}, {}, {}, {}, {}, vue25.ComponentOptionsMixin, vue25.ComponentOptionsMixin, {}, string, vue25.PublicProps, Readonly<{
|
|
14
14
|
name?: string;
|
|
15
|
-
transitionProps?:
|
|
16
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
15
|
+
transitionProps?: vue25.TransitionProps & ClassStyle;
|
|
16
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, vue25.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 & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import BaseTransition_default from "./BaseTransition.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { highlight } from "../_utils/prismjs.js";
|
|
2
|
+
import "../_utils/index.js";
|
|
2
3
|
import { cName, typeWriterCssr } from "./type-writer.cssr.js";
|
|
3
4
|
import { computed, createBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, unref, withCtx } from "vue";
|
|
4
5
|
import { useStyle } from "@oiij/css-render";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue54 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/components/type-writer/TypeWriter.vue.d.ts
|
|
4
|
-
declare const __VLS_export:
|
|
4
|
+
declare const __VLS_export: vue54.DefineComponent<{
|
|
5
5
|
value?: string;
|
|
6
6
|
typing?: boolean;
|
|
7
7
|
markdown?: boolean;
|
|
8
8
|
step?: number;
|
|
9
9
|
interval?: number;
|
|
10
10
|
suffix?: string;
|
|
11
|
-
}, {}, {}, {}, {},
|
|
11
|
+
}, {}, {}, {}, {}, vue54.ComponentOptionsMixin, vue54.ComponentOptionsMixin, {} & {
|
|
12
12
|
start: () => any;
|
|
13
13
|
update: (v: {
|
|
14
14
|
index: number;
|
|
15
15
|
value: string;
|
|
16
16
|
}) => any;
|
|
17
17
|
stop: (v: string) => any;
|
|
18
|
-
}, string,
|
|
18
|
+
}, string, vue54.PublicProps, Readonly<{
|
|
19
19
|
value?: string;
|
|
20
20
|
typing?: boolean;
|
|
21
21
|
markdown?: boolean;
|
|
@@ -29,7 +29,7 @@ declare const __VLS_export: vue79.DefineComponent<{
|
|
|
29
29
|
value: string;
|
|
30
30
|
}) => any) | undefined;
|
|
31
31
|
onStop?: ((v: string) => any) | undefined;
|
|
32
|
-
}>, {}, {}, {}, {}, string,
|
|
32
|
+
}>, {}, {}, {}, {}, string, vue54.ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import TypeWriter_default from "./TypeWriter.js";
|
package/dist/components.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { SearchInputProps } from "./components/search-input/index.js";
|
|
|
6
6
|
import { _default as _default$2 } from "./components/data-table-plus/DataTablePlus.vue.js";
|
|
7
7
|
import { ClassStyle, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps } from "./components/data-table-plus/index.js";
|
|
8
8
|
import { _default as _default$3 } from "./components/loading-provider/LoadingProvider.vue.js";
|
|
9
|
-
import { LoadingProviderProps, loadingProviderInjectionKey } from "./components/loading-provider/index.js";
|
|
9
|
+
import { LoadingProviderInst, LoadingProviderProps, loadingProviderInjectionKey } from "./components/loading-provider/index.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";
|
|
@@ -28,4 +28,4 @@ import { _default as _default$13 } from "./components/type-writer/TypeWriter.vue
|
|
|
28
28
|
import { TypeWriterProps } from "./components/type-writer/index.js";
|
|
29
29
|
import "./components/index.js";
|
|
30
30
|
import { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots } from "vue-component-type-helpers";
|
|
31
|
-
export { ArrayAwareType, ClassStyle, ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots, ConfigProvidersProps, CopyButtonProps, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps, LoadingProviderProps, _default as NConfigProviders, _default$1 as NCopyButton, _default$2 as NDataTablePlus, _default$3 as NLoadingProvider, _default$4 as NPresetForm, _default$5 as NPresetInput, _default$6 as NPresetPicker, _default$7 as NPresetSelect, _default$8 as NRemoteRequest, _default$9 as NSearchInput, _default$10 as NToggleInput, _default$11 as NTooltipButton, _default$12 as NTransition, _default$13 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, loadingProviderInjectionKey };
|
|
31
|
+
export { ArrayAwareType, ClassStyle, ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots, ConfigProvidersProps, CopyButtonProps, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps, LoadingProviderInst, LoadingProviderProps, _default as NConfigProviders, _default$1 as NCopyButton, _default$2 as NDataTablePlus, _default$3 as NLoadingProvider, _default$4 as NPresetForm, _default$5 as NPresetInput, _default$6 as NPresetPicker, _default$7 as NPresetSelect, _default$8 as NRemoteRequest, _default$9 as NSearchInput, _default$10 as NToggleInput, _default$11 as NTooltipButton, _default$12 as NTransition, _default$13 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, loadingProviderInjectionKey };
|
package/dist/components.js
CHANGED
|
@@ -13,6 +13,7 @@ import RemoteRequest_default from "./components/remote-request/RemoteRequest.js"
|
|
|
13
13
|
import ToggleInput_default from "./components/toggle-input/ToggleInput.js";
|
|
14
14
|
import TooltipButton_default from "./components/tooltip-button/TooltipButton.js";
|
|
15
15
|
import TypeWriter_default from "./components/type-writer/TypeWriter.js";
|
|
16
|
+
import "./components/index.js";
|
|
16
17
|
import { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots } from "vue-component-type-helpers";
|
|
17
18
|
|
|
18
19
|
export { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots, ConfigProviders_default as NConfigProviders, CopyButton_default as NCopyButton, DataTablePlus_default as NDataTablePlus, LoadingProvider_default as NLoadingProvider, 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, loadingProviderInjectionKey };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _vueuse_core0 from "@vueuse/core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue2 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,12 +24,12 @@ 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<vue2.Ref<boolean, boolean>>;
|
|
28
|
+
data: Readonly<vue2.Ref<D | undefined, D | undefined>>;
|
|
29
|
+
error: Readonly<vue2.Ref<Error | undefined, Error | undefined>>;
|
|
30
|
+
params: Readonly<vue2.Ref<[] | P[], [] | P[]>>;
|
|
31
|
+
list: vue2.ComputedRef<R[]>;
|
|
32
|
+
pagination: vue2.Ref<{
|
|
33
33
|
page: number;
|
|
34
34
|
pageSize: number;
|
|
35
35
|
itemCount: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataObject } from "./useDataRequest.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _vueuse_core0 from "@vueuse/core";
|
|
3
|
+
import * as vue0 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<vue0.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: vue0.Reactive<T>;
|
|
25
|
+
rules: vue0.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_core0.EventHookOn<[T]>;
|
|
36
36
|
};
|
|
37
37
|
type NaiveFormReturns<T extends DataObject = DataObject> = ReturnType<typeof useNaiveForm<T>>;
|
|
38
38
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -2,5 +2,6 @@ import { useDataRequest } from "./composables/useDataRequest.js";
|
|
|
2
2
|
import { useLoading } from "./composables/useLoading.js";
|
|
3
3
|
import { useNaiveForm } from "./composables/useNaiveForm.js";
|
|
4
4
|
import { useNaiveTheme } from "./composables/useNaiveTheme.js";
|
|
5
|
+
import "./composables/index.js";
|
|
5
6
|
|
|
6
7
|
export { useDataRequest, useLoading, useNaiveForm, useNaiveTheme };
|
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.68",
|
|
5
5
|
"description": "Some Composable Functions And Components for Vue 3",
|
|
6
6
|
"author": "oiij",
|
|
7
7
|
"license": "MIT",
|
|
@@ -45,8 +45,8 @@
|
|
|
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/css-render": "0.0.8",
|
|
49
48
|
"@oiij/markdown-it": "0.0.10",
|
|
49
|
+
"@oiij/css-render": "0.0.8",
|
|
50
50
|
"@oiij/use": "0.0.30"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"vue": "^3.5.26",
|
|
61
61
|
"vue-component-type-helpers": "^3.2.1",
|
|
62
62
|
"vue-hooks-plus": "^2.4.1",
|
|
63
|
-
"@oiij/
|
|
63
|
+
"@oiij/markdown-it": "0.0.10",
|
|
64
64
|
"@oiij/css-render": "0.0.8",
|
|
65
|
-
"@oiij/
|
|
65
|
+
"@oiij/use": "0.0.30"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|