Skip to content

0.11.0-rc3

Pre-release
Pre-release
Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 24 Oct 04:25
· 3593 commits to main since this release

New

  • New partial compilation implementation. This enables a few new features/changes:
    • dynamic partial: <div v-partial="{{partialId}}"></div> now reacts to change of partialId.
    • new v-if implementation: no longer using an anonymous wrapper instance, should work more intuitively.
    • new instance method: vm.$compile() can dynamically compile a piece of DOM. more details
  • New global config option: Vue.config.async. Defaults to true; if set to false will force Vue to use synchronous view/watcher updates.
  • New instantiation option: watch

Changed

  • Custom directive API change:

    • isFn option for directives is removed.
    • instead there's a new option: acceptStatement.
  • Component directive scope change:

    directives on the root element of a component from the parent's template will be compiled in the parent's scope. For example:

      <div v-component="comp" v-show="ok"></div>

    Here the v-show will be compiled in parent scope, thus it is bound to the ok property on the parent, not the component itself.

    Note that if the directive is part of the component's own template, however, it will be compiled in the component's scope instead.

Fixed