vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
14 lines (13 loc) • 455 B
TypeScript
import { ComponentPublicInstance } from 'vue';
export type LoadingState = 'default' | 'success' | 'error' | 'warning';
export type LoadingPosition = 'top' | 'bottom';
export interface LoadingOptions {
percent: number;
strokeWidth?: number;
state?: LoadingState;
position?: LoadingPosition;
maxPercent?: number;
}
export interface LoadingInstance extends ComponentPublicInstance {
startLoading: (options: LoadingOptions) => void;
}