UNPKG

vue-admin-core

Version:
8 lines (7 loc) 605 B
import { Component, ExtractPropTypes, VNode } from "vue"; import { dialogProps } from "element-plus"; import { PopupProps, UseElPopupResultType } from "../__shared__/useCorePopup"; export type DialogProps = Omit<ExtractPropTypes<typeof dialogProps>, "title"> & PopupProps; export type DialogTitle = string | number | Component | VNode | (() => VNode); export type DialogContent = Component | (() => VNode); export declare function useElDialog(title: DialogProps | DialogTitle, content: DialogContent): UseElPopupResultType<DialogProps | DialogTitle, DialogProps | DialogTitle, DialogProps | DialogTitle>;