mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
refactor(components): [scrollbar] simplify emits type checking (#8281)
This commit is contained in:
@@ -48,7 +48,7 @@ export const scrollbarEmits = {
|
||||
}: {
|
||||
scrollTop: number
|
||||
scrollLeft: number
|
||||
}) => isNumber(scrollTop) && isNumber(scrollLeft),
|
||||
}) => [scrollTop, scrollLeft].every(isNumber),
|
||||
}
|
||||
export type ScrollbarEmits = typeof scrollbarEmits
|
||||
|
||||
|
||||
Reference in New Issue
Block a user