We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
displayName
1 parent e61df6f commit 20efd82Copy full SHA for 20efd82
packages/devtools-kit/src/core/component/utils/index.ts
@@ -2,6 +2,9 @@ import type { AppRecord, VueAppInstance } from '../../../types'
2
import { basename, classify } from '@vue/devtools-shared'
3
4
function getComponentTypeName(options: VueAppInstance['type']) {
5
+ if (typeof options === 'function') {
6
+ return options.displayName || options.name || options.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || ''
7
+ }
8
const name = options.name || options._componentTag || options.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || options.__name
9
if (name === 'index' && options.__file?.endsWith('index.vue')) {
10
return ''
0 commit comments