diff --git a/types/loading.d.ts b/types/loading.d.ts index e86df3edb..45c1b98b4 100644 --- a/types/loading.d.ts +++ b/types/loading.d.ts @@ -1,4 +1,4 @@ -import Vue, { VNodeDirective } from 'vue' +import Vue, { VNodeDirective, PluginObject } from 'vue' /** Options used in Loading service */ export interface LoadingServiceOptions { @@ -51,7 +51,7 @@ export interface ElLoading { /** If you do not have a specific DOM node to attach the Loading directive, or if you simply prefer not to use Loading as a directive, you can call this service with some configs to open a Loading instance. */ service (options: LoadingServiceOptions): ElLoadingComponent - directive: object + directive: PluginObject } declare module 'vue/types/vue' {