This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

优化滚动组件滚动条的判断

old
宇天 2021-02-01 19:38:58 +08:00
parent ca6fde3bdf
commit ee8c538708
1 changed files with 3 additions and 3 deletions

View File

@ -255,11 +255,11 @@ export default class Scroll {
xw = 50 xw = 50
} }
// 100%时不显示 // 100%或主体高度比滚动条还短时不显示
if (xw === ow) { if (xw >= ow) {
xw = 0 xw = 0
} }
if (yh === oh) { if (yh >= oh) {
yh = 0 yh = 0
} }