You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
50a4b17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vue3.4
版本亮点1. 解析器速度提高
2
倍并提高SFC
构建性能通俗解析:解析器速度提高通常会带来更快的页面加载时间、更流畅的用户体验、减少应用程序初始化时间,加快组件渲染速度,使得大型和复杂的应用程序运行更加高效。提高
SFC
构建性能也就是降低单文件组件.vue
的构建时间,也的确降低了,如下图Vue3.4
之前:Vue3.4
之后:2. 更高效的反应系统
通俗解析:
computed
计算属性变得更加高效,不论是它影响别的属性还是它被别的属性影响所带来的次数减少、耗时降低,别的属性指如watch
、watchEffect
,具体看 vuejs/core#59123. defineModel 宏正式稳定
通俗解析:比如之前想在父组件使用
v-model
,子组件需要整一堆代码,defineModel
简化了v-model
,如下代码:Vue3.4
之前:Vue3.4
之后(像使用ref
一样简单):4.
v-bind
同名简写Vue3.4
之前:Vue3.4
之后(emm... 怎么感觉像某种后端语言呢,平台暂时对此不做改动,感觉语义不是那么明确😂):还有一些别的更新,具体看 Vue 3.4版本日志