UNPKG

@varlet/ui

Version:

A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.

31 lines (22 loc) 734 B
import { VNode } from 'vue' import { BasicAttributes, Size as LoadingSize, SetPropsDefaults, VarComponent } from './varComponent' export declare const loadingProps: Record<keyof LoadingProps, any> export type LoadingType = 'circle' | 'wave' | 'cube' | 'rect' | 'disappear' export { LoadingSize } export interface LoadingProps extends BasicAttributes { type?: LoadingType radius?: string | number size?: LoadingSize color?: string description?: string loading?: boolean } export class Loading extends VarComponent { static setPropsDefaults: SetPropsDefaults<LoadingProps> $props: LoadingProps $slots: { default(): VNode[] description(): VNode[] } } export class _LoadingComponent extends Loading {}