Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support displayName #1494

Closed
bichikim opened this issue Jun 24, 2021 · 0 comments
Closed

Support displayName #1494

bichikim opened this issue Jun 24, 2021 · 0 comments

Comments

@bichikim
Copy link

Version

6.0.0-beta.14

Browser and OS info

Edge 91.0.864.48

Steps to reproduce

https://github.com/vuejs/vue-next/blob/bd3cc4d2c79454736908433b607b1e1323bea67a/packages/runtime-core/src/compat/componentFunctional.ts#L57

What is expected?

displayName should be a name to display instead of a function name

What is actually happening?

it ignores the displayName


function getComponentTypeName (options) {
  const name = options.displayName || options.name || options._componentTag || options.__vdevtools_guessedName
  if (name) {
    return name
  }
  const file = options.__file // injected by vue-loader
  if (file) {
    return classify(basename(file, '.vue'))
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants