将普通的 JS 对象作为 model
组件化 UI 构建
Vue.js 0.12.11 发布，此版本更新内容如下：
Two-way filters for
v-modelhave been reworked. A
v-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
<select v-model="x" options="options">now supports Object values.
And the bound value
xwill be the actual object instead of a serialized string.
filterByfilter has been improved (#1094):
It now accepts multiple
dataKeyargument can be either a String or an Array of Strings.
You can alternatively provide a custom filter function as the first argument.
currency filter can now accept an empty string argument to output the result without a currency symbol.
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:
MyComponent will both be interpreted as
my-component during the lookup.
Data object properties prefixed with
$ 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
debouncefilter which can be used with
v-onfor debouncing DOM events.
v-attrshould also set corresponding properties for
#1139 error when compiling props for a component with fragment
wait-fornot working together
#1152 dynamic component left undestroyed with
#1155 select option with empty string initial value not initialized properly
#1162 computed properties evaluation affected by order of data manipulations
v-iflinker cache not taking transclusion host into account
#1191 resolveAsset not working properly for transcluded components in strict mode