Vue.js 0.12.0 RC2 发布,此版本更新内容如下:
Support staggering transitions for
v-repeat. demoSimply add a
staggerattributeSupport expressions in content selectors. (resolved only once)
v-classcan now accept an object value. The keys will be used as class names and toggled based on the truthy-ness of the value.Warnings in debug mode now prints the error stack instead of invoking the debugger statement.
其他重要改进
When
v-refis used together withv-repeat, and the value being repeated on is an Object, the corresponding ref will also be an Object, with its keys pointing to the associated child instances.Transition cancel hook: you can now use
enterCancelledandleaveCancelledhooks to handle a cancelled transition. Functions returned inenterandleavehooks are no longer respected.
Bug 修复
更多内容请看发行说明。
此版本现已提供下载:https://github.com/yyx990803/vue/archive/0.12.0-rc2.zip。
Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。
支持的浏览器:https://saucelabs.com/u/vuejs

暂无更多评论