Vue.js 1.0.16 发布,轻量级 JavaScript 框架

oschina
 oschina
发布于 2016年01月31日
收藏 11

Vue.js 1.0.16 发布,更新如下:

New

  • Improved v-for re-rendering performance in production mode.

  • Vue Devtools is now supported in production builds as well.

  • New modifier for v-on: .capture. Attach the event listener in capture mode.

  • New modifier for v-on: .self. Only triggers the handler if the event was dispatched from the element itself, i.e. e.target === e.currentTarget.

  • New modifier for v-bind: .camel, which converts the bound attribute name back to camelCase. This is a workaround for dynamically binding SVG valid camelCase attributes, e.g. viewBox, because the browser parses :viewBox as :viewbox.

    Example:

    <svg :view-box.camel="viewBoxValue"></svg>
  • The .delete key modifier for v-on now also gets triggered on Backspace (which is "delete" on Mac keyboards). (@thecrypticace)

修复

  • When manually creating a Vue instance, the props can be passed in via the data option and it will no longer cause a warning.

  • #2144 when a inserted slot element is toggled off by v-if, the slot's fallback content will be rendered instead.

  • #2169 when binding attributes with v-bind, the boolean value true now renders to an empty attribute value. This makes the rendered result more consistent with the HTML5 spec. If the value "true" is desired, then the value passed to v-bind should be an actual string rather than a boolean value. (@rhyzx)

  • #2199 fix v-model jQuery < 1.7 compatibility

  • #2206 fix v-else fragment not properly destroyed on instance teardown.

  • #2219 fix v-style prefix detection for -webkit-filter in Chrome.

  • #2242 fix literal prop handling for negative numbers when used on root instance.

  • #2253 templates that has comments outside the root node no longer gets parsed as fragment instances.

  • #2254 avoid asset resolution error when asset id is not a string

  • #2265 fix v-for range edge cases (when value is NaN)

下载页面:1.0.16

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 OSCHINA 社区 [http://www.oschina.net]
本文标题:Vue.js 1.0.16 发布,轻量级 JavaScript 框架
加载中

最新评论(9

QuenTine
QuenTine

引用来自“redfortress”的评论

可惜没ajax
推荐superagent
o轻扬o
o轻扬o

引用来自“redfortress”的评论

可惜没ajax

引用来自“艾边成”的评论

不懂就不要说话比较好
赞成
艾边成
艾边成

引用来自“redfortress”的评论

可惜没ajax
不懂就不要说话比较好
r
redfortress
可惜没ajax
ForJustice
ForJustice

引用来自“ForJustice”的评论

哎,一直想用这个,但为了兼容IE8不得不用avalon。。。。

引用来自“0Scn”的评论

avalon很好啊,复杂和持续迎合需求的项目里,开发和维护上比jQuery的手工制强太多,当然,简单用例和无未来计划的小项目除外!有历史包袱的avalon,没历史包袱的Vue。
图省事用过oniui, 被坑的好惨的。
南漂一卒
南漂一卒

引用来自“ForJustice”的评论

哎,一直想用这个,但为了兼容IE8不得不用avalon。。。。

引用来自“0Scn”的评论

avalon很好啊,复杂和持续迎合需求的项目里,开发和维护上比jQuery的手工制强太多,当然,简单用例和无未来计划的小项目除外!有历史包袱的avalon,没历史包袱的Vue。
用 jQuery 也不一定非要纯手工开发、维护 —— http://git.oschina.net/Tech_Query/EasyWebApp
muyu
muyu
听说这货不错,表示关注
ForJustice
ForJustice
哎,一直想用这个,但为了兼容IE8不得不用avalon。。。。
亮亮2046
亮亮2046
vue是最好的前端框架
返回顶部
顶部