Coder Social home page Coder Social logo

soliviorx / mini-vue2 Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 2.0 6.09 MB

手写vue2源码;实现Vue2大部分功能,包括但不限于:数据响应式、模板编译、虚拟DOM、Diff算法、生命周期、keep-alive、GlobalAPI(minin、extend、filter、directive等)

License: MIT License

JavaScript 93.08% HTML 6.92%
source-code

mini-vue2's Introduction

手写Vue2源码

实现Vue2大部分功能,包括但不限于:数据响应式、模板编译、虚拟DOM、Diff算法、生命周期、keep-alive、GlobalAPI(minin、extend、filter、directive等),基于rollup打包;

license

中文 | English

克隆项目

git clone [email protected]:Shideshanxx/vite-vue3-lowcode.git

功能清单

分支 ——> 功能

  • 1-data-observe:实现数据监控
  • 2-compiler:实现模板编译,template——>AST——>render函数
  • 3-virTialDOM:实现创建虚拟DOM及数据渲染
  • ...

开发文档

开发文档与分支一一对应,文档中具体介绍相关分支实现的功能流程及要点

快速开始

安装依赖

npm install
# or
yarn

启动项目

npm run serve

项目打包

npm run build

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.