设为首页收藏本站

LUPA开源社区

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

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

2015-10-12 22:18| 发布者: joejoe0332| 查看: 522| 评论: 0|原作者: oschina|来自: oschina

摘要: Vue.js 1.0.0 beta4 发布,首个 RC 版本计划在下周发布,十月底发布正式版。1.0 文档预览:rc.vuejs.org相比 1.0.0-beta.3,改进如下:重大改进Vue no longer extendsObject.prototypewith$setand$deletemethods.Ins ...

Vue.js 1.0.0 beta4 发布,首个 RC 版本计划在下周发布,十月底发布正式版。

1.0 文档预览:rc.vuejs.org

相比 1.0.0-beta.3,改进如下:

重大改进

  • Vue no longer extends Object.prototype with $set and $delete methods. 

  • Instance method vm.$addChild() has been deprecated. 

  • The global config proto has been deprecated. 

  • v-for no longer uses track-by="$index" behavior for Arrays of primitive values by default. 

  • v-for no longer converts the value to Array before piping it through filters. 

  • The orderBy filter now expects its second argument to be a number instead of a boolean. 

  • Global asset registration methods, e.g. Vue.component, now returns the registered asset. 

改进

  • v-on can now handle multiple key modifiers:

    1
    <input @keyup.enter.esc="onEnterOrEsc">
  • Directive modifiers are now exposed to custom directive instances as this.modifiers:

    1
    <div v-my-directive.one.two="xxx">
    1
    2
    3
    4
    Vue.directive('my-directive', {  bind: function () {    this.modifiers.one // -> true
        this.modifiers.two // -> true
      }
    })

Bug 修复

  • #1398 Use more reliable visibility check for transitions. This fixes situations where elements are stuck on leave if the parent element is not visible.

  • #1399 Modifiers are no longer included in this.arg for custom directives.

  • #1400 only warn twoWay prop binding type mismatch when the prop is present.

下载:https://github.com/yyx990803/vue/archive/1.0.0-beta.4.zip

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

主要特性:


  • 可扩展的数据绑定

  • 将普通的 JS 对象作为 model

  • 简洁明了的 API

  • 组件化 UI 构建

  • 配合别的库使用


支持的浏览器:https://saucelabs.com/u/vuejs


酷毙

雷人

鲜花

鸡蛋

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

最新评论

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

返回顶部