Skip to content

Commit 4a1296b

Browse files
committed
fix: code error #7001
1 parent b9c6565 commit 4a1296b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

components/vc-virtual-list/List.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,9 @@ const List = defineComponent({
442442
},
443443
{ flush: 'post' },
444444
);
445-
445+
const delayHideScrollBar = () => {
446+
scrollBarRef.value?.delayHidden();
447+
};
446448
return {
447449
state,
448450
mergedData,
@@ -457,11 +459,10 @@ const List = defineComponent({
457459
sharedConfig,
458460
scrollBarRef,
459461
fillerInnerRef,
462+
delayHideScrollBar,
460463
};
461464
},
462-
const delayHideScrollBar = () => {
463-
scrollBarRef.value?.delayHidden();
464-
};
465+
465466
render() {
466467
const {
467468
prefixCls = 'rc-virtual-list',
@@ -491,6 +492,7 @@ const List = defineComponent({
491492
sharedConfig,
492493
setInstance,
493494
mergedData,
495+
delayHideScrollBar,
494496
} = this;
495497
return (
496498
<div

0 commit comments

Comments
 (0)