Skip to content

Commit 70d3cdc

Browse files
Whbbit1999kagol
authored andcommitted
fix: 修复DatePickerPro打开日历下拉面板时闪现两个滚动条的问题 close#1430
1 parent 43e6e38 commit 70d3cdc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/devui-vue/devui/virtual-list/src/virtual-list.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,10 @@ export default defineComponent({
240240
if (Math.abs(newScrollTop - state.scrollTop) >= 1) {
241241
syncScrollTop(newScrollTop);
242242
}
243-
barRef?.value?.onShowBar?.();
243+
244+
if (Math.abs(newScrollTop - state.scrollTop) !== 0) {
245+
barRef?.value?.onShowBar?.();
246+
}
244247
ctx.emit('scroll', e);
245248
};
246249

0 commit comments

Comments
 (0)