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
3.4.29
https://play.vuejs.org/#eNqNU89rE0EU/leec8kG4i5tvRg3CyoBK6ilCl4GJCQv6dbJzDIzu0aWBS/ipWJBDxYkICjeLN6kHvrP2DT9L3w7m03j797mvfe9ed9835ucXU8SP0uRtVlo+jpOLBi0aQKiJ0cdzqzhLOIyHidKW8jhpqKTRGk3pbE92ccWKHlHpdLioAUah1DAUKsxNOjSxrKxbFvk/aAMypmNa1xy2Vd0E4zNCDplv9e4hUIoeKi0GFxqNM8hfWrbpgEOFv5GJLRPE1RDNyqKPJkKQc1Lcp7XhE4EOZcA8dBbXOZnPZFis0oDjZBGCfSFGv2M8IlfEyAIYH58cPZij8KTz9Ozg+fz4/35+73Tb69n03ezt4epHOAwljiABfD715cnR2/mhx9nr/ZPPxyVfV+ms2efynkFlwVRDINKeJKZAovjRPQsUgQQ7qxFee7EKYowoKjOrq1vUKGWZLUYyyS1kF0eqwEKcpCaOYOgKjof2pSqC1Ho7KBqGKyMZi1yntQYxiN/1yhJ6+Ek4qwcGQvU9xIbk1qctWvxOOuRcU9uu5zVKbbqfH8H+4//kN81kzLH2ZZGgzpDzpY129MjtFW5e/8uTui8LNLbUkHofxS3kZxMS44V7AZZQ7RXcI7tptvPWI4emO7EojT1o0qiziSH54z2tRTqb08/p7vhX6nNJRXrXf/P/6q2ZkurxITuTjKnDcZqYkYEisijRalA3UmiDHoOZdFY2uv8Aps0iDN3oKMRytYLEVT5X81/lKEupSDa9B5//SorfgCMGnpC
打开App.vue文件 上面写在注释
compRef.value.msg 因该提示不存在类型
compRef.value.msg 没有提示类型报错 而且实际运行也没定义该变量
No response
The text was updated successfully, but these errors were encountered:
<script setup lang="ts"> import { onMounted, ref } from 'vue' const compRef = ref<{x:1}>(undefined) onMounted(() => { console.log(compRef.value.x) // 你认为这里应该报错吗? }) </script> <template> <h1>123{{ compRef }}</h1> </template>
Sorry, something went wrong.
ts类型不会影响运行时结果
No branches or pull requests
Vue version
3.4.29
Link to minimal reproduction
https://play.vuejs.org/#eNqNU89rE0EU/leec8kG4i5tvRg3CyoBK6ilCl4GJCQv6dbJzDIzu0aWBS/ipWJBDxYkICjeLN6kHvrP2DT9L3w7m03j797mvfe9ed9835ucXU8SP0uRtVlo+jpOLBi0aQKiJ0cdzqzhLOIyHidKW8jhpqKTRGk3pbE92ccWKHlHpdLioAUah1DAUKsxNOjSxrKxbFvk/aAMypmNa1xy2Vd0E4zNCDplv9e4hUIoeKi0GFxqNM8hfWrbpgEOFv5GJLRPE1RDNyqKPJkKQc1Lcp7XhE4EOZcA8dBbXOZnPZFis0oDjZBGCfSFGv2M8IlfEyAIYH58cPZij8KTz9Ozg+fz4/35+73Tb69n03ezt4epHOAwljiABfD715cnR2/mhx9nr/ZPPxyVfV+ms2efynkFlwVRDINKeJKZAovjRPQsUgQQ7qxFee7EKYowoKjOrq1vUKGWZLUYyyS1kF0eqwEKcpCaOYOgKjof2pSqC1Ho7KBqGKyMZi1yntQYxiN/1yhJ6+Ek4qwcGQvU9xIbk1qctWvxOOuRcU9uu5zVKbbqfH8H+4//kN81kzLH2ZZGgzpDzpY129MjtFW5e/8uTui8LNLbUkHofxS3kZxMS44V7AZZQ7RXcI7tptvPWI4emO7EojT1o0qiziSH54z2tRTqb08/p7vhX6nNJRXrXf/P/6q2ZkurxITuTjKnDcZqYkYEisijRalA3UmiDHoOZdFY2uv8Aps0iDN3oKMRytYLEVT5X81/lKEupSDa9B5//SorfgCMGnpC
Steps to reproduce
打开App.vue文件 上面写在注释
What is expected?
compRef.value.msg 因该提示不存在类型
What is actually happening?
compRef.value.msg 没有提示类型报错 而且实际运行也没定义该变量
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: