vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
16 lines (15 loc) • 441 B
TypeScript
import { Ref } from 'vue';
import { Emits, Props } from '../types';
/**
* hook
*
* @param props 组件属性
* @param props 主实体
* @param props 按住拖拽实体
* @param emits 组件事件
*/
export declare const useModal: (props: Props, contentRef: Ref<HTMLDivElement | null>, headerRef: Ref<HTMLDivElement | null>, emits: Emits) => {
handleClose: () => void;
handleOk: () => void;
handleMaskClose: () => void;
};