File tree 2 files changed +6
-2
lines changed
components/vc-virtual-list
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,9 @@ const List = defineComponent({
459
459
fillerInnerRef,
460
460
} ;
461
461
} ,
462
+ const delayHideScrollBar = ( ) => {
463
+ scrollBarRef . value ?. delayHidden ( ) ;
464
+ } ;
462
465
render ( ) {
463
466
const {
464
467
prefixCls = 'rc - virtual - list ',
@@ -503,6 +506,7 @@ const List = defineComponent({
503
506
style = { componentStyle }
504
507
ref = "componentRef"
505
508
onScroll = { onFallbackScroll }
509
+ onMouseenter = { delayHideScrollBar }
506
510
>
507
511
< Filler
508
512
prefixCls = { prefixCls }
Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ export default defineComponent({
182
182
183
183
// ===================== Calculate =====================
184
184
getSpinHeight ( ) {
185
- const { height, count } = this . $props ;
186
- let baseHeight = ( height / count ) * 10 ;
185
+ const { height, scrollHeight } = this . $props ;
186
+ let baseHeight = ( height / scrollHeight ) * 100 ;
187
187
baseHeight = Math . max ( baseHeight , MIN_SIZE ) ;
188
188
baseHeight = Math . min ( baseHeight , height / 2 ) ;
189
189
return Math . floor ( baseHeight ) ;
You can’t perform that action at this time.
0 commit comments