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

View File

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