设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

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

2015-12-20 21:23| 发布者: joejoe0332| 查看: 618| 评论: 0|原作者: oschina|来自: oschina

摘要: Vue.js 1.0.12 发布,更新如下:新增新的prop选项:coerce你现在可以给prop定义一个coerce函数 - 每当prop在父类更新的时候,prop的值将会通过coerce函数。你可以将它理解为prop的单向过滤器,只是他被定义在了子类组 ...

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

新增

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

  • 1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    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 构建

  • 配合别的库使用


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部