@aplus-frontend/antdv
Version:
Vue basic component library maintained based on ant-design-vue
13 lines (12 loc) • 457 B
TypeScript
import type { MaybeRef, VueNode } from '../../_util/type';
import type { ModalFuncProps } from '../Modal';
import type { ModalStaticFunctions } from '../confirm';
export type ModalFuncWithRef = (props: MaybeRef<ModalFuncProps>) => {
destroy: () => void;
update: (configUpdate: ModalFuncProps) => void;
};
declare function useModal(): readonly [
Omit<ModalStaticFunctions<ModalFuncWithRef>, 'warn'>,
() => VueNode
];
export default useModal;