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
| <script setup lang="ts">
| import { ContentWrap } from '@/components/ContentWrap'
| import { useI18n } from '@/hooks/web/useI18n'
| import { Avatars, AvatarItem } from '@/components/Avatars'
| import { ref } from 'vue'
|
| const { t } = useI18n()
|
| const data = ref<AvatarItem[]>([
| {
| name: 'Lily',
| url: 'https://avatars.githubusercontent.com/u/3459374?v=4'
| },
| {
| name: 'Amanda',
| url: 'https://avatars.githubusercontent.com/u/3459375?v=4'
| },
| {
| name: 'Daisy',
| url: 'https://avatars.githubusercontent.com/u/3459376?v=4'
| },
| {
| name: 'Olivia',
| url: 'https://avatars.githubusercontent.com/u/3459377?v=4'
| },
| {
| name: 'Tina',
| url: 'https://avatars.githubusercontent.com/u/3459378?v=4'
| },
| {
| name: 'Kitty',
| url: 'https://avatars.githubusercontent.com/u/3459323?v=4'
| },
| {
| name: 'Helen',
| url: 'https://avatars.githubusercontent.com/u/3459324?v=4'
| },
| {
| name: 'Sophia',
| url: 'https://avatars.githubusercontent.com/u/3459325?v=4'
| },
| {
| name: 'Wendy',
| url: 'https://avatars.githubusercontent.com/u/3459326?v=4'
| }
| ])
| </script>
|
| <template>
| <ContentWrap :title="t('router.avatars')" :message="t('avatarsDemo.title')">
| <Avatars :data="data" />
| </ContentWrap>
| </template>
|
|