Skip to content

Commit

Permalink
improve internal types of the Transition component (Vue)
Browse files Browse the repository at this point in the history
+ add `attrs.class` as well
  • Loading branch information
RobinMalfait committed Mar 2, 2023
1 parent f5b0add commit 8ccb021
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,13 @@ export let TransitionChild = defineComponent({
...(appear && show && env.isServer
? {
// Already apply the `enter` and `enterFrom` on the server if required
class: normalizeClass([rest.class, ...enterClasses, ...enterFromClasses]),
class: normalizeClass([
attrs.class,
// @ts-expect-error not explicitly defined
rest.class,
...enterClasses,
...enterFromClasses,
]),
}
: {}),
}
Expand Down

0 comments on commit 8ccb021

Please sign in to comment.