Vue.js v1.0.21-csp 和 v1.0.21 发布了,主要更新内容如下:
v1.0.21-csp
[build] 1.0.21-csp
更新内容:
Component prop类型现在可以为类型数组
绝大多数的警告现在会以名字的形式显示
超时的警告使用console.error
orderBy filter 提升
:class bindings 现在可以使用多个类的字符串
track-by for v-for现在可以接受一个路径
修复:
#2567 fix IE9 inline bindings that need vendor prefix
#2573 ensure v-if and v-for compilation order is not dependent on appearance order. (v-foralways comes first)
#2580 initially invalid props should still be reactive
:class bindings now ensures consistent class order
#2593 fix explicitly setting Vue.config.devtools to non-default value
#2606 prop coercion should be applied to default values
#2620 text parser should not remove newlines, also fix cache hit
软件详情:https://github.com/vuejs/vue/releases/tag/v1.0.21
下载地址:https://github.com/vuejs/vue/archive/v1.0.21.tar.gz
来自:开源中国社区

