Nuxt/test/fixtures/basic/pages/islands.vue

37 lines
589 B
Vue
Raw Normal View History

<script setup lang="ts">
2024-09-11 19:20:35 +00:00
const islandProps = ref({
bool: true,
number: 100,
2024-04-23 12:53:11 +00:00
str: 'hello world',
obj: { json: 'works' },
})
const showIslandSlot = ref(false)
const routeIslandVisible = ref(false)
const testCount = ref(0)
const count = ref(0)
</script>
<template>
<div>
Pure island component:
2024-09-11 19:20:35 +00:00
<AsyncServerComponent :count="count">
<div id="slot-in-server">
Slot with in .server component
</div>
</AsyncServerComponent>
2024-09-11 19:20:35 +00:00
</div>
</template>
<style scoped>
.box {
border: 1px solid black;
margin: 3px;
display: flex;
}
</style>