UNPKG

vuux

Version:

Vue3 Nuxt3 Nuxt4 组件库

15 lines (14 loc) 401 B
import { Ref, StyleValue } from 'vue'; import { Props } from '../types'; /** * hook * * @param props 组件属性 * @param imageRef 实例 */ export declare const useImage: (props: Props, imageRef: Ref<HTMLDivElement | null>) => { isError: Ref<boolean, boolean>; styles: import('vue').ComputedRef<StyleValue>; handleImagePreview: (imgUrl: string) => void; onError: () => void; };