• 重磅来袭 Vue 3.0 One Piece 正式发布


    代号为One Piece 的Vue3.0 在9月19日凌晨正式发布!!

    此次vue3.0 为用户提供了全新的 composition-api 以及更小的包大小,和更好的 TypeScript 支持。

    发布地址

    Vue-next

    Vue3.0 是当前非常流行的框架,Vue3.0更是酝酿了2年多的时间,经过2600多次commit,600多次PR,中间也发布了很多beta版本。

    终于在经过尤大神和社区的共同努力下,Vue3.0带着全新的 composition-api 正式发布了。

    一起发布的新特性还有:

    Teleport 组件

    Treeshaking的全新API

    Vue3.0官方文档

    也可以再在线体验Vue3.0: codepen.io/yyx990803/p…

    <template>
      <div id="app">
        <h1>{{message}}</h1>
    
        <p>
          Learn more with the
          <a
            href="https://v3.vuejs.org/"
            target="_blank"
            rel="noopener"
          >Vue Docs &amp; Resources</a>.
        </p>
    
        <button @click="doSomething">Say hello.</button>
      </div>
    </template>
    
    <script>
    export default {
      data() {
        return {
          message: 'Welcome to Vue 3!'
        };
      },
      methods: {
        doSomething() {
          alert('Hello!');
        }
      }
    };
    </script>
    
    <!-- Use preprocessors via the lang attribute! e.g. <style lang="scss"> -->
    <style>
    #app {
      font-family: Avenir, Helvetica, Arial, sans-serif;
      text-align: center;
      color: #2c3e50;
      margin-top: 60px;
    }
    
    a,
    button {
      color: #4fc08d;
    }
    
    button {
      background: none;
      border: solid 1px;
      border-radius: 2em;
      font: inherit;
      padding: 0.75em 2em;
    }
    </style>
     

    有兴趣也可以观看尤大神在19号凌晨发布的视频

    m.youtube.com/watch?v=Vp5…  

    直播中尤大神也讲诉了整个Vue3.0 的历程,同时也介绍了一些新的特性。

      

    另外,所有的官方生态库和工具,例如vue-cli、vue-router、vuex、Vue-Test-utils、vue devtools、VSCode插件Vetur,现在都支持Vue3,但大多数仍然处于beta状态,并在NPM的"next"标签目录下发布。

    官方计划在2020年年底之前稳定所有项目并将其转换为使用"latest"标签。

    官方发布的推文

    Vue 3.0 正式版

     
     


    作者:shenjp1
    链接:https://juejin.im/post/6873980597472067597

  • 相关阅读:
    第一次实验
    pta12
    《暗时间》读书笔记
    案例分析
    软件工程第二次作业
    阅读任务
    20210311_软工_准备工作
    学习总结
    第十四周学习总结&实验报告
    第十三周课程总结
  • 原文地址:https://www.cnblogs.com/shenjp/p/13694601.html
Copyright © 2020-2023  润新知