红联Linux门户
Linux帮助

Vue.js 1.0.0 Alpha 5/0.12.15发布

发布时间:2015-09-21 09:15:43来源:红联作者:empast
Vue.js 1.0.0 Alpha 5 发布,此版本更新内容如下:

重大更新

bind-attr is now replaced by v-bind:attr, with :attr as shorthand;

on-event is now replaced by v-on:event, with @event as shorthand; Also, key filter is now denoted with . as a modifier: @keyup.esc="handleEsc".

Literal directive: v-dir#="xxx" is now replaced by v-dir.literal="xxx".

Prop binding types:

:prop@="twoWay" is now replaced by :prop.sync="twoWay"

:prop*="oneTime" is now replaced by :prop.once="oneTime"

Child component and element refs:

$.child is now replaced by v-ref:child. vm.$ is also renamed to vm.$refs.

$$.node is now replaced by v-el:node. vm.$$ is also renamed to vm.$els.

其他更新

v-on now also works for custom events when used on a child component.

修复

所有 0.12.15 版本的修复

下载:https://github.com/yyx990803/vue/archive/1.0.0-alpha.5.zip

Vue.js 0.12.15 发布,此版本主要是 bug 修复:

#1321 options param for

频道文章

最新教程

随机推荐