輕量級 JavaScript 框架,Vue.js 1.0.0 beta1 發布

jopen 10年前發布 | 7K 次閱讀 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 1.0.0 beta1 發布,此版本包含 1.0.0 Alpha 5 的所有改進和 bug 修復。

    相比 0.12.15,改進如下:

    重要改進

    常規改進

    • The data binding syntax has been redesigned. Details

      </li>

    • The prefix global config has been deprecated. All directives will now consistently use the v- prefix.

      </li>

    • The strict global config has been deprecated. Asset resolution is now always in strict mode. Details

      </li>

    • The interpolate global config has been deprecated. Use v-pre on elements that should be skipped by the template compiler.

      </li>

    • The inherit option has been deprecated. Alway pass data to child components via props.

      </li>

    • The $add method has been deprecated for both Vue instances and observed objects. Use $set instead. Details

      </li>

    • Event propagation for events sent via $dispatch and $broadcast now stops when it triggers a handler for the first time, unless the handler explicitly returns true. Details

      </li> </ul>

      指令

      • v-repeat has been deprecated in favor of v-for. Details

        </li>

      • v-class and v-style have been deprecated in favor of the new binding syntax. Details

        </li>

      • v-ref and v-el usage has changed. Details

        </li>

      • v-component has been deprecated in favor of the is attribute. Details

        </li>

      • v-on will now also listen to custom Vue events when used on a child component. Details

        </li>

      • The key filter for v-on has been deprecated. Instead, use the new key modifer syntax. Details

        </li>

      • The options param for <select v-model> has been deprecated. You can now just use v-for to render the options and it will work properly with the v-model on the containing <select> element.

        </li>

      • The wait-for param for components has been deprecated in favor of the new activate lifecycle hook. Details

        </li> </ul>

        組件 API

        • <content> outlet has been deprecated in favor of the new <slot> API. Details

          </li>

        • Props syntax has changed as part of the new binding syntax.

          </li>

        • $data can no longer be used as a prop.

          </li>

        • Props with the data- prefix are no longer supported.

          </li>

        • Literal props will no longer be auto-casted into Booleans or Numbers - they are now always passed down as Strings.

          </li> </ul>

          其他改進

          • vm.$log() messages now also include computed properties.

            </li>

          • Prop expressions now support filters.

            </li> </ul>

            下載:https://github.com/yyx990803/vue/archive/1.0.0-beta.1.zip


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