From 2b0d77fa700cb36468013a73759d9f6a9a91a8d5 Mon Sep 17 00:00:00 2001 From: w2xi <43wangxi@gmail.com> Date: Fri, 26 Jan 2024 13:16:52 +0800 Subject: [PATCH] feat: support render function options --- demo/22-manually-mount.html | 2 +- demo/23-counter.html | 2 +- demo/24-render-function-options.html | 51 ++++++++++++++++ demo/static/mini-vue.umd.js | 89 +++++++++++++++------------- slides.md | 30 +++++++++- 5 files changed, 130 insertions(+), 44 deletions(-) create mode 100644 demo/24-render-function-options.html diff --git a/demo/22-manually-mount.html b/demo/22-manually-mount.html index bd807dd..246bf52 100644 --- a/demo/22-manually-mount.html +++ b/demo/22-manually-mount.html @@ -50,7 +50,7 @@ } const vnode = render() -console.log(vnode); +console.log('VNode: ', vnode); mount(vnode, document.body) // vnode diff --git a/demo/23-counter.html b/demo/23-counter.html index b1264e1..f86482f 100644 --- a/demo/23-counter.html +++ b/demo/23-counter.html @@ -3,7 +3,7 @@
-