mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-16 02:11:48 +08:00
14 lines
394 B
TypeScript
14 lines
394 B
TypeScript
|
import InfiniteScroll from './src/index'
|
||
|
|
||
|
import type { App } from 'vue'
|
||
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
||
|
|
||
|
const _InfiniteScroll = InfiniteScroll as SFCWithInstall<typeof InfiniteScroll>
|
||
|
|
||
|
_InfiniteScroll.install = (app: App) => {
|
||
|
app.directive('InfiniteScroll', _InfiniteScroll)
|
||
|
}
|
||
|
|
||
|
export default _InfiniteScroll
|
||
|
export const ElInfiniteScroll = _InfiniteScroll
|