From 44ef538691b8be0fd925ca80c49157bad14962e8 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期六, 06 七月 2024 22:01:26 +0800 Subject: [PATCH] 一些优化 --- src/components/Transition/src/CreateTransition.tsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Transition/src/CreateTransition.tsx b/src/components/Transition/src/CreateTransition.tsx index d12518d..99cd2a9 100644 --- a/src/components/Transition/src/CreateTransition.tsx +++ b/src/components/Transition/src/CreateTransition.tsx @@ -1,7 +1,7 @@ import type { PropType } from 'vue'; import { defineComponent, Transition, TransitionGroup } from 'vue'; -import { getSlot } from '/@/utils/helper/tsxHelper'; +import { getSlot } from '@/utils/helper/tsxHelper'; type Mode = 'in-out' | 'out-in' | 'default' | undefined; @@ -23,8 +23,8 @@ }, }, setup(props, { slots, attrs }) { - const onBeforeEnter = (el: HTMLElement) => { - el.style.transformOrigin = props.origin; + const onBeforeEnter = (el: Element) => { + (el as HTMLElement).style.transformOrigin = props.origin; }; return () => { -- Gitblit v1.9.3