Skip to content

Commit

Permalink
fix(list): 列表渲染缺少最后一条数据#2162
Browse files Browse the repository at this point in the history
  • Loading branch information
szg2008 committed Mar 9, 2023
1 parent 890f294 commit 64a3c5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packages/__VUE/list/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default create({
});
const end = computed(() => {
return Math.min(state.originStartIndex + visibleCount.value + props.bufferSize, state.list.length - 1);
return Math.min(state.originStartIndex + visibleCount.value + props.bufferSize, state.list.length);
});
const classes = computed(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/list/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default create({
});
const end = computed(() => {
return Math.min(state.originStartIndex + visibleCount.value + props.bufferSize, state.list.length - 1);
return Math.min(state.originStartIndex + visibleCount.value + props.bufferSize, state.list.length);
});
const classes = computed(() => {
Expand Down

0 comments on commit 64a3c5c

Please sign in to comment.