Archived
VueMacros
This commit is contained in:
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>
|
||||
Reference in new issue
Block a user