element-plus/packages/components/infinite-scroll/index.ts
三咲智子 b8c38a9fe5
chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00

14 lines
382 B
TypeScript

import InfiniteScroll from './src'
import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils'
const _InfiniteScroll = InfiniteScroll as SFCWithInstall<typeof InfiniteScroll>
_InfiniteScroll.install = (app: App) => {
app.directive('InfiniteScroll', _InfiniteScroll)
}
export default _InfiniteScroll
export const ElInfiniteScroll = _InfiniteScroll