We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.1.0
1.92.2
3.4.38
5.5.4
No response
This is a regression in Vue - Official extension 2.1.0 and it works in 2.0.28.
Template's v-for="item in array" would lose the typing of item
v-for="item in array"
item
Example
<template> <Menu v-for="(menuItem, index) in menuData" :key="index"> <MenuButton>{menuItem.label}</MenuButton> <MenuItems> <MenuItem v-for="(child, childImdex) in menuItem.children" :key="childImdex" v-slot="{ active }" > <a :class="{ 'bg-blue-500': active }" href="/"> test </a> </MenuItem> </MenuItems> </Menu> </template> <script setup lang="ts"> type MenuItem = { label: string children: { label: string; href: string }[] } const menuData: MenuItem[] = [ { label: 'Documents', children: [ { label: 'a', href: '/a' }, { label: 'b', href: '/b' } ] }, { label: 'About', children: [ { label: 'a', href: '/a' }, { label: 'b', href: '/b' } ] }, { label: 'Authoring', children: [ { label: 'a', href: '/a' }, { label: 'b', href: '/b' } ] }, { label: 'Reports', children: [ { label: 'a', href: '/a' }, { label: 'b', href: '/b' } ] } ] </script>
item would have typing
item does not have typing
The text was updated successfully, but these errors were encountered:
Likely is fixed via #4740
Let's wait for the next release and see!
Sorry, something went wrong.
Can't reproduce with 2.1.0, has the 2.1.2 fixed it?
2.1.2
Yes 2.1.2 fixes it, thanks!
No branches or pull requests
Vue - Official extension or vue-tsc version
2.1.0
VSCode version
1.92.2
Vue version
3.4.38
TypeScript version
5.5.4
System Info
No response
Steps to reproduce
This is a regression in Vue - Official extension 2.1.0 and it works in 2.0.28.
Template's
v-for="item in array"
would lose the typing ofitem
Example
What is expected?
item would have typing
What is actually happening?
item does not have typing
Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: