mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 03:47:12 +00:00
15 lines
197 B
Vue
15 lines
197 B
Vue
<script setup lang="ts">
|
|
const state = ref(0)
|
|
|
|
const add = () => state.value++
|
|
|
|
defineExpose({
|
|
state,
|
|
add,
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div>Hi i should be rendered {{ state }}</div>
|
|
</template>
|