diff --git a/example/compiler-base/App.js b/example/compiler-base/App.js index 7b1b2ce..e904991 100644 --- a/example/compiler-base/App.js +++ b/example/compiler-base/App.js @@ -1,5 +1,19 @@ +// 最简单的情况 +// template 只有一个 interpolation +// export default { +// template: `{{msg}}`, +// setup() { +// return { +// msg: "vue3 - compiler", +// }; +// }, +// }; + + +// 复杂一点 +// template 包含 element 和 interpolation export default { - template: `{{msg}}`, + template: `
{{msg}}
`, setup() { return { msg: "vue3 - compiler", diff --git a/example/compiler-base/index.html b/example/compiler-base/index.html index 0900434..f26bf5a 100644 --- a/example/compiler-base/index.html +++ b/example/compiler-base/index.html @@ -13,6 +13,8 @@ const rootContainer = document.querySelector("#app"); createApp(App).mount(rootContainer); + +