发布于 2016-08-12 00:52:39 | 181 次阅读 | 评论: 0 | 来源: 网友投递
Vue.js 轻量级 JavaScript 框架
Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。
vue v2.0.0-rc.1 和 v2.0.0-beta.8 发布了,
vue v2.0.0-rc.1 主要更新内容:
修复
prop validation now work when code is run across different vms/iframes.
重大更新
SSR: when using serverCacheKey
, the component also needs to have a unique name
option.
下载地址:
vue v2.0.0-beta.8 主要更新内容:
新增
Improved SSR error handling when using bundleRenderer.renderToStream
Improved SSR warning when component is missing render function / templates
重大更新
keep-alive
is no longer a special attribute: it is now a wrapper component, similar to<transition>
:
<keep-alive> <component :is="view"></component> </keep-alive>
This makes it possible to use keep-alive
on multiple conditional children (note the children should eventually evaluate to a single child - any child other than the first one will be ignored):
<keep-alive> <comp-a v-if="a > 1"></comp-a> <comp-b v-else></comp-b> </keep-alive>
When used together with <transition>
, make sure to nest it inside:
<transition> <keep-alive> <component :is="view"></component> </keep-alive> </transition>
修复
#3395 fix v-show
transition triggering more than necessary
#3400 fix slot resolution on re-renders
#3403 fix double quote decoding inside attributes when using DOM template
#3406 fix static node reused incorrectly inside v-for
下载地址: