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'
|
} 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user