设为首页收藏本站

LUPA开源社区

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

Vue v2.0.0-alpha.7发布,轻量级JavaScript框架

2016-6-28 22:48| 发布者: joejoe0332| 查看: 575| 评论: 0|原作者: oschina|来自: oschina

摘要: Vue v2.0.0 alpha.7 发布了,Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。主要特性:可扩展的数据绑定将普通的 JS 对象作为 model简洁明了的 API组件化 UI ...

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

主要特性:

  • 可扩展的数据绑定

  • 将普通的 JS 对象作为 model

  • 简洁明了的 API

  • 组件化 UI 构建

  • 配合别的库使用

本次发布的一些新增特性及使用示例:

Breaking Changes

  • The init lifecycle hook has been renamed to beforeCreated.

  • JavaScript transition hooks now receive the context Vue instance as the second argument:

1
2
3
4
5
Vue.transition('example', {
  onEnter (el, vm) {
    // ...
  }
})

New

  • $createElement can now omit the data argument if no data is needed. If the second argument is truthy and is not an Object, it will be treated as the children.


1
2
3
4
render (h) {  // before
  return h('div'null'hello')  // after
  return h('div''hello')
}
  • SSR: Now supports bundle renderer, which runs a pre-bundled app script in a fresh context for each render. This eliminates the need for structuring your application without global state just for the sake of server-side rendering.

  • SSR: Now supports component-level caching via server.getCacheKey option.

  • Vue.config.errorHandler now also captures errors thrown in user watcher callbacks.

Fixed

  • #3140 fix v-model .number conversion for non-number input

  • fix CSS animation initial frame flash

  • fix SSR client-side hydration on merged text nodes

  • #3155 fix v-once when used with v-for

  • #3157 fix id-resolved transition with appear: true

查看完整发布说明,可以点击这里

下载地址:


酷毙

雷人
1

鲜花

鸡蛋

漂亮

刚表态过的朋友 (1 人)

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

最新评论

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

返回顶部