yujinpan / el-table-infinite-scroll

Infinite scroll for el-table.
https://yujinpan.github.io/el-table-infinite-scroll/
MIT License
193 stars 41 forks source link

vue3 无法引入 #24

Open zhumj opened 1 year ago

zhumj commented 1 year ago

类型“DirectiveOptions”的参数不能赋给类型“Plugin_2”的参数。

happyhaihaihaihaihaihaihaihai commented 1 year ago

遇到同样的问题 @zhumj image

yujinpan commented 1 year ago

感谢反馈,3.0.3 中已修复。

Evecang commented 1 year ago

感谢反馈,3.0.3 中已修复。

在组件文件中引用,这似乎没有作用(Vue3 + ts): import * as vElTableInfiniteScroll from 'el-table-infinite-scroll';

yujinpan commented 1 year ago

import * as vElTableInfiniteScroll from 'el-table-infinite-scroll';

import { default as vElTableInfiniteScroll } from "el-table-infinite-scroll";

Evecang commented 1 year ago

import * as vElTableInfiniteScroll from 'el-table-infinite-scroll';

import { default as vElTableInfiniteScroll } from "el-table-infinite-scroll";

thank you 找到问题原因了,我的工程自定义了element样式前缀(el-xxx-scrollbarwrap),导致该插件找不到el-scrollbarwrap滚动容器

Tnze commented 3 months ago

image image

Tnze commented 3 months ago

Upgrade from 3 to 3.0.6 fix the problem.

Maybe we should change the tutorial in README.