设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

Vue 2.1.7 发布,轻量级JavaScript框架

2016-12-25 18:17| 发布者: joejoe0332| 查看: 594| 评论: 0|原作者: oschina|来自: oschina

摘要: 轻量级 JavaScript 框架Vue 2.1.7 发布了。潜在的必须操作为了修复一些错误,不得不介绍一些小的行为更改。如果你是一个提供预编译的 dist 文件的插件/组件的作者It is recommended to re-compile the dist file usi ...

轻量级 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.

  • 如果使用<transition-group>的移动动画功能: you use <transition-group>'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 <transition>, however if you are using <transition-group> 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

  • #4472 fix functional component multiple root nodes regression

  • #4478 fix SVG foreignObject namespace regression

  • #4484 unbind v-show if no longer present during patch

  • #4494 ensure value for <option> is always updated (@defcc via #4505)

  • #4497 fix v-for behavior with string value (@posva via #4499)

  • #4510 ensure leave transitions and enter transitions triggered by the same state change are started in the same frame

  • #4514 fix v-model selected value update between 0 and "" (@defcc via #4528)

  • #4518 change Vue.config.ignoredElements default value to be consistent with docs (@semenyukdmitry via #4518)

  • #4521 avoid checked state being overwritten before change event trigger

  • #4529 support v-bind object syntax on scoped slots

  • #4530 fix special attributes (e.g. value) patching error when switching between dynamic and static bindings

  • #4533 fix hydration error caused by empty text nodes between v-if conditions

  • #4535 fix node removal error when patching elements with v-text (@defcc via #4548)

  • #4538 avoid casting empty string to Boolean when a prop expects both String and Boolean types (@fliptheweb via #4539)

Downloads


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部