DataDisplay 数据展示

<template>
  <avue-data-display :option="option"></avue-data-display>
</template>
<script>
export default {
  data () {
    return {
      option: {
        span: 6,
        data: [
          {
            click: function (item) {
              alert(JSON.stringify(item));
            },
            count: 100,
            decimals: 2,
            title: '日活跃数',
            href: 'https://avuejs.com',
            target: '_blank'
          },
          {
            click: function (item) {
              alert(JSON.stringify(item));
            },
            count: '3,000',
            title: '月活跃数',
            href: 'https://avuejs.com',
            target: '_blank'
          },
          {
            click: function (item) {
              alert(JSON.stringify(item));
            },
            count: '20,000',
            title: '年活跃数',
            href: 'https://avuejs.com',
            target: '_blank'
          },
          {
            click: function (item) {
              alert(JSON.stringify(item));
            },
            count: '40,000',
            title: '周活跃数',
            href: 'https://avuejs.com',
            target: '_blank'
          }
        ]
      },
    }
  }
}
</script>
显示代码

Attributes

参数说明类型可选值默认值
animation是否动画Booleanfalse/truetrue
decimals小数点位数Number0
span栅格数String8
data数据Array-
Last Updated:
Contributors: smallwei
您正在浏览基于Avue 3.x文档; 点击这里 查看Avue 2.x 的文档