VueMacros

This commit is contained in:
严浩 committed 2024-08-26 12:08:33 +08:00
1 parent 9fe54c151e
commit b7913ae47c
18 files changed
+966 -495

No files matched your search

@@ -0,0 +1,7 @@
<script setup lang="tsx">
defineRender(
<div>
<span>Hello defineRender()</span>
</div>,
);
</script>
@@ -0,0 +1,13 @@
<script setup>
let count = $ref(0);
console.log(count);
function increment() {
count++;
}
</script>
<template>
<button @click="increment">ReactivityTransform: {{ count }}</button>
</template>