Skip to content

0.12.0-beta4

Pre-release
Pre-release
Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 26 May 15:31
· 3591 commits to main since this release

Breaking Change from 0.12.0-beta3

  • Filter argument syntax has been reworked. Now non-quoted arguments are treated as dynamic paths (and the argument will be auto-retrieved from the vm when the filter function is called); only arguments enclosed in quotes are passed in as plain strings.

    Example:

    {{ msg | filter argA 'argB' }}

    In the filter function, the first argument will be the value of vm.argA, and the second argument will be a plain string "argB".

    For the reasoning behind it, see this comment.

Improvements

  • options param for v-model now also respects disabled: true in the options array. (via #861 by @holic)
  • v-transition now adds a .v-transition class at all times; in the case of v-transition="fade", the added class will be .fade-transition. This removes the need to manually add an additional class just to give the element transition property.
  • Internally Vue now uses empty text nodes instead of comment nodes as DOM-manipulation anchors. This results in much cleaner HTML output. When in debug mode, comment nodes will still be used to help better analyze the structure of the rendered DOM.