Vue.js v2.0.0-beta.7發布,一個構建數據驅動的 web 界面的庫
Vue.js(讀音 /vju?/, 類似于 view)是一個構建數據驅動的 web 界面的庫。Vue.js 的目標是通過盡可能簡單的 API 實現響應的數據綁定和組合的視圖組件。
Vue.js 自身不是一個全能框架——它只聚焦于視圖層。因此它非常容易學習,非常容易與其它庫或已有項目整合。另一方面,在與相關工具和支持庫一起使用時,Vue.js 也能完美地驅動復雜的單頁應用。
如果你喜歡下面這些,那你一定會喜歡 Vue.js:
- 可擴展的數據綁定機制
- 原生對象即模型
- 簡潔明了的 API
- 組件化 UI 構建
- 多個輕量庫搭配使用
10 秒鐘看懂 Vue.js
更新日志
新功能
- Improved warning information for SSR hydration failures.
- Support
:class
and:style
binding values when usingclass
andstyle
inv-bind="object"
.
Bug修復
- Fixed SSR hydration failures when using
<transition>
that evaluates to empty nodes. - #3379
:style
bindings now work for plain strings as well - #3386 & #3391 slot children not correctly updating
重大更改
-
When using
render
functions, it is now no longer necessary (nor supported) to wrap component children inside a function:
render (h) { // before return h(Comp, () => [...children]) // after return h(Comp, [...children]) }
If you are using JSX, make sure to upgrade to
babel-plugin-transform-vue-jsx
to ^3.0.0.
下載
本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/57e43b1a
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!