index.ts 382 B

12345678910111213
  1. import InfiniteScroll from './src'
  2. import type { App } from 'vue'
  3. import type { SFCWithInstall } from '@element-plus/utils'
  4. const _InfiniteScroll = InfiniteScroll as SFCWithInstall<typeof InfiniteScroll>
  5. _InfiniteScroll.install = (app: App) => {
  6. app.directive('InfiniteScroll', _InfiniteScroll)
  7. }
  8. export default _InfiniteScroll
  9. export const ElInfiniteScroll = _InfiniteScroll