UNPKG

hongluan-ui

Version:
27 lines (26 loc) 911 B
import type { Ref } from 'vue'; import type { DialogProps } from './dialog'; export declare const CLOSE_EVENT = "close"; export declare const OPEN_EVENT = "open"; export declare const CLOSED_EVENT = "closed"; export declare const OPENED_EVENT = "opened"; export declare const useDialog: (props: DialogProps, targetRef: Ref<HTMLElement | undefined>) => { afterEnter: () => void; afterLeave: () => void; beforeLeave: () => void; handleClose: () => void; onModalClick: () => void; close: () => void; doClose: () => void; onOpenAutoFocus: () => void; onCloseAutoFocus: () => void; onCloseRequested: () => void; onFocusoutPrevented: (event: CustomEvent) => void; titleId: Ref<string>; bodyId: Ref<string>; closed: Ref<boolean>; rendered: Ref<boolean>; animName: import("vue").ComputedRef<string>; visible: Ref<boolean>; zIndex: Ref<number>; };