@arco-design/web-vue
Version:
Arco Design Vue 2.0: A Vue.js 3 UI Library
11 lines (10 loc) • 516 B
TypeScript
declare type ImageLoadStatusType = 'beforeLoad' | 'loading' | 'error' | 'loaded';
export default function useImageLoadStatus(defaultValue?: ImageLoadStatusType): {
status: import("vue").Ref<ImageLoadStatusType, ImageLoadStatusType>;
isBeforeLoad: import("vue").ComputedRef<boolean>;
isLoading: import("vue").ComputedRef<boolean>;
isError: import("vue").ComputedRef<boolean>;
isLoaded: import("vue").ComputedRef<boolean>;
setLoadStatus: (newStatus: ImageLoadStatusType) => void;
};
export {};