红联Linux门户
Linux帮助

Vue 2.1.7发布,轻量级JavaScript框架

发布时间:2016-12-25 09:28:30来源:红联作者:pocheng
轻量级 JavaScript 框架 Vue 2.1.7 发布了。

潜在的必须操作

为了修复一些错误,不得不介绍一些小的行为更改。

如果你是一个提供预编译的 dist 文件的插件/组件的作者

It is recommended to re-compile the dist file using the latest versions of vue-template-compiler and vue-template-es2015-compiler. The new generated code is backwards-compatible, but code generated by older versions of the compilers may not work properly with the latest runtime.

Code generation changes that affect compatibility are very rare and we will avoid introducing similar changes in future patch releases.

如果使用的移动动画功能: you use 's move animation feature:

When fixing #4510 (ensure leave transitions and enter transitions triggered by the same state change are started in the same frame), we had to move the application of the v-enter-active and v-leave-active classes to one frame after the application of v-enter and v-leave. This should not affect existing usage of , however if you are using for moving animations, there is a minor adjustment required: you need to now add position: absolute to both v-leave and v-leave-active (previously only v-leave-active is sufficient). See updated moving animation example.

Improvements

Improved stateful components instantiation performance by ~30%.

From version 2.1.7 and up, you can directly use the CDN link https://unpkg.com/vue for the standalone build.

Fixed

fix functional component multiple root nodes regression

fix SVG foreignObject namespace regression

unbind v-show if no longer present during patch

ensure value for
文章评论

共有 0 条评论