Vue.js 1.0.0 beta1 发布,轻量级 JavaScript 框架
欢迎加入运维网交流群:263444886Vue.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 forhas been deprecated. You can now just use v-for to render the options and it will work properly with the v-model on the containingelement.
[*] The wait-for param for components has been deprecated in favor of the new activate lifecycle hook. Details
组件 API
[*] outlet has been deprecated in favor of the newAPI. 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
页:
[1]