Skip to content

Commit

Permalink
fix: 修复数据重新赋值部分无效的问题
Browse files Browse the repository at this point in the history
fix #108
  • Loading branch information
xpyjs committed Jul 1, 2024
1 parent d486aed commit 3ad16b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/root/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ onMounted(() => {
() => props.data,
val => {
if (val.length !== store.$data.length) {
$param.rootHeight = getHeight();
nextTick(() => {
separateLineHeight.value = getHeight();
$param.rootHeight = getHeight();
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/composables/useInView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default () => {
inView[i].hide ||
inView[i].flatIndex <= top.value ||
inView[i].flatIndex >= bottom.value ||
store.$data.flatData[inView[i].flatIndex].id !== inView[i].id
!store.$data.flatData[inView[i].flatIndex].isSame(inView[i].data)
) {
inView.splice(i, 1);
}
Expand Down

0 comments on commit 3ad16b3

Please sign in to comment.