Skip to content

Commit

Permalink
feat: support displayName, closes #1494
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jun 24, 2021
1 parent 8d039cd commit cc479f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared-utils/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function basename (filename, ext) {
}

export function getComponentName (options) {
const name = options.name || options._componentTag
const name = options.displayName || options.name || options._componentTag
if (name) {
return name
}
Expand Down

1 comment on commit cc479f5

@bichikim
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you ~

Please sign in to comment.