mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
15 lines
419 B
TypeScript
15 lines
419 B
TypeScript
// TODO: remove the directive in 3.0
|
|
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
|