DataCard 数据展示
... 2021-7-29 Less than 1 minute
# DataCard 数据展示
<avue-data-card :option="option"></avue-data-card>
<script>
export default {
data(){
return {
option: {
span:8,
data: [
{
click: function (item) {
alert(JSON.stringify(item));
},
name: '小马',
src: '/images/card-1.jpg',
text: 'xxxxxxxx',
href:'https://avuejs.com',
target:'_blank'
},
{
click: function (item) {
alert(JSON.stringify(item));
},
name: '网易掌门人',
src: '/images/card-3.jpg',
text: 'xxxxxx',
href:'https://avuejs.com',
target:'_blank'
},
{
click: function (item) {
alert(JSON.stringify(item));
},
name: '桐谷和人',
src: '/images/card-4.jpg',
text: 'xxxxx',
href:'https://avuejs.com',
target:'_blank'
},
]
},
}
}
}
</script>
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
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
Expand Copy Copy