]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update
authordaiwei <daiwei521@126.com>
Wed, 19 Mar 2025 00:44:30 +0000 (08:44 +0800)
committerdaiwei <daiwei521@126.com>
Wed, 19 Mar 2025 00:44:30 +0000 (08:44 +0800)
packages/runtime-vapor/src/components/Transition.ts

index 484d7f39435f6ae8d5ecd013cf85e06b8c6fef85..39e34277edc2f3b1233b17206641d4de4a5f1d65 100644 (file)
@@ -1,5 +1,4 @@
 import {
-  type FunctionalComponent,
   type GenericComponentInstance,
   type TransitionElement,
   type TransitionHooks,
@@ -22,6 +21,7 @@ import {
   isFragment,
 } from '../block'
 import {
+  type FunctionalVaporComponent,
   type VaporComponentInstance,
   applyFallthroughProps,
   isVaporComponent,
@@ -36,8 +36,8 @@ const decorate = (t: typeof VaporTransition) => {
   return t
 }
 
-export const VaporTransition: FunctionalComponent<TransitionProps> =
-  /*@__PURE__*/ decorate((props, { slots, attrs }) => {
+export const VaporTransition: FunctionalVaporComponent = /*@__PURE__*/ decorate(
+  (props, { slots, attrs }) => {
     const children = (slots.default && slots.default()) as any as Block
     if (!children) return
 
@@ -93,7 +93,8 @@ export const VaporTransition: FunctionalComponent<TransitionProps> =
     )
 
     return children
-  })
+  },
+)
 
 const getTransitionHooksContext = (
   key: String,