Coder Social home page Coder Social logo

littleboyck / mini-vue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cuixiaorui/mini-vue

0.0 0.0 0.0 1.32 MB

实现最简 vue3 模型( Help you learn more efficiently vue3 source code )

License: MIT License

JavaScript 24.40% HTML 9.37% TypeScript 66.24%

mini-vue's Introduction

EN / CN

mini-vue

Implement the simplest vue3 model for in-depth study of vue3 source code

Usage

Bilibili Provides a video explaining how to use it

Can follow my Bilibili,Interpretation of live source code from time to time

Discuss

You can join the group to discuss the vue3 source code

image.png

with WeChat

Service

Provide one-to-one video teaching services, and take you to see the mini-vue source code hand in hand

Can add group communication

Why

When we need to learn vue3 in depth, we need to look at the source code to learn, but like this kind of industrial-level library, there are a lot of logic in the source code for processing edge cases or compatible processing logic, which is not conducive to our learning.

We should focus on the core logic, and the purpose of this library is to separate the core logic from the vue3 source code, leaving only the core logic for everyone to learn.

How

Based on the function points of vue3, split it out bit by bit

The code naming will remain consistent with the source code, so that you can find logic in the source code through naming.

Tasking

  • support component type
  • support element type
  • init props of component
  • context can get props and context in setup
  • support component emit
  • support proxy
  • can get the object returned by setup in the render function
  • Implementation of nextTick
  • support getCurrentInstance
  • support provide/inject
  • support basic slots
  • support text type

roadmap

  • support english
  • normalize console.log

build

yarn build

example

Open index.html under example/* use server

� Recommended Use Live Server

Initialization

flow chart

初始化流程图

Key function call graph

关键函数调用图1

关键函数调用图2

The source code content can be quickly searched based on the function name

update

flow chart

update流程图

Key function call graph

update关键函数调用图

The source code content can be quickly searched based on the function name

mini-vue's People

Contributors

cuixiaorui avatar dependabot[bot] avatar kunogi avatar leno23 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.