Vue.js v2.0.0-beta.8发布,一个构建数据驱动的 web 界面的库
jopen 8年前
<p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/1f02a7efb50dcca3bb1e01e5ef4f8d97.png" /></p> <p>Vue.js(读音 /vjuː/, 类似于 view)是一个构建数据驱动的 web 界面的库。Vue.js 的目标是通过尽可能简单的 API 实现响应的数据绑定和组合的视图组件。</p> <p>Vue.js 自身不是一个全能框架——它只聚焦于视图层。因此它非常容易学习,非常容易与其它库或已有项目整合。另一方面,在与相关工具和支持库一起使用时,Vue.js 也能完美地驱动复杂的单页应用。</p> <p>如果你喜欢下面这些,那你一定会喜欢 Vue.js:</p> <ul> <li>可扩展的数据绑定机制</li> <li>原生对象即模型</li> <li>简洁明了的 API</li> <li>组件化 UI 构建</li> <li>多个轻量库搭配使用</li> </ul> <p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/b34b5ccc53962c052f47eb0e71aa1690.png" /></p> <p style="text-align: center;"><strong>10 秒钟看懂 Vue.js</strong></p> <p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/82a4e3be0ecdc5e00b7cd2322560c91b.png" /></p> <h2>更新日志</h2> <h3>新功能</h3> <ul> <li>Improved SSR error handling when using <code>bundleRenderer.renderToStream</code></li> <li>Improved SSR warning when component is missing render function / templates</li> </ul> <h3>重大更改</h3> <ul> <li> <p><code>keep-alive</code> is no longer a special attribute: it is now a wrapper component, similar to <code><transition></code>:<br /> </p> <pre> <code><keep-alive> <component :is="view"></component> </keep-alive></code></pre> <p> </p> </li> <li> <p>This makes it possible to use <code>keep-alive</code> on multiple conditional children (note the children should eventually evaluate to a single child - any child other than the first one will be ignored):<br /> </p> <pre> <code><keep-alive> <comp-a v-if="a > 1"></comp-a> <comp-b v-else></comp-b> </keep-alive></code></pre> <p> </p> </li> <li> <p>When used together with <code><transition></code>, make sure to nest it inside:<br /> </p> <pre> <code><transition> <keep-alive> <component :is="view"></component> </keep-alive> </transition></code></pre> <p> </p> </li> </ul> <h3>问题修复</h3> <ul> <li><a href="/misc/goto?guid=4958993107710494951">#3395</a> fix <code>v-show</code> transition triggering more than necessary</li> <li><a href="/misc/goto?guid=4958993107828066068">#3400</a> fix slot resolution on re-renders</li> <li><a href="/misc/goto?guid=4958993107931165236">#3403</a> fix double quote decoding inside attributes when using DOM template</li> <li><a href="/misc/goto?guid=4958993108030042458">#3406</a> fix static node reused incorrectly inside <code>v-for</code></li> </ul> <h2>下载</h2> <ul> <li><a href="/misc/goto?guid=4958993108130501355" rel="nofollow"><strong>Source code</strong> (zip)</a></li> <li><a href="/misc/goto?guid=4958993108223234781" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li> </ul> <p> </p> <p> </p> <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/182c9800">http://www.open-open.com/news/view/182c9800</a><br /> </p>