types: fix ComponentCustomProperties

This commit is contained in:
chenjiahan
2020-09-01 15:58:15 +08:00
parent e2c082b204
commit 0acbc6ec21
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ export type DialogOptions = {
transition?: string;
messageAlign?: string;
overlayClass?: string;
overlayStyle?: object;
overlayStyle?: Record<string, any>;
closeOnPopstate?: boolean;
cancelButtonText?: string;
cancelButtonColor?: string;
@@ -39,8 +39,8 @@ export interface Dialog {
Component: typeof VanComponent;
}
declare module 'vue/types/vue' {
interface Vue {
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$dialog: Dialog;
}
}