Vue v1.0.22 发布,轻量级 JavaScript 框架

jopen 3年前
   <p><img alt="Vue v1.0.22 发布,轻量级 JavaScript 框架" src="https://simg.open-open.com/show/1f02a7efb50dcca3bb1e01e5ef4f8d97.png" /></p>    <p>Vue v1.0.22 发布了。</p>    <p>新特性:</p>    <ul>     <li> <p>new option: <code>propsData</code>. This option allows you to pass props to an instance created imperatively with <code>new</code> without having to wrap it in a parent instance. This is primarily intended to make unit testing easier. <a href="/misc/goto?guid=4958990248820908271">docs</a></p> </li>     <li> <p>new option: <code>extends</code>. Allows declaratively extending another component (could be either a plain options object or a constructor) without having to use <code>Vue.extend</code>. This is primarily intended to make it easier to extend between single file components. (<a class="user-mention" href="/misc/goto?guid=4958990248932939814">@pespantelis</a>) <a href="/misc/goto?guid=4958990249037226289">docs</a></p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990249136970586">#2676</a> Added support for decimal places in currency filter (<a class="user-mention" href="/misc/goto?guid=4958990249222216587">@phanan</a>) <a href="/misc/goto?guid=4958990249326142811">docs</a></p> </li>    </ul>    <p>Bugs 修复:</p>    <ul>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990249449849075">#2642</a> reserve non-resolved <code>is</code> attribute for native custom elements</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990249587478483">#2659</a> exclude <code>.capture</code> from <code>v-on</code> key filters (<a class="user-mention" href="/misc/goto?guid=4958990249720320806">@eric6356</a>)</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990249854519918">#2663</a> fix handling v-if along with v-for on a template tag (<a class="user-mention" href="/misc/goto?guid=4958990249992744455">@simplesmiler</a>)</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990250115485209">#2666</a> remove <code>:is</code> attribute even when component is cached (<a class="user-mention" href="/misc/goto?guid=4958990250241847807">@GuillaumeLeclerc</a>)</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990250375437735">#2670</a> ensure dynamic method resolution for component inline v-on</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990250480802264">#2674</a> fix async update in WeChat browser (<a class="user-mention" href="/misc/goto?guid=4958990250604117835">@duanjun</a>)</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990250715965326">#2686</a> fix deep watch on objects with circular references (<a class="user-mention" href="/misc/goto?guid=4958990250822925032">@flytreeleft</a>)</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990250908604169">#2687</a> fix <code>data</code> function being called twice (<a class="user-mention" href="/misc/goto?guid=4958990251023364416">@blake-newman</a>)</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990251136448761">#2707</a> fix modifiers being incorrectly passed to terminal directives (<a class="user-mention" href="/misc/goto?guid=4958990251023364416">@blake-newman</a>)</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990251267702757">#2723</a> default slot should use fallback content if it has only whitespace</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990251377228862">#2731</a> fix <code>Vue.delete</code> when used on a Vue instance (<a class="user-mention" href="/misc/goto?guid=4958990251495215745">@Jinjiang</a>)</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990251604663191">#2745</a> handle v-for anchor position when moved by external lib</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990251745392428">#2750</a> ensure correct watcher invocation order for changes triggered inside user watchers</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990251871870808">#2773</a> fix <code>v-model</code> cursor position by only setting value property when value is changed (<a class="user-mention" href="/misc/goto?guid=4958990252002866847">@zigomir</a>)</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990252134657481">#2789</a> do not merge empty class on component placeholder</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990252270359591">#2805</a> treat template tags as string templates to workaround iOS Safari 9 crash bug</p> </li>     <li> <p><a class="issue-link js-issue-link" href="/misc/goto?guid=4958990252405908684">#2808</a> <code>v-bind:class</code> multiple class names support for array syntax</p> </li>    </ul>    <p>下载地址:</p>    <ul>     <li> <p><a href="/misc/goto?guid=4958990252528727748" rel="nofollow"><strong>Source code</strong> (zip)</a></p> </li>     <li> <p><a href="/misc/goto?guid=4958990252662401436" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></p> </li>    </ul>