@oiij/naive-ui 0.0.66 → 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 +13 -19
- package/dist/components/config-providers/ConfigProviders.vue.d.ts +11 -11
- package/dist/components/config-providers/index.d.ts +7 -9
- package/dist/components/config-providers/index.js +1 -0
- package/dist/components/copy-button/CopyButton.vue.d.ts +13 -13
- 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 +44 -44
- package/dist/components/data-table-plus/index.js +1 -0
- package/dist/components/index.d.ts +17 -19
- package/dist/components/index.js +28 -0
- package/dist/components/loading-provider/LoadingProvider.js +79 -0
- package/dist/components/loading-provider/LoadingProvider.vue.d.ts +38 -0
- package/dist/components/loading-provider/index.d.ts +24 -0
- package/dist/components/loading-provider/index.js +7 -0
- package/dist/components/{full-loading/full-loading.cssr.js → loading-provider/loading-provider.cssr.js} +6 -5
- package/dist/components/preset-form/PresetForm.js +1 -0
- package/dist/components/preset-form/PresetForm.vue.d.ts +19 -19
- 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 +4 -4
- package/dist/components/preset-input/index.js +1 -0
- package/dist/components/preset-picker/PresetPicker.js +1 -1
- package/dist/components/preset-picker/PresetPicker.vue.d.ts +5 -5
- package/dist/components/preset-picker/index.js +1 -0
- package/dist/components/preset-select/PresetSelect.vue.d.ts +28 -28
- package/dist/components/preset-select/index.js +1 -0
- package/dist/components/remote-request/RemoteRequest.vue.d.ts +11 -11
- 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/index.js +1 -0
- 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 +2 -1
- 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 +19 -21
- package/dist/components.js +6 -5
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.js +4 -0
- package/dist/composables/useDataRequest.d.ts +7 -7
- package/dist/composables/useLoading.d.ts +10 -0
- package/dist/composables/useLoading.js +10 -0
- package/dist/composables/useNaiveForm.d.ts +6 -6
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/package.json +11 -11
- package/dist/components/bubble/Bubble.js +0 -67
- package/dist/components/bubble/Bubble.vue.d.ts +0 -54
- package/dist/components/bubble/bubble.cssr.js +0 -23
- package/dist/components/bubble/index.d.ts +0 -20
- package/dist/components/full-loading/FullLoading.js +0 -70
- package/dist/components/full-loading/FullLoading.vue.d.ts +0 -38
- package/dist/components/full-loading/index.d.ts +0 -17
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import LoadingProvider_default from "../loading-provider/LoadingProvider.js";
|
|
2
|
+
import "../loading-provider/index.js";
|
|
3
|
+
import { useLoading } from "../../composables/useLoading.js";
|
|
4
|
+
import "../../composables/index.js";
|
|
5
|
+
import { createBlock, createCommentVNode, createVNode, defineComponent, guardReactiveProps, normalizeProps, onMounted, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
6
|
import { NConfigProvider, NDialogProvider, NGlobalStyle, NLoadingBarProvider, NMessageProvider, NModalProvider, NNotificationProvider, useDialog, useLoadingBar, useMessage, useModal, useNotification } from "naive-ui";
|
|
4
7
|
|
|
5
8
|
//#region src/components/config-providers/ConfigProviders.vue
|
|
@@ -11,29 +14,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
14
|
default: false
|
|
12
15
|
},
|
|
13
16
|
configProviderProps: {},
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
loadingBarProviderProps: {},
|
|
18
|
+
loadingProviderProps: {},
|
|
16
19
|
dialogProviderProps: {},
|
|
17
20
|
modalProviderProps: {},
|
|
18
21
|
notificationProviderProps: {},
|
|
19
22
|
messageProviderProps: {}
|
|
20
23
|
},
|
|
21
24
|
setup(__props) {
|
|
22
|
-
const globalLoading = ref(false);
|
|
23
25
|
function registerNaiveTools() {
|
|
24
26
|
window.$dialog = useDialog();
|
|
25
27
|
window.$loadingBar = useLoadingBar();
|
|
26
28
|
window.$message = useMessage();
|
|
27
29
|
window.$modal = useModal();
|
|
28
30
|
window.$notification = useNotification();
|
|
29
|
-
window.$loading =
|
|
30
|
-
start: () => {
|
|
31
|
-
globalLoading.value = true;
|
|
32
|
-
},
|
|
33
|
-
finish: () => {
|
|
34
|
-
globalLoading.value = false;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
31
|
+
window.$loading = useLoading();
|
|
37
32
|
}
|
|
38
33
|
const NaiveProviderContent = defineComponent({
|
|
39
34
|
setup() {
|
|
@@ -47,8 +42,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
42
|
});
|
|
48
43
|
return (_ctx, _cache) => {
|
|
49
44
|
return openBlock(), createBlock(unref(NConfigProvider), normalizeProps(guardReactiveProps(__props.configProviderProps)), {
|
|
50
|
-
default: withCtx(() => [
|
|
51
|
-
createVNode(unref(
|
|
45
|
+
default: withCtx(() => [createVNode(unref(NLoadingBarProvider), normalizeProps(guardReactiveProps(__props.loadingBarProviderProps)), {
|
|
46
|
+
default: withCtx(() => [createVNode(unref(LoadingProvider_default), normalizeProps(guardReactiveProps(__props.loadingProviderProps)), {
|
|
52
47
|
default: withCtx(() => [createVNode(unref(NDialogProvider), normalizeProps(guardReactiveProps(__props.dialogProviderProps)), {
|
|
53
48
|
default: withCtx(() => [createVNode(unref(NModalProvider), normalizeProps(guardReactiveProps(__props.modalProviderProps)), {
|
|
54
49
|
default: withCtx(() => [createVNode(unref(NNotificationProvider), normalizeProps(guardReactiveProps(__props.notificationProviderProps)), {
|
|
@@ -63,10 +58,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
58
|
_: 3
|
|
64
59
|
}, 16)]),
|
|
65
60
|
_: 3
|
|
66
|
-
}, 16),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
]),
|
|
61
|
+
}, 16)]),
|
|
62
|
+
_: 3
|
|
63
|
+
}, 16), __props.globalStyle ? (openBlock(), createBlock(unref(NGlobalStyle), { key: 0 })) : createCommentVNode("v-if", true)]),
|
|
70
64
|
_: 3
|
|
71
65
|
}, 16);
|
|
72
66
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
|
-
import {
|
|
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
|
|
8
|
-
declare var
|
|
8
|
+
declare var __VLS_44: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
|
-
default?: (props: typeof
|
|
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
|
-
|
|
16
|
-
|
|
15
|
+
loadingBarProviderProps?: naive_ui3.LoadingBarProviderProps & ClassStyle;
|
|
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
|
-
|
|
25
|
-
|
|
24
|
+
loadingBarProviderProps?: naive_ui3.LoadingBarProviderProps & ClassStyle;
|
|
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 & {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { useLoading } from "../../composables/useLoading.js";
|
|
2
|
+
import "../../composables/index.js";
|
|
1
3
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
|
-
import {
|
|
4
|
+
import { LoadingProviderProps } from "../loading-provider/index.js";
|
|
3
5
|
import { _default } from "./ConfigProviders.vue.js";
|
|
4
6
|
import { ConfigProviderProps, DialogProviderInst, DialogProviderProps, LoadingBarProviderInst, LoadingBarProviderProps, MessageProviderInst, MessageProviderProps, ModalProviderInst, ModalProviderProps, NotificationProviderInst, NotificationProviderProps } from "naive-ui";
|
|
5
7
|
|
|
@@ -7,21 +9,17 @@ import { ConfigProviderProps, DialogProviderInst, DialogProviderProps, LoadingBa
|
|
|
7
9
|
type ConfigProvidersProps = {
|
|
8
10
|
globalStyle?: boolean;
|
|
9
11
|
configProviderProps?: ConfigProviderProps & ClassStyle;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
loadingBarProviderProps?: LoadingBarProviderProps & ClassStyle;
|
|
13
|
+
loadingProviderProps?: LoadingProviderProps & ClassStyle;
|
|
12
14
|
dialogProviderProps?: DialogProviderProps & ClassStyle;
|
|
13
15
|
modalProviderProps?: ModalProviderProps & ClassStyle;
|
|
14
16
|
notificationProviderProps?: NotificationProviderProps & ClassStyle;
|
|
15
17
|
messageProviderProps?: MessageProviderProps & ClassStyle;
|
|
16
18
|
};
|
|
17
|
-
type LoadingIns = {
|
|
18
|
-
start: () => void;
|
|
19
|
-
finish: () => void;
|
|
20
|
-
};
|
|
21
19
|
declare global {
|
|
22
20
|
interface Window {
|
|
23
21
|
$dialog: DialogProviderInst;
|
|
24
|
-
$loading:
|
|
22
|
+
$loading: ReturnType<typeof useLoading>;
|
|
25
23
|
$loadingBar: LoadingBarProviderInst;
|
|
26
24
|
$message: MessageProviderInst;
|
|
27
25
|
$modal: ModalProviderInst;
|
|
@@ -29,4 +27,4 @@ declare global {
|
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
29
|
//#endregion
|
|
32
|
-
export { ConfigProvidersProps
|
|
30
|
+
export { ConfigProvidersProps };
|
|
@@ -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
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
3
|
+
import * as _vueuse_core8 from "@vueuse/core";
|
|
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
|
-
config?:
|
|
19
|
-
tooltipProps?:
|
|
20
|
-
buttonProps?:
|
|
21
|
-
}, {}, {}, {}, {},
|
|
18
|
+
config?: _vueuse_core8.UseClipboardOptions<string | undefined>;
|
|
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
|
-
config?:
|
|
26
|
-
tooltipProps?:
|
|
27
|
-
buttonProps?:
|
|
25
|
+
config?: _vueuse_core8.UseClipboardOptions<string | undefined>;
|
|
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: __VLS_PrettifyLocal<DataTablePlusProps<P, D, R> & {
|
|
10
|
+
props: vue59.PublicProps & __VLS_PrettifyLocal<DataTablePlusProps<P, D, R> & {
|
|
11
11
|
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
12
12
|
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
13
13
|
onLoad?: ((row: R) => any) | undefined;
|
|
14
14
|
onScroll?: ((ev: Event) => any) | undefined;
|
|
15
|
-
onBefore?: ((params: P[]) => any) | undefined;
|
|
16
|
-
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
17
|
-
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
18
15
|
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
16
|
+
onBefore?: ((params: P[]) => 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;
|
|
29
|
-
|
|
27
|
+
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
28
|
+
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
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";
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { _default as _default$1 } from "./remote-request/RemoteRequest.vue.js";
|
|
1
|
+
import { NaiveFormRules } from "../composables/useNaiveForm.js";
|
|
2
|
+
import { _default } from "./remote-request/RemoteRequest.vue.js";
|
|
4
3
|
import { RemoteRequestEmits, RemoteRequestExpose, RemoteRequestFields, RemoteRequestInst, RemoteRequestProps } from "./remote-request/index.js";
|
|
5
|
-
import { _default as _default$
|
|
4
|
+
import { _default as _default$1 } from "./search-input/SearchInput.vue.js";
|
|
6
5
|
import { SearchInputProps } from "./search-input/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import { _default as _default$3 } from "./data-table-plus/DataTablePlus.vue.js";
|
|
6
|
+
import { _default as _default$2 } from "./data-table-plus/DataTablePlus.vue.js";
|
|
9
7
|
import { ClassStyle, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps } from "./data-table-plus/index.js";
|
|
10
|
-
import { _default as _default$
|
|
11
|
-
import {
|
|
12
|
-
import { _default as _default$
|
|
13
|
-
import { ConfigProvidersProps
|
|
14
|
-
import { _default as _default$
|
|
8
|
+
import { _default as _default$3 } from "./loading-provider/LoadingProvider.vue.js";
|
|
9
|
+
import { LoadingProviderInst, LoadingProviderProps, loadingProviderInjectionKey } from "./loading-provider/index.js";
|
|
10
|
+
import { _default as _default$4 } from "./config-providers/ConfigProviders.vue.js";
|
|
11
|
+
import { ConfigProvidersProps } from "./config-providers/index.js";
|
|
12
|
+
import { _default as _default$5 } from "./copy-button/CopyButton.vue.js";
|
|
15
13
|
import { CopyButtonProps } from "./copy-button/index.js";
|
|
16
|
-
import { _default as _default$
|
|
14
|
+
import { _default as _default$6 } from "./preset-input/PresetInput.vue.js";
|
|
17
15
|
import { PresetInputOptions, PresetInputProps, PresetInputType } from "./preset-input/index.js";
|
|
18
|
-
import { _default as _default$
|
|
16
|
+
import { _default as _default$7 } from "./preset-form/PresetForm.vue.js";
|
|
19
17
|
import { PresetFormExpose, PresetFormInst, PresetFormOptionItem, PresetFormOptions, PresetFormProps } from "./preset-form/index.js";
|
|
20
|
-
import { _default as _default$
|
|
18
|
+
import { _default as _default$8 } from "./preset-picker/PresetPicker.vue.js";
|
|
21
19
|
import { PresetPickerEmits, PresetPickerExpose, PresetPickerInst, PresetPickerProps, PresetPickerValue } from "./preset-picker/index.js";
|
|
22
|
-
import { _default as _default$
|
|
20
|
+
import { _default as _default$9 } from "./preset-select/PresetSelect.vue.js";
|
|
23
21
|
import { ArrayAwareType, OptionFormat, PresetSelectEmits, PresetSelectExpose, PresetSelectFields, PresetSelectInst, PresetSelectProps, PresetSelectValue } from "./preset-select/index.js";
|
|
24
|
-
import { _default as _default$
|
|
22
|
+
import { _default as _default$10 } from "./toggle-input/ToggleInput.vue.js";
|
|
25
23
|
import "./toggle-input/index.js";
|
|
26
|
-
import { _default as _default$
|
|
24
|
+
import { _default as _default$11 } from "./tooltip-button/TooltipButton.vue.js";
|
|
27
25
|
import { TooltipButtonProps } from "./tooltip-button/index.js";
|
|
28
|
-
import { _default as _default$
|
|
26
|
+
import { _default as _default$12 } from "./transition/BaseTransition.vue.js";
|
|
29
27
|
import { TransitionProps } from "./transition/index.js";
|
|
30
|
-
import { _default as _default$
|
|
28
|
+
import { _default as _default$13 } from "./type-writer/TypeWriter.vue.js";
|
|
31
29
|
import { TypeWriterProps } from "./type-writer/index.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";
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import BaseTransition_default from "../transition/BaseTransition.js";
|
|
2
|
+
import "../transition/index.js";
|
|
3
|
+
import { cName, loadingProviderCssr } from "./loading-provider.cssr.js";
|
|
4
|
+
import { loadingProviderInjectionKey } from "./index.js";
|
|
5
|
+
import { Fragment, Teleport, createBlock, createCommentVNode, createElementBlock, createSlots, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderSlot, unref, watchEffect, withCtx } from "vue";
|
|
6
|
+
import { useStyle } from "@oiij/css-render";
|
|
7
|
+
import { NEl, NSpin } from "naive-ui";
|
|
8
|
+
|
|
9
|
+
//#region src/components/loading-provider/LoadingProvider.vue
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "LoadingProvider",
|
|
12
|
+
props: {
|
|
13
|
+
show: { type: Boolean },
|
|
14
|
+
appendTo: { default: "body" },
|
|
15
|
+
mask: {
|
|
16
|
+
type: [Boolean, Object],
|
|
17
|
+
default: true
|
|
18
|
+
},
|
|
19
|
+
blur: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: true
|
|
22
|
+
},
|
|
23
|
+
duration: {},
|
|
24
|
+
spinProps: {}
|
|
25
|
+
},
|
|
26
|
+
setup(__props) {
|
|
27
|
+
useStyle(cName, loadingProviderCssr());
|
|
28
|
+
const _show = ref(__props.show);
|
|
29
|
+
watchEffect(() => {
|
|
30
|
+
_show.value = __props.show;
|
|
31
|
+
});
|
|
32
|
+
const textRef = ref("");
|
|
33
|
+
function hideLoading() {
|
|
34
|
+
_show.value = false;
|
|
35
|
+
}
|
|
36
|
+
function showLoading(options) {
|
|
37
|
+
const { text, duration: _duration } = options ?? {};
|
|
38
|
+
textRef.value = text ?? "";
|
|
39
|
+
_show.value = true;
|
|
40
|
+
if (_duration ?? __props.duration) setTimeout(() => {
|
|
41
|
+
_show.value = false;
|
|
42
|
+
}, _duration ?? __props.duration);
|
|
43
|
+
return { hide: hideLoading };
|
|
44
|
+
}
|
|
45
|
+
provide(loadingProviderInjectionKey, {
|
|
46
|
+
show: showLoading,
|
|
47
|
+
hide: hideLoading
|
|
48
|
+
});
|
|
49
|
+
return (_ctx, _cache) => {
|
|
50
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(BaseTransition_default), null, {
|
|
51
|
+
default: withCtx(() => [(openBlock(), createBlock(Teleport, { to: __props.appendTo }, [_show.value ? (openBlock(), createBlock(unref(NEl), {
|
|
52
|
+
key: 0,
|
|
53
|
+
class: normalizeClass([
|
|
54
|
+
unref(cName),
|
|
55
|
+
{ [`${unref(cName)}--mask`]: __props.mask },
|
|
56
|
+
{ [`${unref(cName)}--blur`]: __props.blur }
|
|
57
|
+
]),
|
|
58
|
+
style: normalizeStyle(typeof __props.mask === "object" ? __props.mask : {})
|
|
59
|
+
}, {
|
|
60
|
+
default: withCtx(() => [createVNode(unref(NSpin), mergeProps({ description: textRef.value }, __props.spinProps), createSlots({ _: 2 }, [_ctx.$slots.description ? {
|
|
61
|
+
name: "description",
|
|
62
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "description")]),
|
|
63
|
+
key: "0"
|
|
64
|
+
} : void 0, _ctx.$slots.icon ? {
|
|
65
|
+
name: "icon",
|
|
66
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
|
|
67
|
+
key: "1"
|
|
68
|
+
} : void 0]), 1040, ["description"])]),
|
|
69
|
+
_: 3
|
|
70
|
+
}, 8, ["class", "style"])) : createCommentVNode("v-if", true)], 8, ["to"]))]),
|
|
71
|
+
_: 3
|
|
72
|
+
}), renderSlot(_ctx.$slots, "default")], 64);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
var LoadingProvider_default = _sfc_main;
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
export { LoadingProvider_default as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
|
+
import "../../components.js";
|
|
3
|
+
import * as vue40 from "vue";
|
|
4
|
+
import * as naive_ui21 from "naive-ui";
|
|
5
|
+
|
|
6
|
+
//#region src/components/loading-provider/LoadingProvider.vue.d.ts
|
|
7
|
+
declare var __VLS_26: {}, __VLS_29: {}, __VLS_31: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
description?: (props: typeof __VLS_26) => any;
|
|
10
|
+
} & {
|
|
11
|
+
icon?: (props: typeof __VLS_29) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_31) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: vue40.DefineComponent<{
|
|
16
|
+
show?: boolean;
|
|
17
|
+
appendTo?: string | vue40.RendererElement;
|
|
18
|
+
mask?: boolean | vue40.CSSProperties;
|
|
19
|
+
blur?: boolean;
|
|
20
|
+
duration?: number;
|
|
21
|
+
spinProps?: Omit<naive_ui21.SpinProps, "show"> & ClassStyle;
|
|
22
|
+
}, {}, {}, {}, {}, vue40.ComponentOptionsMixin, vue40.ComponentOptionsMixin, {}, string, vue40.PublicProps, Readonly<{
|
|
23
|
+
show?: boolean;
|
|
24
|
+
appendTo?: string | vue40.RendererElement;
|
|
25
|
+
mask?: boolean | vue40.CSSProperties;
|
|
26
|
+
blur?: boolean;
|
|
27
|
+
duration?: number;
|
|
28
|
+
spinProps?: Omit<naive_ui21.SpinProps, "show"> & ClassStyle;
|
|
29
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, vue40.ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { _default };
|