设为首页收藏本站

LUPA开源社区

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

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

2015-9-22 23:10| 发布者: joejoe0332| 查看: 779| 评论: 0|原作者: oschina|来自: oschina

摘要: Vue.js 1.0.0 beta1 发布,此版本包含 1.0.0 Alpha 5 的所有改进和 bug 修复。相比 0.12.15,改进如下:重要改进常规改进The data binding syntax has been redesigned. DetailsThe prefix global config has been d ...

Vue.js 1.0.0 beta1 发布,此版本包含 1.0.0 Alpha 5 的所有改进和 bug 修复。

相比 0.12.15,改进如下:

重要改进

常规改进

  • The data binding syntax has been redesigned. Details

  • The prefix global config has been deprecated. All directives will now consistently use the v- prefix.

  • The strict global config has been deprecated. Asset resolution is now always in strict mode. Details

  • The interpolate global config has been deprecated. Use v-pre on elements that should be skipped by the template compiler.

  • The inherit option has been deprecated. Alway pass data to child components via props.

  • The $add method has been deprecated for both Vue instances and observed objects. Use $set instead. Details

  • Event propagation for events sent via $dispatch and $broadcast now stops when it triggers a handler for the first time, unless the handler explicitly returns true. Details

指令

  • v-repeat has been deprecated in favor of v-for. Details

  • v-class and v-style have been deprecated in favor of the new binding syntax. Details

  • v-ref and v-el usage has changed. Details

  • v-component has been deprecated in favor of the is attribute. Details

  • v-on will now also listen to custom Vue events when used on a child component. Details

  • The key filter for v-on has been deprecated. Instead, use the new key modifer syntax. Details

  • The options param for <select v-model> has been deprecated. You can now just use v-for to render the options and it will work properly with the v-model on the containing <select> element.

  • The wait-for param for components has been deprecated in favor of the new activate lifecycle hook. Details

组件 API

  • <content> outlet has been deprecated in favor of the new <slot> API. Details

  • Props syntax has changed as part of the new binding syntax.

  • $data can no longer be used as a prop.

  • Props with the data- prefix are no longer supported.

  • Literal props will no longer be auto-casted into Booleans or Numbers - they are now always passed down as Strings.

其他改进

  • vm.$log() messages now also include computed properties.

  • Prop expressions now support filters.

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

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

主要特性:


  • 可扩展的数据绑定

  • 将普通的 JS 对象作为 model

  • 简洁明了的 API

  • 组件化 UI 构建

  • 配合别的库使用


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


酷毙

雷人

鲜花

鸡蛋

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

最新评论

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

返回顶部