Skip to content

Commit 64a3c5c

Browse files
committed
fix(list): 列表渲染缺少最后一条数据#2162
1 parent 890f294 commit 64a3c5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/packages/__VUE/list/index.taro.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default create({
9898
});
9999
100100
const end = computed(() => {
101-
return Math.min(state.originStartIndex + visibleCount.value + props.bufferSize, state.list.length - 1);
101+
return Math.min(state.originStartIndex + visibleCount.value + props.bufferSize, state.list.length);
102102
});
103103
104104
const classes = computed(() => {

src/packages/__VUE/list/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default create({
6565
});
6666
6767
const end = computed(() => {
68-
return Math.min(state.originStartIndex + visibleCount.value + props.bufferSize, state.list.length - 1);
68+
return Math.min(state.originStartIndex + visibleCount.value + props.bufferSize, state.list.length);
6969
});
7070
7171
const classes = computed(() => {

0 commit comments

Comments
 (0)