@oiij/naive-ui 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/bubble/Bubble.vue.d.ts +26 -3
- package/dist/components/bubble/index.d.ts +2 -2
- package/dist/components/config-providers/ConfigProviders.vue.d.ts +19 -2
- package/dist/components/config-providers/index.d.ts +4 -4
- package/dist/components/copy-button/CopyButton.vue.d.ts +12 -3
- package/dist/components/copy-button/index.d.ts +2 -2
- package/dist/components/data-table-plus/index.d.ts +8 -5
- package/dist/components/full-loading/FullLoading.vue.d.ts +17 -2
- package/dist/components/full-loading/index.d.ts +2 -2
- package/dist/components/preset-form/index.d.ts +2 -2
- package/dist/components/preset-input/index.d.ts +4 -4
- package/dist/components/preset-picker/PresetPicker.vue.d.ts +1 -1
- package/dist/components/preset-select/index.d.ts +4 -4
- package/dist/components/remote-request/index.d.ts +4 -4
- package/dist/components/search-input/SearchInput.vue.d.ts +20 -3
- package/dist/components/search-input/index.d.ts +2 -2
- package/dist/components/tooltip-button/TooltipButton.vue.d.ts +10 -3
- package/dist/components/tooltip-button/index.d.ts +2 -2
- package/dist/components/transition/BaseTransition.vue.d.ts +7 -2
- package/dist/components/transition/index.d.ts +2 -2
- package/dist/components/type-writer/TypeWriter.vue.d.ts +16 -3
- package/dist/components/type-writer/index.d.ts +2 -2
- package/dist/components.cjs +14 -14
- package/dist/components.js +364 -356
- package/dist/components.umd.cjs +15 -15
- package/dist/composables/useNaiveForm.d.cts +4 -4
- package/dist/composables/useNaiveForm.d.ts +4 -4
- package/package.json +3 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BubbleProps } from '.';
|
|
2
1
|
declare function __VLS_template(): {
|
|
3
2
|
attrs: Partial<{}>;
|
|
4
3
|
slots: {
|
|
@@ -12,9 +11,33 @@ declare function __VLS_template(): {
|
|
|
12
11
|
rootEl: any;
|
|
13
12
|
};
|
|
14
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
15
|
+
avatar?: {
|
|
16
|
+
icon?: import('vue').VNodeChild;
|
|
17
|
+
props?: import('naive-ui').AvatarProps;
|
|
18
|
+
};
|
|
19
|
+
content?: string;
|
|
20
|
+
contentClass?: string;
|
|
21
|
+
contentStyle?: import('vue').CSSProperties;
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
typing?: boolean;
|
|
24
|
+
markdown?: boolean;
|
|
25
|
+
placement?: "start" | "end";
|
|
26
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
27
|
typingComplete: () => any;
|
|
17
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
29
|
+
avatar?: {
|
|
30
|
+
icon?: import('vue').VNodeChild;
|
|
31
|
+
props?: import('naive-ui').AvatarProps;
|
|
32
|
+
};
|
|
33
|
+
content?: string;
|
|
34
|
+
contentClass?: string;
|
|
35
|
+
contentStyle?: import('vue').CSSProperties;
|
|
36
|
+
loading?: boolean;
|
|
37
|
+
typing?: boolean;
|
|
38
|
+
markdown?: boolean;
|
|
39
|
+
placement?: "start" | "end";
|
|
40
|
+
}> & Readonly<{
|
|
18
41
|
onTypingComplete?: (() => any) | undefined;
|
|
19
42
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
43
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AvatarProps } from 'naive-ui';
|
|
2
2
|
import { CSSProperties, VNodeChild } from 'vue';
|
|
3
3
|
export { default as NBubble } from './Bubble.vue';
|
|
4
|
-
export
|
|
4
|
+
export type BubbleProps = {
|
|
5
5
|
avatar?: {
|
|
6
6
|
icon?: VNodeChild;
|
|
7
7
|
props?: AvatarProps;
|
|
@@ -13,4 +13,4 @@ export interface BubbleProps {
|
|
|
13
13
|
typing?: boolean;
|
|
14
14
|
markdown?: boolean;
|
|
15
15
|
placement?: 'start' | 'end';
|
|
16
|
-
}
|
|
16
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ConfigProvidersProps } from './index';
|
|
2
1
|
declare function __VLS_template(): {
|
|
3
2
|
attrs: Partial<{}>;
|
|
4
3
|
slots: {
|
|
@@ -8,7 +7,25 @@ declare function __VLS_template(): {
|
|
|
8
7
|
rootEl: any;
|
|
9
8
|
};
|
|
10
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
11
|
+
globalStyle?: boolean;
|
|
12
|
+
configProviderProps?: import('naive-ui').ConfigProviderProps & import('..').ClassStyle;
|
|
13
|
+
loadingBarProps?: import('naive-ui').LoadingBarProviderProps & import('..').ClassStyle;
|
|
14
|
+
fullLoadingProps?: import('../full-loading/index').FullLoadingProps & import('..').ClassStyle;
|
|
15
|
+
dialogProviderProps?: import('naive-ui').DialogProviderProps & import('..').ClassStyle;
|
|
16
|
+
modalProviderProps?: import('naive-ui').ModalProviderProps & import('..').ClassStyle;
|
|
17
|
+
notificationProviderProps?: import('naive-ui').NotificationProviderProps & import('..').ClassStyle;
|
|
18
|
+
messageProviderProps?: import('naive-ui').MessageProviderProps & import('..').ClassStyle;
|
|
19
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
20
|
+
globalStyle?: boolean;
|
|
21
|
+
configProviderProps?: import('naive-ui').ConfigProviderProps & import('..').ClassStyle;
|
|
22
|
+
loadingBarProps?: import('naive-ui').LoadingBarProviderProps & import('..').ClassStyle;
|
|
23
|
+
fullLoadingProps?: import('../full-loading/index').FullLoadingProps & import('..').ClassStyle;
|
|
24
|
+
dialogProviderProps?: import('naive-ui').DialogProviderProps & import('..').ClassStyle;
|
|
25
|
+
modalProviderProps?: import('naive-ui').ModalProviderProps & import('..').ClassStyle;
|
|
26
|
+
notificationProviderProps?: import('naive-ui').NotificationProviderProps & import('..').ClassStyle;
|
|
27
|
+
messageProviderProps?: import('naive-ui').MessageProviderProps & import('..').ClassStyle;
|
|
28
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
30
|
export default _default;
|
|
14
31
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -2,7 +2,7 @@ import { ConfigProviderProps, DialogProviderInst, DialogProviderProps, LoadingBa
|
|
|
2
2
|
import { ClassStyle } from '../data-table-plus';
|
|
3
3
|
import { FullLoadingProps } from '../full-loading/index';
|
|
4
4
|
export { default as NConfigProviders } from './ConfigProviders.vue';
|
|
5
|
-
export
|
|
5
|
+
export type ConfigProvidersProps = {
|
|
6
6
|
globalStyle?: boolean;
|
|
7
7
|
configProviderProps?: ConfigProviderProps & ClassStyle;
|
|
8
8
|
loadingBarProps?: LoadingBarProviderProps & ClassStyle;
|
|
@@ -11,11 +11,11 @@ export interface ConfigProvidersProps {
|
|
|
11
11
|
modalProviderProps?: ModalProviderProps & ClassStyle;
|
|
12
12
|
notificationProviderProps?: NotificationProviderProps & ClassStyle;
|
|
13
13
|
messageProviderProps?: MessageProviderProps & ClassStyle;
|
|
14
|
-
}
|
|
15
|
-
export
|
|
14
|
+
};
|
|
15
|
+
export type LoadingIns = {
|
|
16
16
|
start: () => void;
|
|
17
17
|
finish: () => void;
|
|
18
|
-
}
|
|
18
|
+
};
|
|
19
19
|
declare global {
|
|
20
20
|
interface Window {
|
|
21
21
|
$dialog: DialogProviderInst;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CopyButtonProps } from './index';
|
|
2
1
|
declare function __VLS_template(): {
|
|
3
2
|
attrs: Partial<{}>;
|
|
4
3
|
slots: {
|
|
@@ -10,9 +9,19 @@ declare function __VLS_template(): {
|
|
|
10
9
|
rootEl: any;
|
|
11
10
|
};
|
|
12
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
13
|
+
value?: string;
|
|
14
|
+
config?: import('@vueuse/core').UseClipboardOptions<string | undefined>;
|
|
15
|
+
tooltipProps?: import('naive-ui').TooltipProps & import('..').ClassStyle;
|
|
16
|
+
buttonProps?: import('naive-ui').ButtonProps & import('..').ClassStyle;
|
|
17
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
18
|
copied: (v: string | undefined) => any;
|
|
15
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
20
|
+
value?: string;
|
|
21
|
+
config?: import('@vueuse/core').UseClipboardOptions<string | undefined>;
|
|
22
|
+
tooltipProps?: import('naive-ui').TooltipProps & import('..').ClassStyle;
|
|
23
|
+
buttonProps?: import('naive-ui').ButtonProps & import('..').ClassStyle;
|
|
24
|
+
}> & Readonly<{
|
|
16
25
|
onCopied?: ((v: string | undefined) => any) | undefined;
|
|
17
26
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -2,9 +2,9 @@ import { UseClipboardOptions } from '@vueuse/core';
|
|
|
2
2
|
import { ButtonProps, TooltipProps } from 'naive-ui';
|
|
3
3
|
import { ClassStyle } from '../data-table-plus';
|
|
4
4
|
export { default as NCopyButton } from './CopyButton.vue';
|
|
5
|
-
export
|
|
5
|
+
export type CopyButtonProps = {
|
|
6
6
|
value?: string;
|
|
7
7
|
config?: UseClipboardOptions<string | undefined>;
|
|
8
8
|
tooltipProps?: TooltipProps & ClassStyle;
|
|
9
9
|
buttonProps?: ButtonProps & ClassStyle;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
@@ -10,7 +10,7 @@ export type ClassStyle = {
|
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: CSSProperties | string;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type DataTablePlusExposeActionsBase<P extends RObject = RObject, D extends RObject = RObject> = {
|
|
14
14
|
run: (params: P) => void;
|
|
15
15
|
runAsync: (params: P) => Promise<D>;
|
|
16
16
|
refresh: () => void;
|
|
@@ -20,14 +20,17 @@ export interface DataTablePlusExposeActions<P extends RObject = RObject, D exten
|
|
|
20
20
|
setParams: (params: Partial<P>) => void;
|
|
21
21
|
runParams: (params: Partial<P>) => void;
|
|
22
22
|
runParamsAsync: (params: Partial<P>) => Promise<D>;
|
|
23
|
+
};
|
|
24
|
+
export type DataTablePlusExposeActions<P extends RObject = RObject, D extends RObject = RObject> = DataTablePlusExposeActionsBase<P, D> & {
|
|
25
|
+
onValueUpdate: (key: keyof P, val: any) => void;
|
|
23
26
|
showFilterModal: () => void;
|
|
24
27
|
resetParams: () => void;
|
|
25
|
-
}
|
|
26
|
-
export
|
|
28
|
+
};
|
|
29
|
+
export type DataTablePlusPagination = {
|
|
27
30
|
page: number;
|
|
28
31
|
pageSize: number;
|
|
29
32
|
itemCount: number;
|
|
30
|
-
}
|
|
33
|
+
};
|
|
31
34
|
export type DataTablePlusExposeRefsBase<P extends RObject = RObject, D extends RObject = RObject, R extends RObject = RObject> = Pick<useRequestResult<D, P[], false, false>, 'loading' | 'data' | 'error' | 'params'> & {
|
|
32
35
|
pagination: Readonly<Ref<DataTablePlusPagination, DataTablePlusPagination>>;
|
|
33
36
|
rawList: ComputedRef<R[]>;
|
|
@@ -66,7 +69,7 @@ export type DataTablePlusProps<P extends RObject = RObject, D extends RObject =
|
|
|
66
69
|
fields?: DataTablePlusFields;
|
|
67
70
|
search?: SearchInputProps & ClassStyle | boolean;
|
|
68
71
|
pagination?: Omit<PaginationProps, 'page' | 'pageSize'> & ClassStyle | boolean;
|
|
69
|
-
clearable?: boolean;
|
|
72
|
+
clearable?: boolean | 'main' | 'modal';
|
|
70
73
|
columnsFilterOptions?: (filters: DataTableFilterState) => Record<string, any>;
|
|
71
74
|
columnsSorterOptions?: (sorters: Record<string, DataTableSortState>) => Record<string, any>;
|
|
72
75
|
dataTableProps?: DataTableProps & ClassStyle;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FullLoadingProps } from './index';
|
|
2
1
|
declare function __VLS_template(): {
|
|
3
2
|
attrs: Partial<{}>;
|
|
4
3
|
slots: {
|
|
@@ -9,7 +8,23 @@ declare function __VLS_template(): {
|
|
|
9
8
|
rootEl: any;
|
|
10
9
|
};
|
|
11
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
12
|
+
show?: boolean;
|
|
13
|
+
appendTo?: string | import('vue').RendererElement;
|
|
14
|
+
mask?: boolean | import('vue').CSSProperties;
|
|
15
|
+
blur?: boolean;
|
|
16
|
+
disableScroll?: boolean;
|
|
17
|
+
scrollSelector?: string | HTMLElement;
|
|
18
|
+
spinProps?: Omit<import('naive-ui').SpinProps, "show"> & import('..').ClassStyle;
|
|
19
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
20
|
+
show?: boolean;
|
|
21
|
+
appendTo?: string | import('vue').RendererElement;
|
|
22
|
+
mask?: boolean | import('vue').CSSProperties;
|
|
23
|
+
blur?: boolean;
|
|
24
|
+
disableScroll?: boolean;
|
|
25
|
+
scrollSelector?: string | HTMLElement;
|
|
26
|
+
spinProps?: Omit<import('naive-ui').SpinProps, "show"> & import('..').ClassStyle;
|
|
27
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
29
|
export default _default;
|
|
15
30
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -2,7 +2,7 @@ import { SpinProps } from 'naive-ui';
|
|
|
2
2
|
import { CSSProperties, RendererElement } from 'vue';
|
|
3
3
|
import { ClassStyle } from '../data-table-plus';
|
|
4
4
|
export { default as NFullLoading } from './FullLoading.vue';
|
|
5
|
-
export
|
|
5
|
+
export type FullLoadingProps = {
|
|
6
6
|
show?: boolean;
|
|
7
7
|
appendTo?: string | RendererElement;
|
|
8
8
|
mask?: boolean | CSSProperties;
|
|
@@ -10,4 +10,4 @@ export interface FullLoadingProps {
|
|
|
10
10
|
disableScroll?: boolean;
|
|
11
11
|
scrollSelector?: string | HTMLElement;
|
|
12
12
|
spinProps?: Omit<SpinProps, 'show'> & ClassStyle;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
@@ -21,7 +21,7 @@ export type PresetFormOptionsItem<V extends Record<string, any> = Record<string,
|
|
|
21
21
|
render?: (refs: PresetFormExposeRefs<V>, actions: PresetFormExposeActions<V>) => VNode | null;
|
|
22
22
|
};
|
|
23
23
|
export type PresetFormOptions<V extends Record<string, any> = Record<string, any>> = PresetFormOptionsItem<V>[];
|
|
24
|
-
export
|
|
24
|
+
export type PresetFormProps<V extends Record<string, any> = Record<string, any>> = {
|
|
25
25
|
options?: PresetFormOptions<V>;
|
|
26
26
|
values?: V;
|
|
27
27
|
rules?: NaiveFormRules<V>;
|
|
@@ -30,4 +30,4 @@ export interface PresetFormProps<V extends Record<string, any> = Record<string,
|
|
|
30
30
|
gridProps?: GridProps & ClassStyle;
|
|
31
31
|
flexProps?: FlexProps & ClassStyle;
|
|
32
32
|
layout?: 'grid' | 'flex' | ['grid' | 'flex'];
|
|
33
|
-
}
|
|
33
|
+
};
|
|
@@ -2,7 +2,7 @@ import { ButtonProps, CheckboxGroupProps, CheckboxProps, ColorPickerProps, DateP
|
|
|
2
2
|
import { ClassStyle } from '../data-table-plus';
|
|
3
3
|
import { SearchInputProps } from '../search-input/index';
|
|
4
4
|
export { default as NPresetInput } from './PresetInput.vue';
|
|
5
|
-
export
|
|
5
|
+
export type PresetInputType = {
|
|
6
6
|
'button': ButtonProps & {
|
|
7
7
|
label?: string;
|
|
8
8
|
};
|
|
@@ -24,14 +24,14 @@ export interface PresetInputType {
|
|
|
24
24
|
'slider': SliderProps;
|
|
25
25
|
'switch': SwitchProps;
|
|
26
26
|
'time-picker': TimePickerProps;
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
28
|
export type PresetInputOptions = {
|
|
29
29
|
[K in keyof PresetInputType]: {
|
|
30
30
|
type?: K;
|
|
31
31
|
props?: PresetInputType[K] & ClassStyle;
|
|
32
32
|
};
|
|
33
33
|
}[keyof PresetInputType];
|
|
34
|
-
export
|
|
34
|
+
export type PresetInputProps<V> = {
|
|
35
35
|
value?: V;
|
|
36
36
|
options?: PresetInputOptions;
|
|
37
|
-
}
|
|
37
|
+
};
|
|
@@ -4,12 +4,12 @@ declare const _default: <V extends PresetPickerValue, R extends RObject>(__VLS_p
|
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onClose?: (() => any) | undefined;
|
|
6
6
|
readonly "onUpdate:value"?: ((val: V | null, raw: R | R[] | null) => any) | undefined;
|
|
7
|
+
readonly onNegativeClick?: (() => any) | undefined;
|
|
7
8
|
readonly onPositiveClick?: (() => any) | undefined;
|
|
8
9
|
readonly onAfterEnter?: (() => any) | undefined;
|
|
9
10
|
readonly onAfterLeave?: (() => any) | undefined;
|
|
10
11
|
readonly onEsc?: (() => any) | undefined;
|
|
11
12
|
readonly onMaskClick?: (() => any) | undefined;
|
|
12
|
-
readonly onNegativeClick?: (() => any) | undefined;
|
|
13
13
|
readonly "onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
14
14
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:value" | "onUpdate:show" | "onClose" | "onEsc" | "onAfterEnter" | "onAfterLeave" | "onPositiveClick" | "onNegativeClick" | "onMaskClick"> & PresetPickerProps<V, R> & Partial<{}>> & import('vue').PublicProps;
|
|
15
15
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { PaginationProps, SelectGroupOption, SelectInst, SelectOption, SelectProps } from 'naive-ui';
|
|
2
2
|
import { ShallowRef } from 'vue';
|
|
3
3
|
import { ClassStyle } from '../data-table-plus';
|
|
4
|
-
import {
|
|
4
|
+
import { DataTablePlusExposeActionsBase, DataTablePlusExposeRefsBase } from '../data-table-plus/index';
|
|
5
5
|
import { RemoteRequestEmits, RemoteRequestProps, RObject } from '../remote-request/index';
|
|
6
6
|
export { default as NPresetSelect } from './PresetSelect.vue';
|
|
7
7
|
export type ArrayAwareType<V, T> = V extends null ? null : (V extends any[] ? T[] : T) | null;
|
|
8
8
|
export type OptionFormat<R extends RObject = RObject> = (row: R) => SelectOption | SelectGroupOption | false | undefined | null;
|
|
9
9
|
export type PresetSelectValue = string | number | (string | number)[] | null;
|
|
10
10
|
export type PresetSelectFields = Partial<Record<'page' | 'pageSize' | 'search' | 'list' | 'count' | 'rowKey' | 'label' | 'value' | 'children', string>>;
|
|
11
|
-
export
|
|
11
|
+
export type PresetSelectPagination = {
|
|
12
12
|
page: number;
|
|
13
13
|
pageSize: number;
|
|
14
14
|
itemCount: number;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
export type PresetSelectExposeRefs<P extends RObject = RObject, D extends RObject = RObject, R extends RObject = RObject> = DataTablePlusExposeRefsBase<P, D, R> & {
|
|
17
17
|
selectRef: Readonly<ShallowRef<SelectInst | null>>;
|
|
18
18
|
};
|
|
19
|
-
export type PresetSelectExposeActions<P extends RObject = RObject, D extends RObject = RObject> =
|
|
19
|
+
export type PresetSelectExposeActions<P extends RObject = RObject, D extends RObject = RObject> = DataTablePlusExposeActionsBase<P, D> & {};
|
|
20
20
|
export type PresetSelectProps<V extends PresetSelectValue, P extends RObject = RObject, D extends RObject = RObject, R extends RObject = RObject> = RemoteRequestProps<P, D> & {
|
|
21
21
|
value?: V;
|
|
22
22
|
fallbackLabel?: string | ((val: string | number) => SelectOption);
|
|
@@ -2,17 +2,17 @@ import { UseRequestOptions, UseRequestPlugin } from 'vue-hooks-plus/es/useReques
|
|
|
2
2
|
export { default as NRemoteRequest } from './RemoteRequest.vue';
|
|
3
3
|
export type RObject = Record<string, any>;
|
|
4
4
|
export type RemoteRequestFields = Partial<Record<string, string>>;
|
|
5
|
-
export
|
|
5
|
+
export type RemoteRequestProps<P extends RObject = RObject, D extends RObject = RObject> = {
|
|
6
6
|
api: (...args: P[]) => Promise<D>;
|
|
7
7
|
defaultParams?: Partial<P>;
|
|
8
8
|
manual?: boolean;
|
|
9
9
|
fields?: RemoteRequestFields;
|
|
10
10
|
requestOptions?: UseRequestOptions<D, P[]>;
|
|
11
11
|
requestPlugins?: UseRequestPlugin<D, P[]>[];
|
|
12
|
-
}
|
|
13
|
-
export
|
|
12
|
+
};
|
|
13
|
+
export type RemoteRequestEmits<P extends RObject = RObject, D extends RObject = RObject> = {
|
|
14
14
|
(e: 'before', params: P[]): void;
|
|
15
15
|
(e: 'success', data: D, params: P[]): void;
|
|
16
16
|
(e: 'error', err: Error, params: P[]): void;
|
|
17
17
|
(e: 'finally', params: P[], data?: D, err?: Error): void;
|
|
18
|
-
}
|
|
18
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SearchInputProps } from './index';
|
|
2
1
|
declare function __VLS_template(): {
|
|
3
2
|
attrs: Partial<{}>;
|
|
4
3
|
slots: {
|
|
@@ -1047,9 +1046,27 @@ declare function __VLS_template(): {
|
|
|
1047
1046
|
rootEl: any;
|
|
1048
1047
|
};
|
|
1049
1048
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
1050
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
1049
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
1050
|
+
value?: string | null;
|
|
1051
|
+
type?: import('naive-ui').ButtonProps["type"];
|
|
1052
|
+
placeholder?: string;
|
|
1053
|
+
loading?: boolean;
|
|
1054
|
+
autoTrigger?: boolean | number;
|
|
1055
|
+
searchButton?: "text" | "icon" | boolean;
|
|
1056
|
+
inputProps?: import('naive-ui').InputProps & import('..').ClassStyle;
|
|
1057
|
+
buttonProps?: import('naive-ui').ButtonProps & import('..').ClassStyle;
|
|
1058
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
1051
1059
|
"update:value": (v: string | null | undefined) => any;
|
|
1052
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
1060
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
1061
|
+
value?: string | null;
|
|
1062
|
+
type?: import('naive-ui').ButtonProps["type"];
|
|
1063
|
+
placeholder?: string;
|
|
1064
|
+
loading?: boolean;
|
|
1065
|
+
autoTrigger?: boolean | number;
|
|
1066
|
+
searchButton?: "text" | "icon" | boolean;
|
|
1067
|
+
inputProps?: import('naive-ui').InputProps & import('..').ClassStyle;
|
|
1068
|
+
buttonProps?: import('naive-ui').ButtonProps & import('..').ClassStyle;
|
|
1069
|
+
}> & Readonly<{
|
|
1053
1070
|
"onUpdate:value"?: ((v: string | null | undefined) => any) | undefined;
|
|
1054
1071
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
1055
1072
|
'input-ref': import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonProps, InputProps } from 'naive-ui';
|
|
2
2
|
import { ClassStyle } from '../data-table-plus';
|
|
3
3
|
export { default as NSearchInput } from './SearchInput.vue';
|
|
4
|
-
export
|
|
4
|
+
export type SearchInputProps = {
|
|
5
5
|
value?: string | null;
|
|
6
6
|
type?: ButtonProps['type'];
|
|
7
7
|
placeholder?: string;
|
|
@@ -10,4 +10,4 @@ export interface SearchInputProps {
|
|
|
10
10
|
searchButton?: 'text' | 'icon' | boolean;
|
|
11
11
|
inputProps?: InputProps & ClassStyle;
|
|
12
12
|
buttonProps?: ButtonProps & ClassStyle;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TooltipButtonProps } from './index';
|
|
2
1
|
declare function __VLS_template(): {
|
|
3
2
|
attrs: Partial<{}>;
|
|
4
3
|
slots: {
|
|
@@ -10,9 +9,17 @@ declare function __VLS_template(): {
|
|
|
10
9
|
rootEl: any;
|
|
11
10
|
};
|
|
12
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
13
|
+
value?: string;
|
|
14
|
+
tooltipProps?: import('naive-ui').TooltipProps & import('..').ClassStyle;
|
|
15
|
+
buttonProps?: import('naive-ui').ButtonProps & import('..').ClassStyle;
|
|
16
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
17
|
click: (ev: MouseEvent) => any;
|
|
15
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
19
|
+
value?: string;
|
|
20
|
+
tooltipProps?: import('naive-ui').TooltipProps & import('..').ClassStyle;
|
|
21
|
+
buttonProps?: import('naive-ui').ButtonProps & import('..').ClassStyle;
|
|
22
|
+
}> & Readonly<{
|
|
16
23
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
17
24
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ButtonProps, TooltipProps } from 'naive-ui';
|
|
2
2
|
import { ClassStyle } from '../data-table-plus';
|
|
3
3
|
export { default as NTooltipButton } from './TooltipButton.vue';
|
|
4
|
-
export
|
|
4
|
+
export type TooltipButtonProps = {
|
|
5
5
|
value?: string;
|
|
6
6
|
tooltipProps?: TooltipProps & ClassStyle;
|
|
7
7
|
buttonProps?: ButtonProps & ClassStyle;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TransitionProps } from './index';
|
|
2
1
|
declare function __VLS_template(): {
|
|
3
2
|
attrs: Partial<{}>;
|
|
4
3
|
slots: {
|
|
@@ -8,7 +7,13 @@ declare function __VLS_template(): {
|
|
|
8
7
|
rootEl: any;
|
|
9
8
|
};
|
|
10
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
11
|
+
name?: string;
|
|
12
|
+
transitionProps?: import('vue').TransitionProps & import('..').ClassStyle;
|
|
13
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
14
|
+
name?: string;
|
|
15
|
+
transitionProps?: import('vue').TransitionProps & import('..').ClassStyle;
|
|
16
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
18
|
export default _default;
|
|
14
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TransitionProps as BaseTransitionProps } from 'vue';
|
|
2
2
|
import { ClassStyle } from '../data-table-plus';
|
|
3
3
|
export { default as NTransition } from './BaseTransition.vue';
|
|
4
|
-
export
|
|
4
|
+
export type TransitionProps = {
|
|
5
5
|
name?: string;
|
|
6
6
|
transitionProps?: BaseTransitionProps & ClassStyle;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
value?: string;
|
|
3
|
+
typing?: boolean;
|
|
4
|
+
markdown?: boolean;
|
|
5
|
+
step?: number;
|
|
6
|
+
interval?: number;
|
|
7
|
+
suffix?: string;
|
|
8
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
9
|
start: () => any;
|
|
4
10
|
stop: (v: string) => any;
|
|
5
11
|
update: (v: {
|
|
6
12
|
index: number;
|
|
7
13
|
value: string;
|
|
8
14
|
}) => any;
|
|
9
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
16
|
+
value?: string;
|
|
17
|
+
typing?: boolean;
|
|
18
|
+
markdown?: boolean;
|
|
19
|
+
step?: number;
|
|
20
|
+
interval?: number;
|
|
21
|
+
suffix?: string;
|
|
22
|
+
}> & Readonly<{
|
|
10
23
|
onStart?: (() => any) | undefined;
|
|
11
24
|
onStop?: ((v: string) => any) | undefined;
|
|
12
25
|
onUpdate?: ((v: {
|