소스 검색

Loading: add missing definition of directive (#11749)

杨奕 7 년 전
부모
커밋
f6df39e8c1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      types/loading.d.ts

+ 2 - 0
types/loading.d.ts

@@ -50,6 +50,8 @@ 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
 }
 
 declare module 'vue/types/vue' {