1.0.0-beta.3
Pre-releaseUpgrade Note: If you are upgrading to this release from 0.12.x, install 1.0.0-alpha.7 first, which has full 0.12 compatibility and appropriate deprecation warnings that can help you identify deprecations that need to be fixed.
New
-
v-model
: multiple checkbox input can now be bound to the samev-model
value (must be an Array):<input type="checkbox" value="Jack" v-model="checkedNames"> <input type="checkbox" value="John" v-model="checkedNames"> <input type="checkbox" value="Mike" v-model="checkedNames">
With
checkedNames
' initial value being an Array, the checked boxes' values will be pushed into the Array, while unchecked ones will be removed from it. For example, if we check the first two boxes,checkedNames
will have the value["Jack", "John"]
. Of course, you can also dynamically bind the value withv-bind
. -
v-on
: added two modifiers,.stop
and.prevent
which automatically callsevent.stopPropagation()
andevent.preventDefault()
for you:<!-- event won't propagate --> <a v-on:click.stop="doThis"></a> <!-- this will no longer reload the page! --> <form v-on:submit.prevent="onSubmit"></form>
Changed
vm.$dispatch
: now also triggers the event on self.Array.prototype.$remove
: now always treats the argument as the item to search for. (Previously it treats the argument as an index if the argument is a number).
Fixed
- Improved attribute interpolation validity check by including a11y and a more complete list of global attributes.
- #1363 partial: dynamic partial resolved in wrong scope when inside
v-for
- #1370 observer:
v-for
alias not reactive when replaced - #1378 props: error parsing path for two-way props with dynamic paths