Skip to content

1.0.3

Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 29 Oct 02:17
· 3593 commits to main since this release

New

  • v-bind now support accepting an object without arguments, which would allow dynamic binding of multiple attributes:

    <div v-bind="{ id: someProp, 'other-attr': otherProp }"></div>

    Note when using this syntax to bind class and style, only plain string values would work.

  • limitBy filter:

    Limit the array to the first N items, as specified by the argument.

    <!-- only display first 10 items -->
    <div v-for="item in items | limitBy 10"></div>

Fixed

  • #1479 filterBy should no longer return duplicate objects when using multiple search keys.
  • User-defined component names should no longer be overwritten by option key names.
  • Fix edge case for v-for="(key, val) in obj" syntax where the key could be falsy. (@vprimachenko)
  • #1639 Fix title as prop edge case in IE10/11 (@fergaldoyle)