2022-10-03 14:14:55 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
const state = ref(0)
|
|
|
|
|
|
|
|
const add = () => state.value++
|
|
|
|
|
|
|
|
defineExpose({
|
|
|
|
state,
|
2024-04-05 18:08:32 +00:00
|
|
|
add,
|
2022-10-03 14:14:55 +00:00
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div>Hi i should be rendered {{ state }}</div>
|
|
|
|
</template>
|