红联Linux门户
Linux帮助

Vue v2.0.0-rc.5发布,轻量级JavaScript框架

发布时间:2016-09-09 09:30:04来源:红联作者:baihuo
Vue v2.0.0-rc.5 发布了,Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。

本次发布一些新特性:

Custom directives now get a new hook: inserted, which will be called when the bound element has been inserted into its parent node. (Note this only guarantees parent node presence but not in-document)

SSR hydration now allows the client to hydrate a server-rendered node when it has no children. (Previously it would throw an error and bail out with a full re-render) This allows the server to render a static "app shell" and let the client pick it up.

Bug 修复:

Reverted custom directive bind call timing due to it leading to incorrect v-show property switch timing during initial render.

#3556 fix v-on patching for cloned slot nodes

#3559 remove unnecessary appear check in v-show

#3595 fix incorrect duplicate slot warning when they are under v-if/v-else

#3611 fix v-for patching error by keying nested children by default

下载地址:https://github.com/vuejs/vue/archive/v2.0.0-rc.5.zip

来自:开源中国社区
文章评论

共有 0 条评论