@minto-ai/mt-ui
Version:
UI组件库
320 lines (319 loc) • 11.3 kB
TypeScript
export declare const MtInfiniteScroll: {
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
readonly modelValue: {
readonly type: ArrayConstructor;
readonly default: () => never[];
};
readonly height: {
readonly type: import('vue').PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: "100%";
};
readonly upScrollPageNum: {
readonly type: NumberConstructor;
readonly default: 1;
};
readonly upScrollPageSize: {
readonly type: NumberConstructor;
readonly default: 10;
};
readonly upScrollEnabled: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly upScrollImmediate: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly scrollEventDelay: {
readonly type: NumberConstructor;
readonly default: 30;
};
readonly upScrollDistance: {
readonly type: NumberConstructor;
readonly default: 75;
};
readonly hideNoMoreByLimit: {
readonly type: NumberConstructor;
readonly default: 5;
};
readonly loadingMoreLoadingText: {
readonly type: StringConstructor;
readonly default: "加载中...";
};
readonly loadingMoreNoMoreText: {
readonly type: StringConstructor;
readonly default: "没有更多了";
};
readonly emptyText: {
readonly type: StringConstructor;
readonly default: "没有数据哦~";
};
readonly emptyImg: {
readonly type: StringConstructor;
readonly default: "";
};
readonly emptyImageWidth: {
readonly type: import('vue').PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: 200;
};
readonly queryMinDelay: {
readonly type: NumberConstructor;
readonly default: 0;
};
readonly showBacktop: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((args_0: any[]) => any) | undefined;
onQuery?: ((args_0: {
pageNum: number;
pageSize: number;
}) => any) | undefined;
}>, {
endSuccess: (data: Array<any>, totalSize: number) => Promise<void>;
endError: () => void;
resetUpScroll: () => Promise<void>;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (args_0: any[]) => any;
query: (args_0: {
pageNum: number;
pageSize: number;
}) => any;
}, import('vue').PublicProps, {
readonly height: string | number;
readonly modelValue: unknown[];
readonly upScrollPageNum: number;
readonly upScrollPageSize: number;
readonly upScrollEnabled: boolean;
readonly upScrollImmediate: boolean;
readonly scrollEventDelay: number;
readonly upScrollDistance: number;
readonly hideNoMoreByLimit: number;
readonly loadingMoreLoadingText: string;
readonly loadingMoreNoMoreText: string;
readonly emptyText: string;
readonly emptyImg: string;
readonly emptyImageWidth: string | number;
readonly queryMinDelay: number;
readonly showBacktop: boolean;
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
containerRef: HTMLDivElement;
contentRef: HTMLDivElement;
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import('vue').ExtractPropTypes<{
readonly modelValue: {
readonly type: ArrayConstructor;
readonly default: () => never[];
};
readonly height: {
readonly type: import('vue').PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: "100%";
};
readonly upScrollPageNum: {
readonly type: NumberConstructor;
readonly default: 1;
};
readonly upScrollPageSize: {
readonly type: NumberConstructor;
readonly default: 10;
};
readonly upScrollEnabled: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly upScrollImmediate: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly scrollEventDelay: {
readonly type: NumberConstructor;
readonly default: 30;
};
readonly upScrollDistance: {
readonly type: NumberConstructor;
readonly default: 75;
};
readonly hideNoMoreByLimit: {
readonly type: NumberConstructor;
readonly default: 5;
};
readonly loadingMoreLoadingText: {
readonly type: StringConstructor;
readonly default: "加载中...";
};
readonly loadingMoreNoMoreText: {
readonly type: StringConstructor;
readonly default: "没有更多了";
};
readonly emptyText: {
readonly type: StringConstructor;
readonly default: "没有数据哦~";
};
readonly emptyImg: {
readonly type: StringConstructor;
readonly default: "";
};
readonly emptyImageWidth: {
readonly type: import('vue').PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: 200;
};
readonly queryMinDelay: {
readonly type: NumberConstructor;
readonly default: 0;
};
readonly showBacktop: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((args_0: any[]) => any) | undefined;
onQuery?: ((args_0: {
pageNum: number;
pageSize: number;
}) => any) | undefined;
}>, {
endSuccess: (data: Array<any>, totalSize: number) => Promise<void>;
endError: () => void;
resetUpScroll: () => Promise<void>;
}, {}, {}, {}, {
readonly height: string | number;
readonly modelValue: unknown[];
readonly upScrollPageNum: number;
readonly upScrollPageSize: number;
readonly upScrollEnabled: boolean;
readonly upScrollImmediate: boolean;
readonly scrollEventDelay: number;
readonly upScrollDistance: number;
readonly hideNoMoreByLimit: number;
readonly loadingMoreLoadingText: string;
readonly loadingMoreNoMoreText: string;
readonly emptyText: string;
readonly emptyImg: string;
readonly emptyImageWidth: string | number;
readonly queryMinDelay: number;
readonly showBacktop: boolean;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
readonly modelValue: {
readonly type: ArrayConstructor;
readonly default: () => never[];
};
readonly height: {
readonly type: import('vue').PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: "100%";
};
readonly upScrollPageNum: {
readonly type: NumberConstructor;
readonly default: 1;
};
readonly upScrollPageSize: {
readonly type: NumberConstructor;
readonly default: 10;
};
readonly upScrollEnabled: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly upScrollImmediate: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly scrollEventDelay: {
readonly type: NumberConstructor;
readonly default: 30;
};
readonly upScrollDistance: {
readonly type: NumberConstructor;
readonly default: 75;
};
readonly hideNoMoreByLimit: {
readonly type: NumberConstructor;
readonly default: 5;
};
readonly loadingMoreLoadingText: {
readonly type: StringConstructor;
readonly default: "加载中...";
};
readonly loadingMoreNoMoreText: {
readonly type: StringConstructor;
readonly default: "没有更多了";
};
readonly emptyText: {
readonly type: StringConstructor;
readonly default: "没有数据哦~";
};
readonly emptyImg: {
readonly type: StringConstructor;
readonly default: "";
};
readonly emptyImageWidth: {
readonly type: import('vue').PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: 200;
};
readonly queryMinDelay: {
readonly type: NumberConstructor;
readonly default: 0;
};
readonly showBacktop: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((args_0: any[]) => any) | undefined;
onQuery?: ((args_0: {
pageNum: number;
pageSize: number;
}) => any) | undefined;
}>, {
endSuccess: (data: Array<any>, totalSize: number) => Promise<void>;
endError: () => void;
resetUpScroll: () => Promise<void>;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (args_0: any[]) => any;
query: (args_0: {
pageNum: number;
pageSize: number;
}) => any;
}, string, {
readonly height: string | number;
readonly modelValue: unknown[];
readonly upScrollPageNum: number;
readonly upScrollPageSize: number;
readonly upScrollEnabled: boolean;
readonly upScrollImmediate: boolean;
readonly scrollEventDelay: number;
readonly upScrollDistance: number;
readonly hideNoMoreByLimit: number;
readonly loadingMoreLoadingText: string;
readonly loadingMoreNoMoreText: string;
readonly emptyText: string;
readonly emptyImg: string;
readonly emptyImageWidth: string | number;
readonly queryMinDelay: number;
readonly showBacktop: boolean;
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
$slots: Readonly<{
default: any;
empty: any;
}> & {
default: any;
empty: any;
};
}) & import('vue').Plugin;
export default MtInfiniteScroll;