Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新最新的v4.0.2版本, H5列表滚动以及高度不正常 #2156

Closed
adonis-lsh opened this issue Mar 3, 2023 · 7 comments
Closed

更新最新的v4.0.2版本, H5列表滚动以及高度不正常 #2156

adonis-lsh opened this issue Mar 3, 2023 · 7 comments
Assignees
Labels
h5 Taro H5 环境下的问题
Milestone

Comments

@adonis-lsh
Copy link

NutUI scenes(nutui 场景)

H5(@nutui/nutui)

NutUI-vue version(nutui-vue 版本)

4.0.2

Vue version(vue 版本)

3.3.0-alpha.4

Operating environment(运行环境)

dev:h5

Citation method(引用方式)

npm

Node version(node 版本)

16.18.0

Browser and its version(浏览器及其版本)

106

System and its version(系统及其版本)

12.6

Reproduction link(重现链接)

nutui.jd.com/h5/vue/4x/

Steps to reproduce(重现步骤)

小明
{{ item }}
<script lang="ts" setup> import {onMounted, reactive} from 'vue'; import {Search2} from '@nutui/icons-vue-taro'; import './index.less' onMounted(() => { state.count = state.count.map((item: number, index: number) => index + 1); }) const state = reactive({ searchValue: "", tab1value: 0, count: new Array(100).fill(0) }); const handleScroll = () => { let arr = new Array(100).fill(0); const len = state.count.length; state.count = state.count.concat(arr.map((item: number, index: number) => len + index + 1)); }; </script>

What is expected?(期望的结果是什么?)

正常展示

What is actually happening?(实际的结果是什么?)

image

@panguoxian
Copy link

还有一个问题,我这边还有一个问题是最后一个数据不显示。

@xsjkj-com
Copy link

是的,最后一个数据不显示。
更新数据还有错误
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'height')
at List.js:115:70

@LeeZChuan
Copy link

是nut-list这个虚拟列表吗?好像一个数据就会不渲染,多个数据最后一个数据就会不展示,这个列表会有这个问题

@adonis-lsh
Copy link
Author

还有一个问题,我这边还有一个问题是最后一个数据不显示。

的确是这样, 我更新了4.0.3也不行, 头疼, 问题比较多

@adonis-lsh
Copy link
Author

image

滚动的时候一直报这个错, 并且最后一个item没有展示全, 最新的4.0.3

@LeeZChuan
Copy link

image

滚动的时候一直报这个错, 并且最后一个item没有展示全, 最新的4.0.3

考虑再提一个issues?反馈一下这个问题?

@dyubo2005
Copy link

上述异常全是nut-list中的 watch(() => props.listData, ...) 事件没有生效,很烦躁

@eiinu eiinu added this to the v4.1.0 milestone May 11, 2023
@eiinu eiinu added the h5 Taro H5 环境下的问题 label May 11, 2023
@eiinu eiinu closed this as completed Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
h5 Taro H5 环境下的问题
Projects
None yet
Development

No branches or pull requests

7 participants