-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapp.vue
More file actions
51 lines (45 loc) · 964 Bytes
/
Copy pathapp.vue
File metadata and controls
51 lines (45 loc) · 964 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
41
42
43
44
45
46
47
48
49
50
51
<script setup lang="ts">
import HostCard from "./components/HostCard.vue";
import HostSsrComponent from "./components/HostSsrComponent.vue";
const message = "Hello World";
</script>
<template>
<main class="examples">
<div class="host-column">
<HostCard />
</div>
<div class="component-grid">
<HostSsrComponent />
<Suspense>
<RemoteWidget :message />
<template #fallback>
<div>Loading remote widget...</div>
</template>
</Suspense>
<Suspense>
<RemoteCounter>
<template #footer> Slot from host </template>
</RemoteCounter>
<template #fallback>
<div>Loading remote counter...</div>
</template>
</Suspense>
</div>
</main>
</template>
<style>
body {
margin: 0;
font-family: sans-serif;
}
.examples {
display: block;
}
.host-column {
float: left;
}
.component-grid {
display: flex;
flex-wrap: wrap;
}
</style>