From: Che Guevara <836934184@qq.com> Date: Mon, 6 Dec 2021 04:19:47 +0000 (+0800) Subject: refactor(types): use `DOMRect` instead of the `Position` type (#5012) X-Git-Tag: v3.2.24~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=595a93715bab9a611e2b2575229f7bcf6b85c5ec;p=thirdparty%2Fvuejs%2Fcore.git refactor(types): use `DOMRect` instead of the `Position` type (#5012) --- diff --git a/packages/runtime-dom/src/components/TransitionGroup.ts b/packages/runtime-dom/src/components/TransitionGroup.ts index 8c5739ac15..5c78be26d7 100644 --- a/packages/runtime-dom/src/components/TransitionGroup.ts +++ b/packages/runtime-dom/src/components/TransitionGroup.ts @@ -27,13 +27,8 @@ import { } from '@vue/runtime-core' import { extend } from '@vue/shared' -interface Position { - top: number - left: number -} - -const positionMap = new WeakMap() -const newPositionMap = new WeakMap() +const positionMap = new WeakMap() +const newPositionMap = new WeakMap() export type TransitionGroupProps = Omit & { tag?: string