fix: code error #7001

pull/7025/head
tangjinzhou 2023-10-16 14:35:19 +08:00
parent b9c65656db
commit 4a1296bb3f
1 changed files with 6 additions and 4 deletions

View File

@ -442,7 +442,9 @@ const List = defineComponent({
},
{ flush: 'post' },
);
const delayHideScrollBar = () => {
scrollBarRef.value?.delayHidden();
};
return {
state,
mergedData,
@ -457,11 +459,10 @@ const List = defineComponent({
sharedConfig,
scrollBarRef,
fillerInnerRef,
delayHideScrollBar,
};
},
const delayHideScrollBar = () => {
scrollBarRef.value?.delayHidden();
};
render() {
const {
prefixCls = 'rc-virtual-list',
@ -491,6 +492,7 @@ const List = defineComponent({
sharedConfig,
setInstance,
mergedData,
delayHideScrollBar,
} = this;
return (
<div