import { RenderFunction, SetupContext, Ref } from 'vue' import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSizeType, VxeComponentStatusType } from '@vxe-ui/core' /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */ export declare const VxeLoading: DefineVxeComponentApp export type VxeLoadingComponent = DefineVxeComponentOptions export type VxeLoadingInstance = DefineVxeComponentInstance export interface VxeLoadingConstructor extends VxeComponentBaseOptions, VxeLoadingMethods { props: VxeLoadingProps context: SetupContext reactData: LoadingReactData getRefMaps(): LoadingPrivateRef getComputeMaps(): LoadingPrivateComputed renderVN: RenderFunction } export interface LoadingPrivateRef { refElem: Ref } export interface VxeLoadingPrivateRef extends LoadingPrivateRef {} export namespace VxeLoadingPropTypes { export type ModelValue = boolean export type Icon = string export type ShowIcon = boolean export type Text = string export type ShowText = boolean export type Status = VxeComponentStatusType export type Size = VxeComponentSizeType } export interface VxeLoadingProps { modelValue?: VxeLoadingPropTypes.ModelValue icon?: VxeLoadingPropTypes.Icon showIcon?: VxeLoadingPropTypes.ShowIcon text?: VxeLoadingPropTypes.Text showText?: VxeLoadingPropTypes.ShowText status?: VxeLoadingPropTypes.Status size?: VxeLoadingPropTypes.Size } export interface LoadingPrivateComputed {} export interface VxeLoadingPrivateComputed extends LoadingPrivateComputed {} export interface LoadingReactData { initialized: boolean } export interface LoadingMethods {} export interface VxeLoadingMethods extends LoadingMethods {} export interface LoadingPrivateMethods {} export interface VxeLoadingPrivateMethods extends LoadingPrivateMethods {} export type VxeLoadingEmits = [] export namespace VxeLoadingDefines { export interface LoadingEventParams extends VxeComponentEventParams { $loading: VxeLoadingConstructor } } export type VxeLoadingEventProps = {} export interface VxeLoadingListeners {} export namespace VxeLoadingEvents {} export namespace VxeLoadingSlotTypes { export interface DefaultSlotParams {} } export interface VxeLoadingSlots { default: (params: VxeLoadingSlotTypes.DefaultSlotParams) => any icon: (params: VxeLoadingSlotTypes.DefaultSlotParams) => any text: (params: VxeLoadingSlotTypes.DefaultSlotParams) => any } /** * 全局加载中 */ export interface LoadingController { /** * 打开 * @param options 参数 */ open(options?: { icon?: VxeLoadingPropTypes.Icon; text?: VxeLoadingPropTypes.Text }): Promise /** * 关闭 */ close(): Promise } export const Loading: typeof VxeLoading export default VxeLoading