红联Linux门户
Linux帮助

Vue.js 0.11.6发布,JavaScript库

发布时间:2015-04-19 09:13:38来源:红联作者:empast
Vue.js 0.11.6 发布,此版本更新内容如下:

新特性

Added inline-template param for v-component.

Added debounce param for v-model.

option param for v-model now supports filters.

v-model now interopts with jQuery events.

改进

selectors now can only select top-level childNodes of the host node. This new behavior is more consistent with the Shadow DOM spec and also fixes issues where the selector can match unwanted nodes in nested transclusions.

JavaScript transition functions' invocation context are now always the closest vm of the node being transitioned, regardless of which vm the transition directive belongs to. This means if a node being transition is a vm's root node, that vm will be used as the this context.

v-repeat now uses an in-place update strategy for better DOM/instance reuse when the following conditions are met:

the repeated block doesn't contain components;

the repeated list is not using transitions. This change should not break existing usage.

Bug 修复

#655 directives on block instance containers are not compiled

#670 honor number option for select with multiple attribute

#684 attach/detach hooks for transcluded components inside v-if are never called

#695 name option should be inherited

#707 v-repeat not working on $data

#715 boolean literals not working with v-with

#716 unwatch causing error during destroy

#717 error parsing multiline expressions

#720 return empty string for Infinity and properly format floating point values

#721 support sorting by $key and $value in orderBy filter

#728 v-if and v-partial not calling unlink functions when unbound

#736 parent content loses reactivity when transcluded

#760

频道文章

最新教程

随机推荐