Vue.js 1.0.14 发布,轻量级 JavaScript 框架

limichange
 limichange
发布于 2016年01月12日
收藏 16

Vue.js 1.0.14 发布,更新如下:

新特性

  • Transition definitions can now specify the type of CSS effect it should wait for, either transitionor animation. This is only necessary in situations where you explicitly want Vue's transition system to only care about one type while being able to use the other type. For example, you may want Vue's transition to be based on a CSS animation, but the element also has CSS transition effects on hover.

    Example:

    Vue.transition('fade', {
      type: 'animation' // only wait for `animationend` events. })
  • Transition definitions can now specify the enterClass and leaveClass for CSS-based transitions. This will override the conventional class names. Useful when you want to combine Vue's transition system with an existing CSS animation library, e.g. Animate.css.

    Example:

    Vue.transition('bounce', {
      type: 'animation',
      enterClass: 'bounceInLeft',
      leaveClass: 'bounceOutRight' })
    <div v-show="ok" class="animated" transition="bounce">
      Watch me bounce
    </div>

修复

  • #2083 avoid v-model with lazy firing twice on focus/blur

  • #2085 transclude class merging should skip interpolated class

  • #2097 one-time interpolations should now work properly inside attributes

  • #2100 fix evaluation errors when v-if is toggled with transitions

  • #2102 fix custom event propagation forwarding in inline statements (@rhyzx)

  • #2105 auto cast values to numbers in limitBy

  • #2118 fix literal value props with filters

  • #2137 allow empty expressions in terminal directives (@rhyzx)

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 OSCHINA 社区 [http://www.oschina.net]
本文标题:Vue.js 1.0.14 发布,轻量级 JavaScript 框架
加载中

最新评论(8

陈少鑫
陈少鑫
如果能支持IE8的话,早就用于生产环境了~~~唉……泪
cokolin
cokolin
vue大法好!
hldgaofeng
hldgaofeng
好东西
ARKII
ARKII
vue大法好!
开源红薯烹调技术专家
开源红薯烹调技术专家
vue大法好!
Tom-Lin
Tom-Lin
看好
xsySunny
xsySunny
2016火起来
返回顶部
顶部