From 878a7f8d4338c86cb4367faae0662c7cfc49cba2 Mon Sep 17 00:00:00 2001 From: iamkun Date: Thu, 30 May 2019 18:25:34 +0800 Subject: [PATCH] Chore: Update infiniteScroll type (#15794) --- types/element-ui.d.ts | 4 ++-- types/infiniteScroll.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/element-ui.d.ts b/types/element-ui.d.ts index 6eced80ca..e35fe0cd6 100644 --- a/types/element-ui.d.ts +++ b/types/element-ui.d.ts @@ -327,8 +327,8 @@ export class Calendar extends ElCalendar {} /** Backtop Component */ export class Backtop extends ElBacktop {} -/** InfiniteScroll Component */ -export class InfiniteScroll extends ElInfiniteScroll {} +/** InfiniteScroll Directive */ +export const InfiniteScroll: PluginObject; /** PageHeader Component */ export class PageHeader extends ElPageHeader {} diff --git a/types/infiniteScroll.d.ts b/types/infiniteScroll.d.ts index a672195e1..4fbeb3df1 100644 --- a/types/infiniteScroll.d.ts +++ b/types/infiniteScroll.d.ts @@ -1,6 +1,6 @@ import { VNodeDirective } from 'vue' -export interface ElLoadingDirective extends VNodeDirective { +export interface ElInfiniteScroll extends VNodeDirective { name: 'infinite-scroll', value: Function } \ No newline at end of file