mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
style(components): [table] clean code (#7309)
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
This commit is contained in:
@@ -151,10 +151,7 @@ function useStyle<T>(
|
||||
}
|
||||
const hasScrollClass = (className: string) => {
|
||||
const { tableWrapper } = table.refs
|
||||
if (tableWrapper && tableWrapper.classList.contains(className)) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return !!(tableWrapper && tableWrapper.classList.contains(className))
|
||||
}
|
||||
const syncPostion = function () {
|
||||
if (!table.refs.scrollBarRef) return
|
||||
|
||||
Reference in New Issue
Block a user