Vue.js 0.11.6 发布,JavaScript 库

fdwm 10年前

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.

改进

  • <content select=""> 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 <textarea> placeholders become its value in IE10/11

  • #761 v-model not working $value inside v-repeat

  • is undefined'" href="https://github.com/yyx990803/vue/pull/766" kesrc="https://github.com/yyx990803/vue/pull/766">#766 <option value=""> initial value is undefined

  • #772 reserved prefix check cannot handle Number arguments

  • #779 bi-directional filters not working in attribute interpolations

  • #781 reference errors are not handled in vm.$get

  • #783 nested repeat instances inherting parent _reused flag

  • #784 Cannot use global Date and the new keyword inside expressions

  • #791 instances with inherit:true calling unlink functions of parent when destroyed

此版本现已提供下载:https://github.com/yyx990803/vue/archive/0.11.6.zip 

Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。

支持的浏览器:https://saucelabs.com/u/vuejs

Vue.js 0.11.6 发布,JavaScript 库

来自:http://www.oschina.net/news/61651/vue-js-0-11-6