Infinite scroll for el-table.
npm install el-table-infinite-scrollInfinite scroll for el-table.
> This directive only does event forwarding,
> which is equivalent to replacing the target DOM
> of ElInfiniteScroll with the scroll layer of ElTable.
https://yujinpan.github.io/el-table-infinite-scroll
Version >= 3
``sh`
npm install --save el-table-infinite-scroll@3
#### Global register
`js
import { createApp } from "vue";
import App from "./src/App.vue";
import ElTableInfiniteScroll from "el-table-infinite-scroll";
const app = createApp(App);
app.use(ElTableInfiniteScroll);
app.mount("#app");
`
#### Component register
`vue
`
`vue
:data="data"
:infinite-scroll-disabled="disabled"
height="200px"
>
`
Supported element-plus/infinite-scroll all options.
Version ^ 2
`sh`
npm install --save el-table-infinite-scroll@2
#### Global register
`js
import Vue from "vue";
import ElTableInfiniteScroll from "el-table-infinite-scroll";
Vue.directive("el-table-infinite-scroll", ElTableInfiniteScroll);
`
#### Component register
`vue`
`vue
:data="data"
:infinite-scroll-disabled="disabled"
height="200px"
>
``
Supported element-ui/infinite-scroll all options.
Thanks to JetBrains for supporting my free open source license.