Giter VIP home page Giter VIP logo

mick-vue's Introduction

mick-vue

基于 vue3 源码实现一个 TDD mini 版的 vue

reactivity

  • reactive 的实现
  • track 依赖收集
  • trigger 触发依赖
  • 支持 effect.scheduler
  • 支持 effect.stop
  • readonly 的实现
  • 支持 isReactive
  • 支持 isReadonly
  • 支持嵌套 reactive
  • 支持嵌套 readonly
  • 支持 shallowReadonly
  • 支持 isProxy
  • ref 的实现
  • 支持 isRef
  • 支持 unref
  • 支持 proxyRefs
  • computed 的实现
  • watch 的实现

runtime-core

  • 支持 element 类型
  • 支持 proxy
  • 初始化 props
  • 支持 component emit
  • 可以在 render 函数中获取 setup 返回的对象
  • setup 可获取 props 和 context
  • 支持 $el api
  • 支持最基础的 slots
  • 支持 Fragment
  • 支持 Text 类型节点
  • 支持 getCurrentInstance
  • 支持 provide/inject
  • 支持组件类型
  • nextTick 的实现

compiler-core

  • 解析插值
  • 解析 element
  • 解析 text

runtime-dom

  • 支持 custom renderer

基于 mini-vue 的实现,再阅读 vue3 源码我的思考

mick-vue's People

Contributors

qinran0423 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.