1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Vue.js 1.0.12 发布,轻量级 JavaScript 框架 下载

Discussion in '软件资讯' started by 漂亮的石头, 2015-12-18.

  1. 漂亮的石头

    漂亮的石头 版主 Staff Member

    Joined:
    2012-02-10
    Messages:
    487,356
    Likes Received:
    47
    Vue.js 1.0.12 发布,更新如下:

    新增



    • 新的prop选项: coerce
      你现在可以给prop定义一个coerce函数 - 每当prop在父类更新的时候,prop的值将会通过coerce函数。你可以将它理解为prop的单向过滤器,只是他被定义在了子类组件内。



    • export default {
      props: {
      msg: {
      type: String,
      coerce: function (val) {
      return val + '' // cast potential values to a string
      }
      }
      }
      }

    修复



    • #2001 fix IE9 class merging with both class and :class during transclusion


    • #2015 handle 0 properly when using v-bind for input value


    • #2017 prevent v-model syncing value on blur after fragment is removed


    • #2021 improve template parser when parsing plain strings containing HTML entities


    • #2022 fix v-show stuck when it is compiled on out-of-dom element


    • #2023 avoid v-model attempting to sync value after debounce when it is already unbound


    • #2026 fix v-pre error when used on component root node


    • #2028 avoid debounce on blur for v-model


    • #2035 fix SVG class interpolation regression


    • #2036 non-deep watchers now fire properly when an object's structure has been changed byVue.set or Vue.delete.


    • #2042 fix v-bind when binding muted attribute on <video> elements

    Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。

    主要特性:


    • 可扩展的数据绑定


    • 将普通的 JS 对象作为 model


    • 简洁明了的 API


    • 组件化 UI 构建


    • 配合别的库使用
    Vue.js 1.0.12 发布,轻量级 JavaScript 框架下载地址
     
Loading...