Quantcast
Channel: OSCHINA 社区最新新闻
Viewing all articles
Browse latest Browse all 44787

vue v2.0.0-beta.7 发布,轻量级 JavaScript 框架

$
0
0

vue v2.0.0-beta.7 发布了,Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。

主要更新内容:

新增

  • 改进 SSR hydration 故障预警信息。

  • 当在 v-bind="object"使用 class 和 style 时,支持:class 和 :style 绑定值

修复

  • Fixed SSR hydration failures when using <transition> that evaluates to empty nodes.

  • #3379 :  bindings now work for plain strings as well

  • #3386 & #3391 slot children not correctly updating

重要更新

  • 当使用渲染函数时,现在不再需要(也不支持)wrap一个函数内部组件子项:

    render (h) {  // before
      return h(Comp, () => [...children])  // after
      return h(Comp, [...children])
    }
  • 如果您使用的是JSX,确保升级插件babel-plugin-transform-vue-jsx 到3.0.0。


下载地址:


Viewing all articles
Browse latest Browse all 44787

Trending Articles