DataOperatext 数据展示

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

# DataOperatext 数据展示

Tips

1.0.4+

<avue-data-operatext :option="option"></avue-data-operatext>
<script>
export default {
  data(){
    return {
        option: {
          span: 8,
          data: [
            {
              click: function (item) {
                alert(JSON.stringify(item));
              },
              title: 'smallwei',
              subtitle: 'avue部门-前端研发工程师',
              img: 'https://avatar.gitee.com/uploads/61/632261_smallweigit.jpg!avatar100?1518660401',
              color: '#00a7d0',
              list: [{
                label: '点赞',
                value: '3,200'
              }, {
                label: '关注',
                value: '13,000'
              }, {
                label: '项目',
                value: '13,000'
              }]
            },
            {
              click: function (item) {
                alert(JSON.stringify(item));
              },
              title: 'smallwei',
              subtitle: 'avue部门-前端研发工程师',
              img: 'https://avatar.gitee.com/uploads/61/632261_smallweigit.jpg!avatar100?1518660401',
              color: '#f39c12',
              list: [{
                label: '点赞',
                value: '3,200'
              }, {
                label: '关注',
                value: '13,000'
              }, {
                label: '项目',
                value: '13,000'
              }]
            },
            {
              click: function (item) {
                alert(JSON.stringify(item));
              },
              title: 'smallwei',
              subtitle: 'avue部门-前端研发工程师',
              img: 'https://avatar.gitee.com/uploads/61/632261_smallweigit.jpg!avatar100?1518660401',
              colorImg: 'http://img.sccnn.com/bimg/337/15595.jpg',
              list: [{
                label: '点赞',
                value: '3,200'
              }, {
                label: '关注',
                value: '13,000'
              }, {
                label: '项目',
                value: '13,000'
              }]
            },
          ]
        },
      }
  }
}
</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
Expand Copy
Last update: August 14, 2024 15:38
Contributors: smallwei
您正在浏览基于 Vue 2.x 的 Avue 文档; 点击这里 查看 Vue 3.x 的升级版本