mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
refactor(components): [scrollbar] simplify emits type checking (#8281)
This commit is contained in:
parent
eace0489ea
commit
efbd80ff80
@ -48,7 +48,7 @@ export const scrollbarEmits = {
|
||||
}: {
|
||||
scrollTop: number
|
||||
scrollLeft: number
|
||||
}) => isNumber(scrollTop) && isNumber(scrollLeft),
|
||||
}) => [scrollTop, scrollLeft].every(isNumber),
|
||||
}
|
||||
export type ScrollbarEmits = typeof scrollbarEmits
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user