mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
types: fix teleport typing #7687
This commit is contained in:
3
types/dialog.d.ts
vendored
3
types/dialog.d.ts
vendored
@@ -1,4 +1,5 @@
|
||||
import { VanComponent } from './component';
|
||||
import { TeleportProps } from 'vue';
|
||||
|
||||
type DialogAction = 'confirm' | 'cancel';
|
||||
type DialogDone = (close?: boolean) => void;
|
||||
@@ -9,6 +10,7 @@ export type DialogOptions = {
|
||||
message?: string;
|
||||
theme?: string;
|
||||
overlay?: boolean;
|
||||
teleport?: TeleportProps['to'];
|
||||
className?: any;
|
||||
allowHtml?: boolean;
|
||||
lockScroll?: boolean;
|
||||
@@ -24,7 +26,6 @@ export type DialogOptions = {
|
||||
showConfirmButton?: boolean;
|
||||
showCancelButton?: boolean;
|
||||
closeOnClickOverlay?: boolean;
|
||||
getContainer?: string | (() => Element);
|
||||
beforeClose?: (action: DialogAction, done: DialogDone) => void;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user