Vue.js 1.0.17 发布,更新如下:
New
v-for now also supports using of as the delimiter:
<div v-for="item of items"></div>
The internal transition API is now exposed on Vue.transition. For example this function will be exposed as Vue.transition.applyTransition. For example usage, see v-show's source code.
Vue.config.convertAllProperties is now enabled by default, and this config option has been removed.
keyCode aliases are now exposed as Vue.directive('on').keyCodes.
Fixed
#2278 allow expressions for literal values in root instance props
#2287 fix transition hooks call context to be consistent with compilation scope rules
#2291 fix CSP build minification error
#2297 avoid implicit reference to global variables (fix usage in NW.js)
#2300 fix currency filter negative number display
#2305 fix multiple activate hooks merging
#2312 fix named/default slot distribution when a slot is passed down as content to a child
#2345 improve real custom element detection to avoid unnecessary warnings
#2348 fix slot with v-if fallback compilation scope
#2364 fix expression parsing with ES6 template strings (note: this only fixes the expression parsing, it still depends on whether the browser natively supports ES6 template strings)
#2366 fix custom terminal directive with global mixin (@rhyzx)
#2393 fix observing objects with enumerable but non-configurable properties (@saul)
#2396 fix SVG element transition detection in Chrome
#2400 fix v-model with debounce value not immediately synced on form submission
#2406 fix SVG element fragment linker caching in IE
#2407 fix v-bind value for non-boolean enumerable attributes that expects "true" or "false"values, e.g. draggable
#2411 null or undefined should not trigger type check warning for a non-required prop