Vue.js v2.0.0-beta.8發布,一個構建數據驅動的 web 界面的庫

jopen 8年前發布 | 9K 次閱讀 Vue.js web 數據驅動

Vue.js(讀音 /vju?/, 類似于 view)是一個構建數據驅動的 web 界面的庫。Vue.js 的目標是通過盡可能簡單的 API 實現響應的數據綁定和組合的視圖組件。

Vue.js 自身不是一個全能框架——它只聚焦于視圖層。因此它非常容易學習,非常容易與其它庫或已有項目整合。另一方面,在與相關工具和支持庫一起使用時,Vue.js 也能完美地驅動復雜的單頁應用。

如果你喜歡下面這些,那你一定會喜歡 Vue.js:

  • 可擴展的數據綁定機制
  • 原生對象即模型
  • 簡潔明了的 API
  • 組件化 UI 構建
  • 多個輕量庫搭配使用

10 秒鐘看懂 Vue.js

更新日志

新功能

  • 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

下載

 

 

本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/182c9800
 

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!