Browse Source

fix: code error #7001

pull/7025/head
tangjinzhou 1 year ago
parent
commit
4a1296bb3f
  1. 10
      components/vc-virtual-list/List.tsx

10
components/vc-virtual-list/List.tsx

@ -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

Loading…
Cancel
Save