diff --git a/types/element-ui.d.ts b/types/element-ui.d.ts index 6eced80ca44..e35fe0cd6d3 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 a672195e123..4fbeb3df1b6 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