arco-design-vue
arco-design-vue copied to clipboard
页面缩放后导致select 触底加载不触发
- [ ] I'm sure this does not appear in the issue list of the repository
Basic Info
- Package Name And Version: @arco-design/[email protected]
- Browser: chrome136.0.0.0
Extra info
页面缩放百分之90或者110的时候我的电脑都不触发,多了个1像素的偏差,我看源码里面有一个bottomOffset,这里配置成1像素的话又会触发多次,下方的arcodesign的select触底源码 const handleScroll = (e: Event) => { const { scrollTop, scrollHeight, offsetHeight } = e.target as HTMLElement; const bottom = scrollHeight - (scrollTop offsetHeight); if (bottom <= props.bottomOffset) { emit('reachBottom', e); } emit('scroll', e); }; 感觉可以参考下vueuse的useInfiniteScroll的方法,这个不会导致缩放影响触底事件。