mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
[new feature] Dialog: add getContainer option (#3040)
This commit is contained in:
5
types/dialog.d.ts
vendored
5
types/dialog.d.ts
vendored
@@ -13,8 +13,9 @@ export type DialogOptions = {
|
||||
showConfirmButton?: boolean;
|
||||
showCancelButton?: boolean;
|
||||
closeOnClickOverlay?: boolean;
|
||||
getContainer?: string | (() => HTMLElement);
|
||||
beforeClose?: (action: DialogAction, done: DialogDone) => void;
|
||||
}
|
||||
};
|
||||
|
||||
export interface Dialog {
|
||||
(options: DialogOptions): Promise<DialogAction>;
|
||||
@@ -28,7 +29,7 @@ export interface Dialog {
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
$dialog: Dialog
|
||||
$dialog: Dialog;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user