-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.vue
More file actions
40 lines (38 loc) · 801 Bytes
/
Copy pathindex.vue
File metadata and controls
40 lines (38 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<script setup lang="ts">
import HostCard from "../components/HostCard.vue";
import HostSsrComponent from "../components/HostSsrComponent.vue";
</script>
<template>
<main class="examples">
<div class="host-column">
<HostCard />
</div>
<div class="component-grid">
<HostSsrComponent />
<Suspense>
<RemoteWidget />
<template #fallback>
<div>Loading remote widget...</div>
</template>
</Suspense>
<Suspense>
<RemoteCounter />
<template #fallback>
<div>Loading remote counter...</div>
</template>
</Suspense>
</div>
</main>
</template>
<style scoped>
.examples {
display: block;
}
.host-column {
float: left;
}
.component-grid {
display: flex;
flex-wrap: wrap;
}
</style>