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

fix(language-core): generate codes for :key prop on v-for and v-if node #4544

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
tests: update test
so1ve committed Jul 9, 2024

Verified

This commit was signed with the committer’s verified signature.
so1ve Ray
commit a5295f1264590bf866351b698174c64d1d7119f7
7 changes: 6 additions & 1 deletion test-workspace/tsc/should-error-#4539/main.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<script setup lang="ts"></script>
<script setup lang="ts">
const key = {};
</script>

<template>
<template v-for="_i in 1" :key></template>
<template v-for="_i in 1" :key="{}"></template>
<template v-if="true" :key></template>
<template v-if="true" :key="{}"></template>
<div v-if="true" :key="{}"></div>
</template>