1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 vue v2.0.0-rc.1 和 v2.0.0-beta.8 发布 下载

Discussion in '软件资讯' started by 漂亮的石头, 2016-08-12.

  1. 漂亮的石头

    漂亮的石头 版主 Staff Member

    Joined:
    2012-02-10
    Messages:
    487,979
    Likes Received:
    47
    vue v2.0.0-rc.1 和 v2.0.0-beta.8 发布了,Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。

    vue v2.0.0-rc.1 主要更新内容:

    修复


    • prop validation now work when code is run across different vms/iframes.

    重大更新


    • SSR: when using serverCacheKey, the component also needs to have a unique name option.



    WIP Documentation

    下载地址:


    vue v2.0.0-beta.8 主要更新内容:

    新增


    • Improved SSR error handling when using bundleRenderer.renderToStream


    • Improved SSR warning when component is missing render function / templates

    重大更新


    • keep-alive is no longer a special attribute: it is now a wrapper component, similar to<transition>:

      <keep-alive>
      <component :is="view"></component>
      </keep-alive>

      This makes it possible to use keep-alive on multiple conditional children (note the children should eventually evaluate to a single child - any child other than the first one will be ignored):

      <keep-alive>
      <comp-a v-if="a > 1"></comp-a>
      <comp-b v-else></comp-b>
      </keep-alive>

      When used together with <transition>, make sure to nest it inside:

      <transition>
      <keep-alive>
      <component :is="view"></component>
      </keep-alive>
      </transition>

    修复


    • #3395 fix v-show transition triggering more than necessary


    • #3400 fix slot resolution on re-renders


    • #3403 fix double quote decoding inside attributes when using DOM template


    • #3406 fix static node reused incorrectly inside v-for



    下载地址:

    vue v2.0.0-rc.1 和 v2.0.0-beta.8 发布下载地址
     
Loading...