輕量級 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
改進
-
Two-way filters for
</li>v-model
have been reworked. Av-model
binding 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>x
will be the actual object instead of a serialized string. -
</li>filterBy
filter has been improved (#1094):-
It now accepts multiple
</li>dataKeys
arguments -
Each
</li>dataKey
argument 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>currency
filter can now accept an empty string argument to output the result without a currency symbol. -
When in
</li>debug
mode, 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>myComponent
andMyComponent
will both be interpreted asmy-component
during 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>debounce
filter which can be used withv-on
for debouncing DOM events.修復
-
</li>v-attr
should also set corresponding properties forselected
andchecked
. -
#1139 error when compiling props for a component with fragment
</li>el
-
#1150
</li>keep-alive
andwait-for
not 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-if
linker 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 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
-
-
-
-