refactor(types): use DOMRect
instead of the Position
type (#5012)
This commit is contained in:
parent
d70dd9faaa
commit
595a93715b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user