輕量級 JavaScript 庫,Vue.js 0.12.11 發布
Vue.js 是構建 Web 界面的 JavaScript 庫,提供數據驅動的組件,還有簡單靈活的 API,使得 MVVM 更簡單。
主要特性:
-
可擴展的數據綁定
</li> -
將普通的 JS 對象作為 model
</li> -
簡潔明了的 API
</li> -
組件化 UI 構建
</li> -
配合別的庫使用
</li> </ul>
支持的瀏覽器:https://saucelabs.com/u/vuejs
Vue.js 0.12.11 發布,此版本更新內容如下:改進
-
Two-way filters for
</li>v-modelhave been reworked. Av-modelbinding with read filters will no longer attempt to format the value when the user is still typing; instead it formats the value on blur. This results in a much more natural UX and makes two-way filters much more usable. Demo -
</li><select v-model="x" options="options">now supports Object values. -
And the bound value
</li>xwill be the actual object instead of a serialized string. -
</li>filterByfilter has been improved (#1094):-
It now accepts multiple
</li>dataKeysarguments -
Each
</li>dataKeyargument can be either a String or an Array of Strings. -
You can alternatively provide a custom filter function as the first argument.
</li> </ol> -
</li>currencyfilter can now accept an empty string argument to output the result without a currency symbol. -
When in
</li>debugmode, Vue will also print async stack traces for warnings. Previously the stack trace stops at the internal batcher handler due to Vue's async update queue; now the stack trace goes all the way back to what originally triggered the update. -
Component asset names can also be in PascalCase in addition to camelCase:
</li>myComponentandMyComponentwill both be interpreted asmy-componentduring the lookup. -
Data object properties prefixed with
</li>_and$are now also observed; this means they can be used for data binding, however if it is a root-level property it will not be proxied on the vm instance. -
Computed Property Caching
</li> </ul>新特性
-
Added
</li> </ul>debouncefilter which can be used withv-onfor debouncing DOM events.修復
-
</li>v-attrshould also set corresponding properties forselectedandchecked. -
#1139 error when compiling props for a component with fragment
</li>el -
#1150
</li>keep-aliveandwait-fornot working together -
#1152 dynamic component left undestroyed with
</li>keep-alive+wait-for -
#1155 select option with empty string initial value not initialized properly
</li> -
#1162 computed properties evaluation affected by order of data manipulations
</li> -
#1185
</li>v-iflinker cache not taking transclusion host into account -
#1191 resolveAsset not working properly for transcluded components in strict mode
</li> </ul>下載:https://github.com/yyx990803/vue/archive/0.12.11.zip。
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
-
-
-
-