1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Vue.js 1.0.0 beta1 发布,轻量级 JavaScript 框架 下载

本帖由 漂亮的石头2015-09-22 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,297
    赞:
    47
    Vue.js 1.0.0 beta1 发布,此版本包含 1.0.0 Alpha 5 的所有改进和 bug 修复。

    相比 0.12.15,改进如下:

    重要改进

    常规改进


    • The data binding syntax has been redesigned. Details


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


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


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


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


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


    • 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
    指令


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


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


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


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


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


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


    • 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.


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


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


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


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


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


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


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


    • Prop expressions now support filters.

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

    Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。

    主要特性:




    • 可扩展的数据绑定


    • 将普通的 JS 对象作为 model


    • 简洁明了的 API


    • 组件化 UI 构建


    • 配合别的库使用



    支持的浏览器:https://saucelabs.com/u/vuejs

    [​IMG]
    Vue.js 1.0.0 beta1 发布,轻量级 JavaScript 框架下载地址
     
正在加载...