Skip to content

Statistic 统计数值

统计数值组件,带标题、趋势、千分位。

基础用法

vue
<template>
  <parrot-statistic title="活跃用户" :value="112893" />
  <parrot-statistic title="成交额" :value="23456.78" :precision="2" prefix="¥" />
</template>

趋势

vue
<parrot-statistic title="增长率" :value="12.5" suffix="%" trend="up" />
<parrot-statistic title="退款率" :value="3.2" suffix="%" trend="down" />

API

Props

属性类型默认值说明
titlestring''标题
valuenumber0数值
precisionnumber0精度
prefixstring''前缀
suffixstring''后缀
trendstring''趋势
groupSeparatorbooleantrue千分位

Released under the MIT License.