輕量級 JavaScript 庫,Vue.js 0.12.11 發布

jopen 9年前發布 | 9K 次閱讀 Vue.js

Vue.js 是構建 Web 界面的 JavaScript 庫,提供數據驅動的組件,還有簡單靈活的 API,使得 MVVM 更簡單。

主要特性:


  • 可擴展的數據綁定

    </li>

  • 將普通的 JS 對象作為 model

    </li>

  • 簡潔明了的 API

    </li>

  • 組件化 UI 構建

    </li>

  • 配合別的庫使用

    </li> </ul>


    支持的瀏覽器:https://saucelabs.com/u/vuejs

     

    Vue.js 0.12.11 發布,此版本更新內容如下:

    改進

    • Two-way filters for v-model have been reworked. A v-model binding with read filters will no longer attempt to format the value when the user is still typing; instead it formats the value on blur. This results in a much more natural UX and makes two-way filters much more usable. Demo

      </li>

    • <select v-model="x" options="options"> now supports Object values.

      </li>

    • And the bound value x will be the actual object instead of a serialized string.

      </li>

    • filterBy filter has been improved (#1094):

      </li>

      1. It now accepts multiple dataKeys arguments

        </li>

      2. Each dataKey argument can be either a String or an Array of Strings.

        </li>

      3. You can alternatively provide a custom filter function as the first argument.

        </li> </ol>

      4. currency filter can now accept an empty string argument to output the result without a currency symbol.

        </li>

      5. When in debug mode, Vue will also print async stack traces for warnings. Previously the stack trace stops at the internal batcher handler due to Vue's async update queue; now the stack trace goes all the way back to what originally triggered the update.

        </li>

      6. Component asset names can also be in PascalCase in addition to camelCase: myComponent and MyComponent will both be interpreted as my-component during the lookup.

        </li>

      7. Data object properties prefixed with _ and $ are now also observed; this means they can be used for data binding, however if it is a root-level property it will not be proxied on the vm instance.

        </li>

      8. Computed Property Caching

        </li> </ul>

        新特性

        • Added debounce filter which can be used with v-on for debouncing DOM events.

          </li> </ul>

          修復

          • v-attr should also set corresponding properties for selected and checked.

            </li>

          • #1139 error when compiling props for a component with fragment el

            </li>

          • #1150 keep-alive and wait-for not working together

            </li>

          • #1152 dynamic component left undestroyed with keep-alive + wait-for

            </li>

          • #1155 select option with empty string initial value not initialized properly

            </li>

          • #1162 computed properties evaluation affected by order of data manipulations

            </li>

          • #1185 v-if linker cache not taking transclusion host into account

            </li>

          • #1191 resolveAsset not working properly for transcluded components in strict mode

            </li> </ul>

            下載:https://github.com/yyx990803/vue/archive/0.12.11.zip


             

             本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
             轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
             本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!