vue3-use-modal
Version:
vue3-use-modal is vue3(vue-next) plugin that provide easy use of modal. It is not only component based but also lets using modal either asynchronous or synchronous behavior.
11 lines (10 loc) • 434 B
TypeScript
import type { IModalProxy, ModalExposed, AddModalProxyParams } from './types/modal-proxy';
export default class ModalProxy implements IModalProxy {
static modalProxy?: ModalProxy;
modalExposed?: ModalExposed;
constructor(key: any);
static getInstance(): ModalProxy;
setModalExposed(exposed: ModalExposed): this;
addModal<T>(params: AddModalProxyParams): void | Promise<T>;
closeModal(key: string): void;
}