Skip to content

0.12.12

Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 26 Aug 09:09
· 3593 commits to main since this release

Improvements

  • v-model on checkbox can now bind the model value to expressions instead of just true or false. Example:

    <input type="checkbox" v-model="example" true-exp="a" false-exp="b">
    // when checked:
    vm.example === vm.a
    // when unchecked:
    vm.example === vm.b
  • v-model on radio also gets the same feature:

    <input type="radio" v-model="example" exp="a">
    // when checked:
    vm.example === vm.a

Fixed

  • v-model on checkbox should now update the input checked state based on truthy-ness again. In 0.12.11 it is only checked when value strictly equals true.