refactor(types): use DOMRect instead of the Position type (#5012)

This commit is contained in:
Che Guevara 2021-12-06 12:19:47 +08:00 committed by GitHub
parent d70dd9faaa
commit 595a93715b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,13 +27,8 @@ import {
} from '@vue/runtime-core'
import { extend } from '@vue/shared'
interface Position {
top: number
left: number
}
const positionMap = new WeakMap<VNode, Position>()
const newPositionMap = new WeakMap<VNode, Position>()
const positionMap = new WeakMap<VNode, DOMRect>()
const newPositionMap = new WeakMap<VNode, DOMRect>()
export type TransitionGroupProps = Omit<TransitionProps, 'mode'> & {
tag?: string