├── .gitignore ├── README.md ├── babel.config.js ├── drawio ├── createRender.drawio └── 双端对比.drawio ├── example ├── apiInject │ ├── App.js │ ├── Foo.js │ ├── index.html │ └── main.js ├── componentSlots │ ├── App.js │ ├── Foo.js │ ├── index.html │ └── main.js ├── componentUpdater │ ├── App.js │ ├── Child.js │ ├── index.html │ └── main.js ├── createRender │ ├── App.js │ ├── index.html │ └── main.js ├── currentInstance │ ├── App.js │ ├── Foo.js │ ├── index.html │ └── main.js ├── helloWorld │ ├── App.js │ ├── Foo.js │ ├── index.html │ └── main.js ├── nextTicker │ ├── App.js │ ├── index.html │ └── main.js ├── patchChildren │ ├── App.js │ ├── ArrayToArray.js │ ├── ArrayToText.js │ ├── TextToArray.js │ ├── TextToText.js │ ├── index.html │ └── main.js └── update │ ├── App.js │ ├── index.html │ └── main.js ├── getSequence.ts ├── package.json ├── pnpm-lock.yaml ├── rollup.config.js ├── src ├── compiler-core │ ├── __tests__ │ │ ├── parse.sepc.ts │ │ └── transform.spec.ts │ └── src │ │ ├── ast.ts │ │ ├── parse.ts │ │ └── transform.ts ├── index.ts ├── reactivity │ ├── __tests__ │ │ ├── computed.spec.ts │ │ ├── effect.spec.ts │ │ ├── reactive.spec.ts │ │ ├── readonly.spec.ts │ │ ├── ref.spec.ts │ │ └── shallowReadonly.spec.ts │ ├── baseHandler.ts │ ├── computed.ts │ ├── effect.ts │ ├── index.ts │ ├── reactive.ts │ ├── ref.ts │ └── tests │ │ └── reactive.spec.ts ├── runtime-core │ ├── apiInject.ts │ ├── component.ts │ ├── componentEmit.ts │ ├── componentProps.ts │ ├── componentPublicInstance.ts │ ├── componentSlots.ts │ ├── componentUpdateUtils.ts │ ├── createApp.ts │ ├── h.ts │ ├── helper │ │ └── renderSlots.ts │ ├── index.ts │ ├── renderer.ts │ ├── scheduler.ts │ └── vnode.ts ├── runtime-dom │ └── index.ts └── shared │ ├── SharpeFlags.ts │ └── index.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /lib 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/babel.config.js -------------------------------------------------------------------------------- /drawio/createRender.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/drawio/createRender.drawio -------------------------------------------------------------------------------- /drawio/双端对比.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/drawio/双端对比.drawio -------------------------------------------------------------------------------- /example/apiInject/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/apiInject/App.js -------------------------------------------------------------------------------- /example/apiInject/Foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/apiInject/Foo.js -------------------------------------------------------------------------------- /example/apiInject/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/apiInject/index.html -------------------------------------------------------------------------------- /example/apiInject/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/apiInject/main.js -------------------------------------------------------------------------------- /example/componentSlots/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/componentSlots/App.js -------------------------------------------------------------------------------- /example/componentSlots/Foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/componentSlots/Foo.js -------------------------------------------------------------------------------- /example/componentSlots/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/componentSlots/index.html -------------------------------------------------------------------------------- /example/componentSlots/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/componentSlots/main.js -------------------------------------------------------------------------------- /example/componentUpdater/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/componentUpdater/App.js -------------------------------------------------------------------------------- /example/componentUpdater/Child.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/componentUpdater/Child.js -------------------------------------------------------------------------------- /example/componentUpdater/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/componentUpdater/index.html -------------------------------------------------------------------------------- /example/componentUpdater/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/componentUpdater/main.js -------------------------------------------------------------------------------- /example/createRender/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/createRender/App.js -------------------------------------------------------------------------------- /example/createRender/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/createRender/index.html -------------------------------------------------------------------------------- /example/createRender/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/createRender/main.js -------------------------------------------------------------------------------- /example/currentInstance/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/currentInstance/App.js -------------------------------------------------------------------------------- /example/currentInstance/Foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/currentInstance/Foo.js -------------------------------------------------------------------------------- /example/currentInstance/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/currentInstance/index.html -------------------------------------------------------------------------------- /example/currentInstance/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/currentInstance/main.js -------------------------------------------------------------------------------- /example/helloWorld/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/helloWorld/App.js -------------------------------------------------------------------------------- /example/helloWorld/Foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/helloWorld/Foo.js -------------------------------------------------------------------------------- /example/helloWorld/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/helloWorld/index.html -------------------------------------------------------------------------------- /example/helloWorld/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/helloWorld/main.js -------------------------------------------------------------------------------- /example/nextTicker/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/nextTicker/App.js -------------------------------------------------------------------------------- /example/nextTicker/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/nextTicker/index.html -------------------------------------------------------------------------------- /example/nextTicker/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/nextTicker/main.js -------------------------------------------------------------------------------- /example/patchChildren/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/patchChildren/App.js -------------------------------------------------------------------------------- /example/patchChildren/ArrayToArray.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/patchChildren/ArrayToArray.js -------------------------------------------------------------------------------- /example/patchChildren/ArrayToText.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/patchChildren/ArrayToText.js -------------------------------------------------------------------------------- /example/patchChildren/TextToArray.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/patchChildren/TextToArray.js -------------------------------------------------------------------------------- /example/patchChildren/TextToText.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/patchChildren/TextToText.js -------------------------------------------------------------------------------- /example/patchChildren/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/patchChildren/index.html -------------------------------------------------------------------------------- /example/patchChildren/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/patchChildren/main.js -------------------------------------------------------------------------------- /example/update/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/update/App.js -------------------------------------------------------------------------------- /example/update/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/update/index.html -------------------------------------------------------------------------------- /example/update/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/example/update/main.js -------------------------------------------------------------------------------- /getSequence.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/getSequence.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/compiler-core/__tests__/parse.sepc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/compiler-core/__tests__/parse.sepc.ts -------------------------------------------------------------------------------- /src/compiler-core/__tests__/transform.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/compiler-core/__tests__/transform.spec.ts -------------------------------------------------------------------------------- /src/compiler-core/src/ast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/compiler-core/src/ast.ts -------------------------------------------------------------------------------- /src/compiler-core/src/parse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/compiler-core/src/parse.ts -------------------------------------------------------------------------------- /src/compiler-core/src/transform.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/compiler-core/src/transform.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/reactivity/__tests__/computed.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/__tests__/computed.spec.ts -------------------------------------------------------------------------------- /src/reactivity/__tests__/effect.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/__tests__/effect.spec.ts -------------------------------------------------------------------------------- /src/reactivity/__tests__/reactive.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/__tests__/reactive.spec.ts -------------------------------------------------------------------------------- /src/reactivity/__tests__/readonly.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/__tests__/readonly.spec.ts -------------------------------------------------------------------------------- /src/reactivity/__tests__/ref.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/__tests__/ref.spec.ts -------------------------------------------------------------------------------- /src/reactivity/__tests__/shallowReadonly.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/__tests__/shallowReadonly.spec.ts -------------------------------------------------------------------------------- /src/reactivity/baseHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/baseHandler.ts -------------------------------------------------------------------------------- /src/reactivity/computed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/computed.ts -------------------------------------------------------------------------------- /src/reactivity/effect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/effect.ts -------------------------------------------------------------------------------- /src/reactivity/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/index.ts -------------------------------------------------------------------------------- /src/reactivity/reactive.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/reactive.ts -------------------------------------------------------------------------------- /src/reactivity/ref.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/ref.ts -------------------------------------------------------------------------------- /src/reactivity/tests/reactive.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/reactivity/tests/reactive.spec.ts -------------------------------------------------------------------------------- /src/runtime-core/apiInject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/apiInject.ts -------------------------------------------------------------------------------- /src/runtime-core/component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/component.ts -------------------------------------------------------------------------------- /src/runtime-core/componentEmit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/componentEmit.ts -------------------------------------------------------------------------------- /src/runtime-core/componentProps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/componentProps.ts -------------------------------------------------------------------------------- /src/runtime-core/componentPublicInstance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/componentPublicInstance.ts -------------------------------------------------------------------------------- /src/runtime-core/componentSlots.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/componentSlots.ts -------------------------------------------------------------------------------- /src/runtime-core/componentUpdateUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/componentUpdateUtils.ts -------------------------------------------------------------------------------- /src/runtime-core/createApp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/createApp.ts -------------------------------------------------------------------------------- /src/runtime-core/h.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/h.ts -------------------------------------------------------------------------------- /src/runtime-core/helper/renderSlots.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/helper/renderSlots.ts -------------------------------------------------------------------------------- /src/runtime-core/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/index.ts -------------------------------------------------------------------------------- /src/runtime-core/renderer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/renderer.ts -------------------------------------------------------------------------------- /src/runtime-core/scheduler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/scheduler.ts -------------------------------------------------------------------------------- /src/runtime-core/vnode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-core/vnode.ts -------------------------------------------------------------------------------- /src/runtime-dom/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/runtime-dom/index.ts -------------------------------------------------------------------------------- /src/shared/SharpeFlags.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/shared/SharpeFlags.ts -------------------------------------------------------------------------------- /src/shared/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/src/shared/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang49519845/yviewVue/HEAD/yarn.lock --------------------------------------------------------------------------------