Skip to content

Commit

Permalink
feat(Transition): add key to Transition props
Browse files Browse the repository at this point in the history
  • Loading branch information
gucovip authored and haoqunjiang committed Oct 25, 2023
1 parent 1789c1c commit c6e00a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/runtime-core/src/components/BaseTransition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface BaseTransitionProps<HostElement = RendererElement> {
// injected hooks (e.g. v-show).
persisted?: boolean

key?: string | number | symbol

// Hooks. Using camel case for easier usage in render functions & JSX.
// In templates these can be written as @before-enter="xxx" as prop names
// are camelized.
Expand Down Expand Up @@ -118,6 +120,7 @@ export const BaseTransitionPropsValidators = {
mode: String,
appear: Boolean,
persisted: Boolean,
key: [String, Number, Symbol],
// enter
onBeforeEnter: TransitionHookValidator,
onEnter: TransitionHookValidator,
Expand Down

0 comments on commit c6e00a7

Please # to comment.