DataImgtext 数据展示

... 2021-7-29 Less than 1 minute

# DataImgtext 数据展示

<avue-data-imgtext :option="option"></avue-data-imgtext>
<script>
export default {
  data(){
  return {
      option: {
        span:8,
        data: [
          {
            click: function (item) {
              alert(JSON.stringify(item));
            },
            title: '网易掌门人',
            imgsrc: '/images/card2.jpg',
            headimg: [
              {
                src:'/images/card1.jpg',
                name:'张三'
              },
              {
                src:'/images/card2.jpg',
                name:'李四'
              },
              {
                src:'/images/card3.jpg',
                name:'王五'
              },
            ],
            content: 'xxxxx',
            href:'https://avuejs.com',
            target:'_blank',
            time:'刚刚'
          },
          {
            click: function (item) {
              alert(JSON.stringify(item));
            },
            title: '小马',
            imgsrc: '/images/card1.jpg',
            headimg: [
              {
                src:'/images/card1.jpg',
                name:'张三'
              },
              {
                src:'/images/card2.jpg',
                name:'李四'
              },
              {
                src:'/images/card3.jpg',
                name:'王五'
              },
            ],
            content: 'xxxxxx',
            href:'https://avuejs.com',
            target:'_blank',
            time:'几秒前'
          },
          {
            click: function (item) {
              alert(JSON.stringify(item));
            },
            title: '桐人',
            imgsrc: '/images/card3.jpg',
            headimg: [
              {
                src:'/images/card1.jpg',
                name:'张三'
              },
              {
                src:'/images/card2.jpg',
                name:'李四'
              },
              {
                src:'/images/card3.jpg',
                name:'王五'
              },
            ],
            content: 'xxxxxxxx',
            href:'https://avuejs.com',
            target:'_blank',
            time:'一小时前'
          },
        ]
      },
    }
  }
}
</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
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
Expand Copy
Last update: August 14, 2024 15:38
Contributors: smallwei
您正在浏览基于 Vue 2.x 的 Avue 文档; 点击这里 查看 Vue 3.x 的升级版本