@oiij/naive-ui 0.0.65 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/config-providers/ConfigProviders.js +10 -18
- package/dist/components/config-providers/ConfigProviders.vue.d.ts +5 -5
- package/dist/components/config-providers/index.d.ts +6 -8
- package/dist/components/copy-button/CopyButton.vue.d.ts +13 -13
- package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +44 -44
- package/dist/components/index.d.ts +18 -20
- package/dist/components/loading-provider/LoadingProvider.js +78 -0
- package/dist/components/{full-loading/FullLoading.vue.d.ts → loading-provider/LoadingProvider.vue.d.ts} +8 -8
- package/dist/components/loading-provider/index.d.ts +23 -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} +5 -5
- package/dist/components/preset-form/PresetForm.vue.d.ts +15 -15
- package/dist/components/preset-input/PresetInput.vue.d.ts +4 -4
- package/dist/components/preset-picker/PresetPicker.js +6 -2
- package/dist/components/preset-picker/PresetPicker.vue.d.ts +5 -5
- package/dist/components/preset-picker/index.d.ts +1 -0
- package/dist/components/preset-select/PresetSelect.vue.d.ts +28 -28
- package/dist/components/remote-request/RemoteRequest.vue.d.ts +11 -11
- package/dist/components/search-input/SearchInput.vue.d.ts +12 -12
- package/dist/components/toggle-input/ToggleInput.js +64 -0
- package/dist/components/toggle-input/ToggleInput.vue.d.ts +46 -0
- package/dist/components/toggle-input/index.d.ts +1 -0
- package/dist/components/tooltip-button/TooltipButton.vue.d.ts +5 -5
- package/dist/components/transition/BaseTransition.vue.d.ts +6 -6
- package/dist/components/type-writer/TypeWriter.js +1 -1
- package/dist/components/type-writer/TypeWriter.vue.d.ts +5 -5
- package/dist/components.d.ts +19 -21
- package/dist/components.js +6 -7
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/useDataRequest.d.ts +1 -1
- package/dist/composables/useLoading.d.ts +10 -0
- package/dist/composables/useLoading.js +10 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -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/index.d.ts +0 -17
- package/dist/components/toggle-editor/ToggleEditor.js +0 -44
- package/dist/components/toggle-editor/ToggleEditor.vue.d.ts +0 -20
- package/dist/components/toggle-editor/index.d.ts +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { PresetFormExpose, PresetFormProps } from "./index.js";
|
|
3
3
|
import * as _vueuse_core10 from "@vueuse/core";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as vue57 from "vue";
|
|
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: __VLS_PrettifyLocal<PresetFormProps<V> & {
|
|
11
|
+
props: vue57.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: vue57.ShallowUnwrapRef<PresetFormExpose<V>>) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
19
19
|
header?: (props: {
|
|
20
20
|
formRef: FormInst | null;
|
|
21
21
|
formValue: V;
|
|
22
|
-
formRules: Partial<Record<keyof V,
|
|
22
|
+
formRules: Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
|
|
23
23
|
formProps: {
|
|
24
|
-
model:
|
|
25
|
-
rules:
|
|
24
|
+
model: vue57.Reactive<V>;
|
|
25
|
+
rules: vue57.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<{
|
|
@@ -38,10 +38,10 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
38
38
|
default?: (props: {
|
|
39
39
|
formRef: FormInst | null;
|
|
40
40
|
formValue: V;
|
|
41
|
-
formRules: Partial<Record<keyof V,
|
|
41
|
+
formRules: Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
|
|
42
42
|
formProps: {
|
|
43
|
-
model:
|
|
44
|
-
rules:
|
|
43
|
+
model: vue57.Reactive<V>;
|
|
44
|
+
rules: vue57.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<{
|
|
@@ -57,10 +57,10 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
57
57
|
footer?: (props: {
|
|
58
58
|
formRef: FormInst | null;
|
|
59
59
|
formValue: V;
|
|
60
|
-
formRules: Partial<Record<keyof V,
|
|
60
|
+
formRules: Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
|
|
61
61
|
formProps: {
|
|
62
|
-
model:
|
|
63
|
-
rules:
|
|
62
|
+
model: vue57.Reactive<V>;
|
|
63
|
+
rules: vue57.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<{
|
|
@@ -74,7 +74,7 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
74
74
|
}) => any;
|
|
75
75
|
};
|
|
76
76
|
emit: (e: "validated", val: V) => void;
|
|
77
|
-
}>) =>
|
|
77
|
+
}>) => vue57.VNode & {
|
|
78
78
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
79
79
|
};
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { PresetInputProps } from "./index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue52 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: __VLS_PrettifyLocal<PresetInputProps<V> & {
|
|
6
|
+
props: vue52.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;
|
|
10
10
|
} ? P : {});
|
|
11
11
|
expose: (exposed: {}) => void;
|
|
12
12
|
attrs: any;
|
|
13
13
|
slots: {};
|
|
14
14
|
emit: (e: "update:value", val?: V) => void;
|
|
15
|
-
}>) =>
|
|
15
|
+
}>) => vue52.VNode & {
|
|
16
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import MageMultiplyCircleFill_default from "../icons/MageMultiplyCircleFill.js";
|
|
2
2
|
import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, reactive, ref, renderSlot, toDisplayString, toRaw, toValue, unref, watch, withCtx, withModifiers } from "vue";
|
|
3
|
-
import { cloneDeep } from "es-toolkit/object";
|
|
4
3
|
import { NBadge, NButton, NButtonGroup, NModal, NTooltip } from "naive-ui";
|
|
4
|
+
import { cloneDeep } from "es-toolkit/object";
|
|
5
5
|
|
|
6
6
|
//#region src/components/preset-picker/PresetPicker.vue
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -12,6 +12,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
multiple: { type: Boolean },
|
|
13
13
|
disabled: { type: Boolean },
|
|
14
14
|
clearable: { type: Boolean },
|
|
15
|
+
tooltip: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: true
|
|
18
|
+
},
|
|
15
19
|
placeholder: { default: "请选择" },
|
|
16
20
|
type: {},
|
|
17
21
|
columns: {},
|
|
@@ -148,7 +152,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
148
152
|
default: withCtx(() => [createVNode(unref(NButtonGroup), null, {
|
|
149
153
|
default: withCtx(() => [
|
|
150
154
|
createVNode(unref(NTooltip), {
|
|
151
|
-
disabled: Array.isArray(__props.value) ?
|
|
155
|
+
disabled: !__props.tooltip || !Array.isArray(__props.value) ? true : false,
|
|
152
156
|
trigger: Array.isArray(__props.value) ? "hover" : "manual"
|
|
153
157
|
}, {
|
|
154
158
|
trigger: withCtx(() => [createVNode(unref(NButton), mergeProps({
|
|
@@ -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 vue54 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: __VLS_PrettifyLocal<PresetPickerProps<V, R> & {
|
|
8
|
+
props: vue54.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;
|
|
@@ -15,10 +15,10 @@ declare const __VLS_export: <V extends PresetPickerValue, R extends DataObject>(
|
|
|
15
15
|
onNegativeClick?: (() => any) | undefined;
|
|
16
16
|
onPositiveClick?: (() => any) | undefined;
|
|
17
17
|
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
18
|
-
}> &
|
|
18
|
+
}> & (typeof globalThis extends {
|
|
19
19
|
__VLS_PROPS_FALLBACK: infer P;
|
|
20
20
|
} ? P : {});
|
|
21
|
-
expose: (exposed:
|
|
21
|
+
expose: (exposed: vue54.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
|
+
}>) => vue54.VNode & {
|
|
58
58
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
59
59
|
};
|
|
60
60
|
declare const _default: typeof __VLS_export;
|
|
@@ -29,6 +29,7 @@ type PresetPickerProps<V extends PresetPickerValue, R extends DataObject = DataO
|
|
|
29
29
|
multiple?: boolean;
|
|
30
30
|
disabled?: boolean;
|
|
31
31
|
clearable?: boolean;
|
|
32
|
+
tooltip?: boolean;
|
|
32
33
|
placeholder?: string;
|
|
33
34
|
type?: ButtonProps['type'];
|
|
34
35
|
columns?: DataTableColumns<R>;
|
|
@@ -1,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_core13 from "@vueuse/core";
|
|
4
|
+
import * as vue66 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: __VLS_PrettifyLocal<PresetSelectProps<V, P, D, R> & {
|
|
10
|
-
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
9
|
+
props: vue66.PublicProps & __VLS_PrettifyLocal<PresetSelectProps<V, P, D, R> & {
|
|
11
10
|
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
11
|
+
onSuccess?: ((data: D, 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;
|
|
20
21
|
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
21
22
|
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
22
|
-
|
|
23
|
-
}> & vue82.PublicProps & (typeof globalThis extends {
|
|
23
|
+
}> & (typeof globalThis extends {
|
|
24
24
|
__VLS_PROPS_FALLBACK: infer P_1;
|
|
25
25
|
} ? P_1 : {});
|
|
26
|
-
expose: (exposed:
|
|
26
|
+
expose: (exposed: vue66.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_core13.EventHookOn<[P[]]>;
|
|
55
|
+
onSuccess: _vueuse_core13.EventHookOn<[D, P[]]>;
|
|
56
|
+
onError: _vueuse_core13.EventHookOn<[Error, P[]]>;
|
|
57
|
+
onFinally: _vueuse_core13.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_core13.EventHookOn<[P[]]>;
|
|
86
|
+
onSuccess: _vueuse_core13.EventHookOn<[D, P[]]>;
|
|
87
|
+
onError: _vueuse_core13.EventHookOn<[Error, P[]]>;
|
|
88
|
+
onFinally: _vueuse_core13.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_core13.EventHookOn<[P[]]>;
|
|
117
|
+
onSuccess: _vueuse_core13.EventHookOn<[D, P[]]>;
|
|
118
|
+
onError: _vueuse_core13.EventHookOn<[Error, P[]]>;
|
|
119
|
+
onFinally: _vueuse_core13.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_core13.EventHookOn<[P[]]>;
|
|
148
|
+
onSuccess: _vueuse_core13.EventHookOn<[D, P[]]>;
|
|
149
|
+
onError: _vueuse_core13.EventHookOn<[Error, P[]]>;
|
|
150
|
+
onFinally: _vueuse_core13.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_core13.EventHookOn<[P[]]>;
|
|
179
|
+
onSuccess: _vueuse_core13.EventHookOn<[D, P[]]>;
|
|
180
|
+
onError: _vueuse_core13.EventHookOn<[Error, P[]]>;
|
|
181
|
+
onFinally: _vueuse_core13.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
182
182
|
}) => any;
|
|
183
183
|
};
|
|
184
184
|
emit: PresetSelectEmits<V, P, D, R>;
|
|
185
|
-
}>) =>
|
|
185
|
+
}>) => vue66.VNode & {
|
|
186
186
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
187
187
|
};
|
|
188
188
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { RemoteRequestEmits, RemoteRequestExpose, RemoteRequestProps } from "./index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _vueuse_core4 from "@vueuse/core";
|
|
4
|
+
import * as vue32 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/remote-request/RemoteRequest.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <P extends DataObject, D extends DataObject, R extends DataObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
-
props: __VLS_PrettifyLocal<RemoteRequestProps<P, D> & {
|
|
9
|
-
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
8
|
+
props: vue32.PublicProps & __VLS_PrettifyLocal<RemoteRequestProps<P, D> & {
|
|
10
9
|
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
10
|
+
onSuccess?: ((data: D, 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 {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P_1;
|
|
15
15
|
} ? P_1 : {});
|
|
16
|
-
expose: (exposed:
|
|
16
|
+
expose: (exposed: vue32.ShallowUnwrapRef<RemoteRequestExpose<P, D, R>>) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
19
19
|
default?: (props: {
|
|
@@ -40,14 +40,14 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
40
40
|
setParams: (_params: Partial<P>) => void;
|
|
41
41
|
runParams: (_params: Partial<P>) => void;
|
|
42
42
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
43
|
-
onBefore:
|
|
44
|
-
onSuccess:
|
|
45
|
-
onError:
|
|
46
|
-
onFinally:
|
|
43
|
+
onBefore: _vueuse_core4.EventHookOn<[P[]]>;
|
|
44
|
+
onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
|
|
45
|
+
onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
|
|
46
|
+
onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
47
47
|
}) => any;
|
|
48
48
|
};
|
|
49
49
|
emit: RemoteRequestEmits<P, D>;
|
|
50
|
-
}>) =>
|
|
50
|
+
}>) => vue32.VNode & {
|
|
51
51
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
52
52
|
};
|
|
53
53
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import "../../components.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as vue40 from "vue";
|
|
4
|
+
import * as naive_ui21 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: vue40.DefineComponent<{
|
|
21
21
|
value?: string | null;
|
|
22
|
-
type?:
|
|
22
|
+
type?: naive_ui21.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_ui21.InputProps & ClassStyle;
|
|
28
|
+
buttonProps?: naive_ui21.ButtonProps & ClassStyle;
|
|
29
|
+
}, {}, {}, {}, {}, vue40.ComponentOptionsMixin, vue40.ComponentOptionsMixin, {} & {
|
|
30
30
|
"update:value": (v: string | null | undefined) => any;
|
|
31
|
-
}, string,
|
|
31
|
+
}, string, vue40.PublicProps, Readonly<{
|
|
32
32
|
value?: string | null;
|
|
33
|
-
type?:
|
|
33
|
+
type?: naive_ui21.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_ui21.InputProps & ClassStyle;
|
|
39
|
+
buttonProps?: naive_ui21.ButtonProps & ClassStyle;
|
|
40
40
|
}> & Readonly<{
|
|
41
41
|
"onUpdate:value"?: ((v: string | null | undefined) => any) | undefined;
|
|
42
|
-
}>, {}, {}, {}, {}, string,
|
|
42
|
+
}>, {}, {}, {}, {}, string, vue40.ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
45
45
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { createElementBlock, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeProps, openBlock, ref, renderSlot, toDisplayString, unref, useModel, useTemplateRef, watchEffect } from "vue";
|
|
2
|
+
import { NInput } from "naive-ui";
|
|
3
|
+
|
|
4
|
+
//#region src/components/toggle-input/ToggleInput.vue
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "ToggleInput",
|
|
7
|
+
props: /* @__PURE__ */ mergeModels({
|
|
8
|
+
trigger: { default: "click" },
|
|
9
|
+
inputProps: {}
|
|
10
|
+
}, {
|
|
11
|
+
"value": {},
|
|
12
|
+
"valueModifiers": {}
|
|
13
|
+
}),
|
|
14
|
+
emits: /* @__PURE__ */ mergeModels(["trigger"], ["update:value"]),
|
|
15
|
+
setup(__props, { emit: __emit }) {
|
|
16
|
+
const emit = __emit;
|
|
17
|
+
const value = useModel(__props, "value");
|
|
18
|
+
const showInput = ref(false);
|
|
19
|
+
const inputRef = useTemplateRef("input-ref");
|
|
20
|
+
const inputValue = ref(value.value);
|
|
21
|
+
watchEffect(() => {
|
|
22
|
+
inputValue.value = value.value;
|
|
23
|
+
});
|
|
24
|
+
function onTrigger() {
|
|
25
|
+
inputValue.value = value.value;
|
|
26
|
+
showInput.value = true;
|
|
27
|
+
emit("trigger");
|
|
28
|
+
nextTick(() => {
|
|
29
|
+
inputRef.value?.focus();
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function onUpdateValue(val) {
|
|
33
|
+
inputValue.value = val;
|
|
34
|
+
}
|
|
35
|
+
function hideInput() {
|
|
36
|
+
showInput.value = false;
|
|
37
|
+
}
|
|
38
|
+
function onEmit() {
|
|
39
|
+
hideInput();
|
|
40
|
+
value.value = inputValue.value;
|
|
41
|
+
}
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return openBlock(), createElementBlock("div", {
|
|
44
|
+
onClick: _cache[0] || (_cache[0] = ($event) => __props.trigger === "click" && onTrigger()),
|
|
45
|
+
onDblclick: _cache[1] || (_cache[1] = ($event) => __props.trigger === "dblclick" && onTrigger())
|
|
46
|
+
}, [showInput.value ? renderSlot(_ctx.$slots, "input", normalizeProps(mergeProps({ key: 0 }, {
|
|
47
|
+
onUpdateValue,
|
|
48
|
+
hideInput,
|
|
49
|
+
onEmit,
|
|
50
|
+
inputValue: inputValue.value
|
|
51
|
+
})), () => [createVNode(unref(NInput), mergeProps({
|
|
52
|
+
ref: "input-ref",
|
|
53
|
+
value: typeof inputValue.value === "string" ? inputValue.value : inputValue.value?.toString()
|
|
54
|
+
}, __props.inputProps, {
|
|
55
|
+
"onUpdate:value": onUpdateValue,
|
|
56
|
+
onBlur: onEmit
|
|
57
|
+
}), null, 16, ["value"])]) : renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 1 }, { value: inputValue.value })), () => [createTextVNode(toDisplayString(inputValue.value), 1)])], 32);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
var ToggleInput_default = _sfc_main;
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export { ToggleInput_default as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
|
+
import * as vue8 from "vue";
|
|
3
|
+
import { InputProps } from "naive-ui";
|
|
4
|
+
|
|
5
|
+
//#region src/components/toggle-input/ToggleInput.vue.d.ts
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
trigger?: 'click' | 'dblclick';
|
|
8
|
+
inputProps?: InputProps & ClassStyle;
|
|
9
|
+
};
|
|
10
|
+
declare function onUpdateValue(val: string | number): void;
|
|
11
|
+
declare function hideInput(): void;
|
|
12
|
+
declare function onEmit(): void;
|
|
13
|
+
type __VLS_ModelProps = {
|
|
14
|
+
'value'?: string | number;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
17
|
+
declare var __VLS_1: {
|
|
18
|
+
onUpdateValue: typeof onUpdateValue;
|
|
19
|
+
hideInput: typeof hideInput;
|
|
20
|
+
onEmit: typeof onEmit;
|
|
21
|
+
inputValue: string | number | undefined;
|
|
22
|
+
}, __VLS_13: {
|
|
23
|
+
value: string | number | undefined;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_Slots = {} & {
|
|
26
|
+
input?: (props: typeof __VLS_1) => any;
|
|
27
|
+
} & {
|
|
28
|
+
default?: (props: typeof __VLS_13) => any;
|
|
29
|
+
};
|
|
30
|
+
declare const __VLS_base: vue8.DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, vue8.ComponentOptionsMixin, vue8.ComponentOptionsMixin, {
|
|
31
|
+
"update:value": (value: string | number | undefined) => any;
|
|
32
|
+
} & {
|
|
33
|
+
trigger: () => any;
|
|
34
|
+
}, string, vue8.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
35
|
+
"onUpdate:value"?: ((value: string | number | undefined) => any) | undefined;
|
|
36
|
+
onTrigger?: (() => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, vue8.ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { _default } from "./ToggleInput.vue.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import "../../components.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue13 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: vue13.DefineComponent<{
|
|
16
16
|
tooltip?: string;
|
|
17
17
|
tooltipProps?: naive_ui0.TooltipProps & ClassStyle;
|
|
18
18
|
buttonProps?: naive_ui0.ButtonProps & ClassStyle;
|
|
19
|
-
}, {}, {}, {}, {},
|
|
19
|
+
}, {}, {}, {}, {}, vue13.ComponentOptionsMixin, vue13.ComponentOptionsMixin, {} & {
|
|
20
20
|
click: (ev: MouseEvent) => any;
|
|
21
|
-
}, string,
|
|
21
|
+
}, string, vue13.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, vue13.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 & {
|
|
@@ -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 vue45 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: vue45.DefineComponent<{
|
|
11
11
|
name?: string;
|
|
12
|
-
transitionProps?:
|
|
13
|
-
}, {}, {}, {}, {},
|
|
12
|
+
transitionProps?: vue45.TransitionProps & ClassStyle;
|
|
13
|
+
}, {}, {}, {}, {}, vue45.ComponentOptionsMixin, vue45.ComponentOptionsMixin, {}, string, vue45.PublicProps, Readonly<{
|
|
14
14
|
name?: string;
|
|
15
|
-
transitionProps?:
|
|
16
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
15
|
+
transitionProps?: vue45.TransitionProps & ClassStyle;
|
|
16
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, vue45.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 & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { highlight } from "../_utils/prismjs.js";
|
|
2
2
|
import { cName, typeWriterCssr } from "./type-writer.cssr.js";
|
|
3
3
|
import { computed, createBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, unref, withCtx } from "vue";
|
|
4
|
-
import { NEl } from "naive-ui";
|
|
5
4
|
import { useStyle } from "@oiij/css-render";
|
|
5
|
+
import { NEl } from "naive-ui";
|
|
6
6
|
import { useMarkdownIt } from "@oiij/markdown-it";
|
|
7
7
|
import { useTypeWriter } from "@oiij/use";
|
|
8
8
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue79 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: vue79.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
|
+
}, {}, {}, {}, {}, vue79.ComponentOptionsMixin, vue79.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, vue79.PublicProps, Readonly<{
|
|
19
19
|
value?: string;
|
|
20
20
|
typing?: boolean;
|
|
21
21
|
markdown?: boolean;
|
|
@@ -29,7 +29,7 @@ declare const __VLS_export: vue88.DefineComponent<{
|
|
|
29
29
|
value: string;
|
|
30
30
|
}) => any) | undefined;
|
|
31
31
|
onStop?: ((v: string) => any) | undefined;
|
|
32
|
-
}>, {}, {}, {}, {}, string,
|
|
32
|
+
}>, {}, {}, {}, {}, string, vue79.ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { _default };
|