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

list组价 #2162

Closed
yanduhantan1991 opened this issue Mar 6, 2023 · 1 comment
Closed

list组价 #2162

yanduhantan1991 opened this issue Mar 6, 2023 · 1 comment
Assignees

Comments

@yanduhantan1991
Copy link

NutUI scenes(nutui 场景)

H5(@nutui/nutui)

NutUI-vue version(nutui-vue 版本)

4.0.2

Vue version(vue 版本)

3.2.47

Operating environment(运行环境)

dev:h5

Citation method(引用方式)

npm

Node version(node 版本)

16.18.0

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

最新

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

win10

Reproduction link(重现链接)

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

Steps to reproduce(重现步骤)

不太清楚是不是使用方式不正确,在数据比较少的时候,只有几条数据,list组件列表项最后一个没有显示,visibleData在截取数据的时候最后一条没有算上

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

正常显示数据

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

列表最后一条数据没有显示

Remarks(补充说明)

const end = computed(() => {
return Math.min(state.originStartIndex + visibleCount.value + props.bufferSize, state.list.length - 1);
});

const visibleData: ComputedRef = computed(() => {
return state.list.slice(state.start, end.value);
});

@szg2008
Copy link
Contributor

szg2008 commented Mar 9, 2023

已修复,下次发版可用,感谢反馈🙏

@szg2008 szg2008 closed this as completed Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants