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