Skip to content

0.12.6

Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 05 Jul 07:59
· 3593 commits to main since this release

Improvements

  • Props can now be specified using camelCase. Vue will automatically convert the camelCase prop names to hyphenated names when looking for prop attributes. This makes the prop names more consistent: camelCase in JavaScript and expressions, hyphenated as attributes.

    Example:

    props: {
      camelCase: String
    }
    <my-comp camel-case="hello"></my-comp>

    Previous usage of directly specifying hyphenated prop names will still work properly, although with the possibility of being deprecated in future versions.

Fixed

  • #1004 v-component directive not working with v-repeat
  • #1005 attached/ready hooks not firing properly for child components
  • #1006 destroyed hook not firing properly when unmounting static component
  • #1008 <select> with selectedIndex=-1 DOM state not persisted when appended to new parent