8月22日打卡,今日学习了如下文链接《Vue3 + TypeScript 复盘总结》这篇文章通过项目总结了Vue3使用的语法变化、API变化及遇到的坑,在作者文中提到的使用 props 和 context的方式,到现在已经不需要import { defineEmit } from "vue"的声明引入,现在会自动可用(To declare options like props and emits with full type inference support, we can use the defineProps and defineEmits APIs, which are automatically available inside <script setup>),技术和文档总是在变化,需要一直跟踪追随变化。
展开
评论
点赞
![[灵光一现]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_25.51e6984.png)