@oiij/naive-ui 0.0.11 → 0.0.13
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.d.ts +0 -1
- package/dist/components/config-providers/index.d.ts +7 -0
- package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +6 -22
- package/dist/components/data-table-plus/index.d.ts +14 -2
- package/dist/components/full-loading/FullLoading.vue.d.ts +19 -0
- package/dist/components/full-loading/full-loading.cssr.d.ts +2 -0
- package/dist/components/full-loading/index.d.ts +12 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/preset-form/PresetForm.vue.d.ts +2 -10
- package/dist/components/preset-form/index.d.ts +9 -2
- package/dist/components/preset-input/PresetInput.vue.d.ts +3 -7
- package/dist/components/preset-input/index.d.ts +5 -0
- package/dist/components/preset-select/PresetSelect.vue.d.ts +3 -19
- package/dist/components/preset-select/index.d.ts +13 -1
- package/dist/components/remote-request/RemoteRequest.vue.d.ts +3 -11
- package/dist/components/remote-request/index.d.ts +9 -0
- package/dist/components/transition/BaseTransition.vue.d.ts +18 -0
- package/dist/components/transition/index.d.ts +6 -0
- package/dist/components/transition/transition.cssr.d.ts +13 -0
- package/dist/components.cjs +24 -20
- package/dist/components.js +1511 -1404
- package/dist/components.umd.cjs +20 -16
- package/dist/composables/useNaiveForm.d.ts +4 -4
- package/dist/composables/useNaiveTheme.d.ts +2 -2
- package/package.json +4 -4
- package/dist/components/_utils/transition.cssr.d.ts +0 -10
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import { ConfigProviderProps, DialogProviderInst, DialogProviderProps, LoadingBarProviderInst, LoadingBarProviderProps, MessageProviderInst, MessageProviderProps, ModalProviderInst, ModalProviderProps, NotificationProviderInst, NotificationProviderProps } from 'naive-ui';
|
|
2
|
+
import { FullLoadingProps } from '../full-loading';
|
|
2
3
|
export { default as NConfigProviders } from './ConfigProviders.vue';
|
|
3
4
|
export interface ConfigProvidersProps {
|
|
4
5
|
globalStyle?: boolean;
|
|
5
6
|
configProviderProps?: ConfigProviderProps;
|
|
6
7
|
loadingBarProps?: LoadingBarProviderProps;
|
|
8
|
+
fullLoadingProps?: FullLoadingProps;
|
|
7
9
|
dialogProviderProps?: DialogProviderProps;
|
|
8
10
|
modalProviderProps?: ModalProviderProps;
|
|
9
11
|
notificationProviderProps?: NotificationProviderProps;
|
|
10
12
|
messageProviderProps?: MessageProviderProps;
|
|
11
13
|
}
|
|
14
|
+
export interface LoadingIns {
|
|
15
|
+
start: () => void;
|
|
16
|
+
finish: () => void;
|
|
17
|
+
}
|
|
12
18
|
declare global {
|
|
13
19
|
interface Window {
|
|
14
20
|
$dialog: DialogProviderInst;
|
|
21
|
+
$loading: LoadingIns;
|
|
15
22
|
$loadingBar: LoadingBarProviderInst;
|
|
16
23
|
$message: MessageProviderInst;
|
|
17
24
|
$modal: ModalProviderInst;
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ContextMenuSelectType, DataTablePlusClickRowType, DataTablePlusExposeActions, DataTablePlusExposeRefs, DataTablePlusFields, DataTablePlusFilterOptions } from '.';
|
|
1
|
+
import { DataTableSortState } from 'naive-ui';
|
|
2
|
+
import { FilterState, TableBaseColumn } from 'naive-ui/es/data-table/src/interface';
|
|
3
|
+
import { ContextMenuSelectType, DataTablePlusClickRowType, DataTablePlusExposeActions, DataTablePlusExposeRefs, DataTablePlusProps } from '.';
|
|
5
4
|
declare const _default: <P extends Record<string, any> = Record<string, any>, D extends Record<string, any> = Record<string, any>, R extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: __VLS_PrettifyLocal<any & {
|
|
7
|
-
api: (params: P) => Promise<D>;
|
|
8
|
-
defaultParams?: P;
|
|
9
|
-
manual?: boolean;
|
|
10
|
-
columns?: DataTableColumns<R>;
|
|
11
|
-
filterOptions?: DataTablePlusFilterOptions<P, D, R>;
|
|
12
|
-
filterGridProps?: GridProps;
|
|
13
|
-
contextMenuOptions?: DropdownOption[];
|
|
14
|
-
fields?: DataTablePlusFields;
|
|
15
|
-
pagination?: Omit<PaginationProps, "page" | "pageSize"> | boolean;
|
|
16
|
-
dataTableProps?: DataTableProps;
|
|
17
|
-
requestOptions?: UseRequestOptions<D, P[]>;
|
|
18
|
-
requestPlugins?: UseRequestPlugin<D, P[]>[];
|
|
19
|
-
customStyle?: CSSProperties;
|
|
20
|
-
customClass?: string;
|
|
21
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
5
|
+
props: __VLS_PrettifyLocal<any & DataTablePlusProps<P, D, R> & Partial<{}>> & import('vue').PublicProps;
|
|
22
6
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
23
7
|
refs: DataTablePlusExposeRefs<P, D, R>;
|
|
24
8
|
actions: DataTablePlusExposeActions<P, D>;
|
|
@@ -45,12 +29,12 @@ declare const _default: <P extends Record<string, any> = Record<string, any>, D
|
|
|
45
29
|
(e: "contextMenuSelect", data: ContextMenuSelectType<R>): void;
|
|
46
30
|
(e: "load", row: R): Promise<void>;
|
|
47
31
|
(e: "scroll", ev: Event): void;
|
|
48
|
-
(e: "update:checkedRowKeys", keys: keyof
|
|
32
|
+
(e: "update:checkedRowKeys", keys: keyof R[], rows: R[], meta: {
|
|
49
33
|
row: R | undefined;
|
|
50
34
|
action: "check" | "uncheck" | "checkAll" | "uncheckAll";
|
|
51
35
|
}): void;
|
|
52
36
|
(e: "update:expandedRowKeys", keys: R[]): void;
|
|
53
|
-
(e: "update:filters", filterState:
|
|
37
|
+
(e: "update:filters", filterState: FilterState, sourceColumn: TableBaseColumn): void;
|
|
54
38
|
(e: "update:sorter", options: DataTableSortState | DataTableSortState[] | null): void;
|
|
55
39
|
(e: "update:page", page: number): void;
|
|
56
40
|
(e: "update:pageSize", pageSize: number): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { DataTableInst, DropdownOption, GridItemProps } from 'naive-ui';
|
|
2
|
-
import { ComputedRef, Ref, ShallowRef, VNode } from 'vue';
|
|
1
|
+
import { DataTableColumns, DataTableInst, DataTableProps, DropdownOption, GridItemProps, GridProps, PaginationProps } from 'naive-ui';
|
|
2
|
+
import { ComputedRef, CSSProperties, Ref, ShallowRef, VNode } from 'vue';
|
|
3
3
|
import { useRequestResult } from 'vue-hooks-plus/es/useRequest/types';
|
|
4
4
|
import { PresetInputOptions } from '../preset-input';
|
|
5
|
+
import { RemoteRequestProps } from '../remote-request';
|
|
5
6
|
export { default as NDataTablePlus } from './DataTablePlus.vue';
|
|
6
7
|
export interface DataTablePlusExposeActions<P extends Record<string, any>, D extends Record<string, any>> {
|
|
7
8
|
run: (params: P) => void;
|
|
@@ -48,3 +49,14 @@ export type OnUpdateCheckedRowKeysParams<R extends Record<string, any>> = (keys:
|
|
|
48
49
|
action: 'check' | 'uncheck' | 'checkAll' | 'uncheckAll';
|
|
49
50
|
}) => void;
|
|
50
51
|
export type OnUpdateExpandedRowKeysParams<R extends Record<string, any>> = (keys: R[]) => void;
|
|
52
|
+
export type DataTablePlusProps<P extends Record<string, any> = Record<string, any>, D extends Record<string, any> = Record<string, any>, R extends Record<string, any> = Record<string, any>> = RemoteRequestProps<P, D> & {
|
|
53
|
+
columns?: DataTableColumns<R>;
|
|
54
|
+
filterOptions?: DataTablePlusFilterOptions<P, D, R>;
|
|
55
|
+
filterGridProps?: GridProps;
|
|
56
|
+
contextMenuOptions?: DropdownOption[];
|
|
57
|
+
fields?: DataTablePlusFields;
|
|
58
|
+
pagination?: Omit<PaginationProps, 'page' | 'pageSize'> | boolean;
|
|
59
|
+
dataTableProps?: DataTableProps;
|
|
60
|
+
customStyle?: CSSProperties;
|
|
61
|
+
customClass?: string;
|
|
62
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FullLoadingProps } from '.';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
description?(_: {}): any;
|
|
6
|
+
icon?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<FullLoadingProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FullLoadingProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SpinProps } from 'naive-ui';
|
|
2
|
+
import { CSSProperties, RendererElement } from 'vue';
|
|
3
|
+
export { default as NFullLoading } from './FullLoading.vue';
|
|
4
|
+
export interface FullLoadingProps {
|
|
5
|
+
show?: boolean;
|
|
6
|
+
appendTo?: string | RendererElement;
|
|
7
|
+
mask?: boolean | CSSProperties;
|
|
8
|
+
blur?: boolean;
|
|
9
|
+
disableScroll?: boolean;
|
|
10
|
+
scrollSelector?: string | HTMLElement;
|
|
11
|
+
spinProps?: Omit<SpinProps, 'show'>;
|
|
12
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from './bubble';
|
|
|
2
2
|
export * from './config-providers';
|
|
3
3
|
export * from './copy-button';
|
|
4
4
|
export * from './data-table-plus';
|
|
5
|
+
export * from './full-loading';
|
|
5
6
|
export * from './preset-form';
|
|
6
7
|
export * from './preset-input';
|
|
7
8
|
export * from './preset-select';
|
|
@@ -9,4 +10,5 @@ export * from './remote-request';
|
|
|
9
10
|
export * from './search-input';
|
|
10
11
|
export * from './toggle-editor';
|
|
11
12
|
export * from './tooltip-button';
|
|
13
|
+
export * from './transition';
|
|
12
14
|
export * from './type-writer';
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PresetFormOptions } from '.';
|
|
3
|
-
import { NaiveFormRules } from '../../composables';
|
|
1
|
+
import { PresetFormProps } from '.';
|
|
4
2
|
declare const _default: <V extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
4
|
readonly onValidated?: ((val: V) => any) | undefined;
|
|
7
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onValidated"> & {
|
|
8
|
-
options?: PresetFormOptions<V>;
|
|
9
|
-
values?: V;
|
|
10
|
-
rules: NaiveFormRules<V>;
|
|
11
|
-
formProps?: FormProps;
|
|
12
|
-
gridProps?: GridProps;
|
|
13
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
5
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onValidated"> & PresetFormProps<V> & Partial<{}>> & import('vue').PublicProps;
|
|
14
6
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
15
7
|
refs: {
|
|
16
8
|
formRef: import('vue').Ref<import('naive-ui').FormInst | undefined, import('naive-ui').FormInst | undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GridItemProps } from 'naive-ui';
|
|
1
|
+
import { FormProps, GridItemProps, GridProps } from 'naive-ui';
|
|
2
2
|
import { VNode } from 'vue';
|
|
3
|
-
import { NaiveFormReturns } from '../../composables';
|
|
3
|
+
import { NaiveFormReturns, NaiveFormRules } from '../../composables';
|
|
4
4
|
import { PresetInputOptions } from '../preset-input';
|
|
5
5
|
export type { NaiveFormRules } from '../../composables';
|
|
6
6
|
export { default as NPresetForm } from './PresetForm.vue';
|
|
@@ -14,3 +14,10 @@ export type PresetFormOptions<V extends Record<string, any>> = (PresetInputOptio
|
|
|
14
14
|
gridItemProps?: GridItemProps;
|
|
15
15
|
render?: (refs: PresetFormExposeRefs<V>, actions: PresetFormExposeActions<V>) => VNode;
|
|
16
16
|
})[];
|
|
17
|
+
export interface PresetFormProps<V extends Record<string, any> = Record<string, any>> {
|
|
18
|
+
options?: PresetFormOptions<V>;
|
|
19
|
+
values?: V;
|
|
20
|
+
rules: NaiveFormRules<V>;
|
|
21
|
+
formProps?: FormProps;
|
|
22
|
+
gridProps?: GridProps;
|
|
23
|
+
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: <V extends
|
|
1
|
+
import { PresetInputProps } from '.';
|
|
2
|
+
declare const _default: <V extends string = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
4
|
readonly "onUpdate:value"?: ((val?: V | undefined) => any) | undefined;
|
|
5
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:value"> & {
|
|
6
|
-
value?: V;
|
|
7
|
-
path?: string;
|
|
8
|
-
options?: PresetInputOptions;
|
|
9
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
5
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:value"> & PresetInputProps<V> & Partial<{}>> & import('vue').PublicProps;
|
|
10
6
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
11
7
|
attrs: any;
|
|
12
8
|
slots: {};
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { OptionFormat, PresetSelectExposeActions, PresetSelectExposeRefs, PresetSelectFields, PresetSelectValue } from '.';
|
|
1
|
+
import { SelectOption } from 'naive-ui';
|
|
2
|
+
import { PresetSelectExposeActions, PresetSelectExposeRefs, PresetSelectProps, PresetSelectValue } from '.';
|
|
4
3
|
declare const _default: <V extends PresetSelectValue = null, P extends Record<string, any> = Record<string, any>, D extends Record<string, any> = Record<string, any>, R extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
-
props: __VLS_PrettifyLocal<any & {
|
|
6
|
-
api: (...args: P[]) => Promise<D>;
|
|
7
|
-
value?: V;
|
|
8
|
-
fallbackLabel?: string;
|
|
9
|
-
defaultParams?: P;
|
|
10
|
-
manual?: boolean;
|
|
11
|
-
multiple?: boolean;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
debounce?: boolean | number;
|
|
14
|
-
optionFormat?: OptionFormat<R>;
|
|
15
|
-
fields?: PresetSelectFields;
|
|
16
|
-
selectProps?: SelectProps;
|
|
17
|
-
pagination?: Omit<PaginationProps, "page" | "pageSize"> | boolean;
|
|
18
|
-
requestOptions?: UseRequestOptions<D, P[]>;
|
|
19
|
-
requestPlugins?: UseRequestPlugin<D, P[]>[];
|
|
20
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
4
|
+
props: __VLS_PrettifyLocal<any & PresetSelectProps<V, P, D, R> & Partial<{}>> & import('vue').PublicProps;
|
|
21
5
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
22
6
|
refs: PresetSelectExposeRefs<P, D, R>;
|
|
23
7
|
actions: PresetSelectExposeActions<P, D>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { SelectGroupOption, SelectInst, SelectOption } from 'naive-ui';
|
|
1
|
+
import { PaginationProps, SelectGroupOption, SelectInst, SelectOption, SelectProps } from 'naive-ui';
|
|
2
2
|
import { ShallowRef } from 'vue';
|
|
3
3
|
import { DataTablePlusExposeActions, DataTablePlusExposeRefsBase } from '../data-table-plus';
|
|
4
|
+
import { RemoteRequestProps } from '../remote-request';
|
|
4
5
|
export { default as NPresetSelect } from './PresetSelect.vue';
|
|
5
6
|
export type OptionFormat<R extends Record<string, any>> = (row: R) => SelectOption | SelectGroupOption | false | undefined | null;
|
|
6
7
|
export type PresetSelectValue = string | number | (string | number)[] | null;
|
|
@@ -15,3 +16,14 @@ export type PresetSelectExposeRefs<P extends Record<string, any>, D extends Reco
|
|
|
15
16
|
selectRef: Readonly<ShallowRef<SelectInst | null>>;
|
|
16
17
|
};
|
|
17
18
|
export type PresetSelectExposeActions<P extends Record<string, any>, D extends Record<string, any>> = DataTablePlusExposeActions<P, D>;
|
|
19
|
+
export type PresetSelectProps<V extends PresetSelectValue = null, P extends Record<string, any> = Record<string, any>, D extends Record<string, any> = Record<string, any>, R extends Record<string, any> = Record<string, any>> = RemoteRequestProps<P, D> & {
|
|
20
|
+
value?: V;
|
|
21
|
+
fallbackLabel?: string;
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
debounce?: boolean | number;
|
|
25
|
+
optionFormat?: OptionFormat<R>;
|
|
26
|
+
fields?: PresetSelectFields;
|
|
27
|
+
selectProps?: SelectProps;
|
|
28
|
+
pagination?: Omit<PaginationProps, 'page' | 'pageSize'> | boolean;
|
|
29
|
+
};
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RemoteRequestFields } from '.';
|
|
1
|
+
import { RemoteRequestProps } from '.';
|
|
3
2
|
declare const _default: <P extends Record<string, any> = Record<string, any>, D extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
4
|
readonly onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
6
5
|
readonly onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
7
|
-
readonly onBefore?: ((params: P[]) => any) | undefined;
|
|
8
6
|
readonly onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
defaultParams?: P;
|
|
12
|
-
manual?: boolean;
|
|
13
|
-
fields?: RemoteRequestFields;
|
|
14
|
-
requestOptions?: UseRequestOptions<D, P[]>;
|
|
15
|
-
requestPlugins?: UseRequestPlugin<D, P[]>[];
|
|
16
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
7
|
+
readonly onBefore?: ((params: P[]) => any) | undefined;
|
|
8
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onError" | "onSuccess" | "onFinally" | "onBefore"> & RemoteRequestProps<P, D> & Partial<{}>> & import('vue').PublicProps;
|
|
17
9
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
18
10
|
refs: {
|
|
19
11
|
loading: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
import { UseRequestOptions, UseRequestPlugin } from 'vue-hooks-plus/es/useRequest/types';
|
|
1
2
|
export { default as NRemoteRequest } from './RemoteRequest.vue';
|
|
2
3
|
export type RemoteRequestFields = Partial<Record<string, string>>;
|
|
4
|
+
export interface RemoteRequestProps<P extends Record<string, any> = Record<string, any>, D extends Record<string, any> = Record<string, any>> {
|
|
5
|
+
api: (...args: P[]) => Promise<D>;
|
|
6
|
+
defaultParams?: P;
|
|
7
|
+
manual?: boolean;
|
|
8
|
+
fields?: RemoteRequestFields;
|
|
9
|
+
requestOptions?: UseRequestOptions<D, P[]>;
|
|
10
|
+
requestPlugins?: UseRequestPlugin<D, P[]>[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TransitionProps } from '.';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<TransitionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TransitionProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CNode } from '@oiij/css-render';
|
|
2
|
+
import { namespace } from '../_utils/cssr-bem';
|
|
3
|
+
interface FadeInTransitionOptions {
|
|
4
|
+
name?: string;
|
|
5
|
+
enterDuration?: string;
|
|
6
|
+
leaveDuration?: string;
|
|
7
|
+
enterCubicBezier?: string;
|
|
8
|
+
leaveCubicBezier?: string;
|
|
9
|
+
}
|
|
10
|
+
export { namespace };
|
|
11
|
+
export declare const cName: string;
|
|
12
|
+
export declare function fadeTransition({ name, enterDuration, leaveDuration, enterCubicBezier, leaveCubicBezier, }?: FadeInTransitionOptions): CNode[];
|
|
13
|
+
export declare function transitionCssr(): CNode;
|