Skip to content

Commit

Permalink
chore: add display names for dom transition components
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 29, 2020
1 parent f8c6f8c commit d32aed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/runtime-dom/src/components/Transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const Transition: FunctionalComponent<TransitionProps> = (
) => h(BaseTransition, resolveTransitionProps(props), slots)

Transition.inheritRef = true
Transition.displayName = 'Transition'

const DOMTransitionPropsValidators = {
name: String,
Expand Down
2 changes: 2 additions & 0 deletions packages/runtime-dom/src/components/TransitionGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export type TransitionGroupProps = Omit<TransitionProps, 'mode'> & {
}

const TransitionGroupImpl = {
name: 'TransitionGroup',

props: extend({}, TransitionPropsValidators, {
tag: String,
moveClass: String
Expand Down

0 comments on commit d32aed0

Please sign in to comment.