jd-opensource / jd-opensource/nutui
List的scroll-bottom事件不触发,持续报错
- Dominant language
- Vue
- Stars
- 6.5k
- Forks
- 835
- PR merge metrics
- No merged PRs in 30d
Description
### NutUI scenes(nutui 场景)
H5 + 小程序
### NutUI-vue version(nutui-vue 版本)
4.0.4
### Vue version(vue 版本)
3.2.47
### Operating environment(运行环境)
dev:h5
### Citation method(引用方式)
npm
### Node version(node 版本)
19.8.1
### Browser and its version(浏览器及其版本)
Chrome110
### System and its version(系统及其版本)
Win11
### Taro environmental information(taro 环境信息)
👽 Taro v3.6.2
Taro CLI 3.6.2 environment info:
System:
OS: Windows 10
Binaries:
Node: 19.8.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Users\Administrator\AppData\Local\pnpm\yarn.CMD
npm: 9.6.1 - C:\Program Files\nodejs\npm.CMD
### Reproduction link(重现链接)
[nutui.jd.com/taro/vue/4x/](https://nutui.jd.com/taro/vue/4x/#/zh-CN/component/list)
### Steps to reproduce(重现步骤)
任意写一个list,传入container-height,内容超出范围滚动
### What is expected?(期望的结果是什么?)
触发对应事件
### What is actually happening?(实际的结果是什么?)
滚动时持续报错:
caught (in promise) TypeError: Cannot read properties of undefined (reading 'bottom')
at getStartIndex (List.js:170:1)
at _callee2$ (List.js:186:1)
at tryCatch (regeneratorRuntime.js:44:1)
at Generator.eval (regeneratorRuntime.js:125:1)
at Generator.eval [as next] (regeneratorRuntime.js:69:1)
at asyncGeneratorStep (asyncToGenerator.js:3:1)
at _next (asyncToGenerator.js:22:1)
at eval (asyncToGenerator.js:27:1)
at new Promise ()
at eval (asyncToGenerator.js:19:1)
g
### Remarks(补充说明)
scroll-up/down也是如此
Contributor guide
Assessment
This issue has not been assessed yet.