Vue.js 1.0.14 發布,輕量級 JavaScript 框架

jopen 8年前發布 | 17K 次閱讀

Vue.js 是構建 Web 界面的 JavaScript 庫,提供數據驅動的組件,還有簡單靈活的 API,使得 MVVM 更簡單。

主要特性:


  • 可擴展的數據綁定
  • 將普通的 JS 對象作為 model
  • 簡潔明了的 API
  • 組件化 UI 構建
  • 配合別的庫使用
Vue.js 1.0.14 發布,輕量級 JavaScript 框架

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)

來自: http://www.oschina.net/news/69809/vue-js-1-0-4

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!