Code Monkey home page Code Monkey logo

vue3.0's Introduction

Vue3.0

Vue3.0 study

了解相关信息

  • Vue.js 3.0 "One Piece" 正式版在 2020 年 9 月份发布
  • 2年多开发 100+ 位贡献者, 2600+ 次提交, 600+ 次PR
  • Vue3 支持 vue2 的大多数特性
  • 更好的支持 Typescript

性能提升

  • 打包大小减少 41%
  • 初次渲染快 55% ,更新渲染快 133%
  • 内存减少 54%
  • 使用 Proxy 代替 defineProperty 实现数据响应式
  • 重写了虚拟 DOM 的实现和 Tree-Shaking

新增特性

  • Composition(组合)API

  • setup

    • ref 和 reactive
    • computed 和 watch
    • 新的生命周期函数
    • provide 与 inject
    • ...
  • 新组件

    • fragment - 文档碎片
    • teleport - 瞬移组件的位置
    • Suspense - 异步加载组件的 loading 界面
  • 其他API更新

    • 全局 API 的修改
    • 将原来的全局 API 转移到应用对象
    • 模版语法变化

vue3.0's People

Contributors

momolela avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.