https://github.com/sunnshare/vue-source-code
Vue实现:Vue响应式原理/数组劫持/模板编译原理/虚拟DOM/nextTick/mixin/diff算法
https://github.com/sunnshare/vue-source-code
compiler component computed defineproperty dep diff mixin nexttick rollup source-code vdom vue2 watcher
Last synced: 3 months ago
JSON representation
Vue实现:Vue响应式原理/数组劫持/模板编译原理/虚拟DOM/nextTick/mixin/diff算法
- Host: GitHub
- URL: https://github.com/sunnshare/vue-source-code
- Owner: sunnshare
- Created: 2023-12-10T11:03:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-17T10:54:58.000Z (over 1 year ago)
- Last Synced: 2024-12-27T18:11:52.532Z (5 months ago)
- Topics: compiler, component, computed, defineproperty, dep, diff, mixin, nexttick, rollup, source-code, vdom, vue2, watcher
- Language: JavaScript
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [笔记](./笔记.md)
- [x] 打包工具:rollup
- [x] 实现 Vue 响应式原理,对象属性劫持
- [x] 实现数组的函数劫持
- [x] 实现模板编译成 AST 语法树, AST 语法树转为 render 函数
- [x] render 函数生成虚拟 DOM,虚拟 DOM 转为真实 DOM
- [x] 依赖收集实现原理
- [x] nextTick 实现原理
- [x] mixin 实现原理
- [x] computed 实现原理
- [x] watch 实现原理
- [x] 实现 diff 算法
- [x] 组件实现原理