forked from vuejs/language-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(language-core): resolve components with various name cases correc…
…tly (vuejs#5067)
- Loading branch information
Showing
4 changed files
with
48 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
test-workspace/tsc/passedFixtures/vue3_strictTemplate/#5067/comp.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<script setup lang="ts" generic="T"> | ||
defineProps<{ | ||
foo?: T; | ||
}>(); | ||
defineEmits<{ | ||
foo: [value: T] | ||
}>(); | ||
</script> |
30 changes: 30 additions & 0 deletions
30
test-workspace/tsc/passedFixtures/vue3_strictTemplate/#5067/main.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script setup lang="ts"> | ||
import { exactType } from '../../shared'; | ||
import { | ||
default as isComp1, | ||
default as IsComp2 | ||
} from './comp.vue'; | ||
const isComp3 = isComp1; | ||
const IsComp4 = isComp3; | ||
</script> | ||
|
||
<template> | ||
<is-comp1 foo="" @foo="v => exactType(v, {} as string)" /> | ||
<isComp1 foo="" @foo="v => exactType(v, {} as string)" /> | ||
<!-- @vue-expect-error --> | ||
<IsComp1 /> | ||
|
||
<is-comp2 foo="" @foo="v => exactType(v, {} as string)" /> | ||
<isComp2 foo="" @foo="v => exactType(v, {} as string)" /> | ||
<IsComp2 foo="" @foo="v => exactType(v, {} as string)" /> | ||
|
||
<is-comp3 foo="" @foo="v => exactType(v, {} as string)" /> | ||
<isComp3 foo="" @foo="v => exactType(v, {} as string)" /> | ||
<!-- @vue-expect-error --> | ||
<IsComp3 /> | ||
|
||
<is-comp4 foo="" @foo="v => exactType(v, {} as string)" /> | ||
<isComp4 foo="" @foo="v => exactType(v, {} as string)" /> | ||
<IsComp4 foo="" @foo="v => exactType(v, {} as string)" /> | ||
</template> |