Skip to content

Commit

Permalink
refactor(types): use DOMRect instead of the Position type (#5012)
Browse files Browse the repository at this point in the history
  • Loading branch information
caozhong1996 committed Dec 6, 2021
1 parent d70dd9f commit 595a937
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/runtime-dom/src/components/TransitionGroup.ts
Expand Up @@ -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
Expand Down

0 comments on commit 595a937

Please sign in to comment.