Skip to content

1.0.0-alpha.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 07 Sep 20:28
· 3591 commits to main since this release

Alpha versions are pre-releases and the API may change at any time. By using the alpha releases you are responsible for any risk involved. If you have an in-production 0.12 app, it's recommended to wait until the stable 1.0 migration release before upgrading.

Known Issue

  • Not working with vue-router 0.5.2. Please wait for a vue-router update. Please upgrade to vue-router 0.6.0.

Changes since 1.0.0-alpha.2

For an detailed overview of the data-binding syntax changes, see the latest proposal.

  • All fixes in 0.12.13

  • Props now share the same bind- syntax with normal attributes.

    <comp
      literal-prop="string"
      bind-dynamic-prop="someThing"
      bind-two-way="@someThing"
      bind-one-time="*someThing">
    </comp>
  • Add : shorthand for bind-.

    The example above can be shortened as:

    <comp
      literal-prop="string"
      :dynamic-prop="someThing"
      :two-way="@someThing"
      :one-time="*someThing">
    </comp>
  • Event handler key filter delimiter changed from : to -:

    <!-- 1.0.0-alpha.2 -->
    <input on-keyup:esc="handleEsc">
    
    <!-- 1.0.0-alpha.3 -->
    <input on-keyup-esc="handleEsc">
  • bind-style now support an Array of style objects:

    <div bind-style="[styleObjectA, styleObjectB]"></div>
  • Use .= syntax to pass a literal string to directives:

    <a v-link.="/a/b/c">

    v-link's update function will be called once with "/a/b/c".