UNPKG

@guo514360255/element-lib

Version:

This template should help get you started developing with Vue 3 in Vite.

26 lines (25 loc) 594 B
import { FormConfig } from '../components/table'; export interface ModalOptions { title?: string; type?: 'dialog' | 'drawer' | string; formConfig?: FormConfig; submit?: Function; loading?: boolean; okText?: string; cancelText?: string; modalType?: 'detail' | undefined; labelPosition?: string | undefined; modalConfig?: { [key: string]: any; }; config?: { [key: string]: any; }; [key: string]: any; } /** * 创建Modal弹窗 */ export default function useModal(): { createModal: (options?: ModalOptions) => void; };