Akryum / Akryum/vue-virtual-scroller
e.getBoundingClientRect is not a function
- 主要语言
- TypeScript
- 星标
- 10.8k
- 派生
- 973
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Describe the bug
```js
// ../../../node_modules/vue-virtual-scroller/dist/vue-virtual-scroller.esm.js at line 659:27
const { $el: el, direction } = this;
const isVertical = direction === 'vertical';
let scrollState;
if (this.pageMode) {
const bounds = el.getBoundingClientRect();
const boundsSize = isVertical ? bounds.height : bounds.width;
let start = -(isVertical ? bounds.top : bounds.left);
let size = isVertical ? window.innerHeight : window.innerWidth;
if (start < 0) {
size += start;
```
### Reproduction
-
### System Info
```shell
-
```
### Used Package Manager
npm
### Validations
- [X] Read the [docs](https://github.com/Akryum/vue-virtual-scroller/blob/master/packages/vue-virtual-scroller/README.md).
- [X] Check that there isn't [already an issue](https://github.com/Akryum/vue-virtual-scroller/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/Akryum/vue-virtual-scroller/discussions).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。