-
-
Notifications
You must be signed in to change notification settings - Fork 369
/
Copy pathApp.vue
94 lines (83 loc) · 1.74 KB
/
App.vue
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<script setup lang='ts'>
import { defineAsyncComponent, ref } from 'vue'
const tree = ref({
label: 'Top Level',
children: [
{ label: 'First Level' },
{ label: 'First Level', children: [{ label: 'Second Level' }] },
],
})
const ComponentAsync = defineAsyncComponent(() => import('./components/ComponentAsync.vue'))
const rate = ref(2.5)
const radio = ref('1')
</script>
<template>
<div class="block">
<h1>Basic (4)</h1>
<ComponentA msg="a" />
<component-b msg="b" />
<ComponentC msg="c" />
<ComponentD />
<h3>Recursive Components</h3>
<recursive :data="tree" />
</div>
<div class="block">
<h1>Namespaced (4)</h1>
<!-- Index -->
<Book />
<UiButton />
<UiNestedCheckbox />
<!-- Global -->
<Avatar />
</div>
<div class="block">
<h1>Async (2)</h1>
<ComponentAsync />
</div>
<div class="block">
<h1>Markdown (2)</h1>
<MarkdownA />
<MarkdownB />
</div>
<div class="block">
<h1>Custom Resolvers (1)</h1>
<MyCustom />
</div>
<div class="block">
<h1>UI Library (2)</h1>
<van-rate
v-model="rate"
color="#ffd21e"
void-icon="star"
void-color="#eee"
/>
<br>
<br>
<van-radio-group v-model="radio">
<van-radio name="1">
Radio 1
</van-radio>
<br>
<van-radio name="2">
Radio 2
</van-radio>
</van-radio-group>
<br>
</div>
<div class="block">
<h1>Icons (5)</h1>
<i-fa-solid-dice-five />
<i-heroicons-outline-menu-alt-2 />
<i-ri-apps-2-line />
<i-mdi:dice-d12 />
<i-mdi-light-alarm />
</div>
</template>
<style scoped>
.block {
padding: 0px 20px 10px 20px;
margin: 20px 20px;
border: 1px solid #888;
border-radius: 5px;
}
</style>