tiny-vue/examples/sites/demos/pc/app/statistic/statistic-style-composition...

30 lines
1.0 KiB
Vue

<template>
<div>
<tiny-layout>
<tiny-row :flex="true" class="row-bg">
<tiny-col :span="6">
<tiny-statistic :value="num" :value-style="{ color: '#b12220' }" :precision="0" title="点赞数量">
<template #prefix> Like:</template>
</tiny-statistic>
</tiny-col>
<tiny-col :span="6">
<tiny-statistic :value="num" :value-style="{ 'color': '#3ac295' }" :precision="0" title="点赞数量">
<template #prefix> Like:</template>
</tiny-statistic>
</tiny-col>
<tiny-col :span="6">
<tiny-statistic :value="num" :value-style="[{ 'color': '#e37d29' }]" :precision="0" title="点赞数量">
<template #prefix> Like:</template>
</tiny-statistic>
</tiny-col>
</tiny-row>
</tiny-layout>
</div>
</template>
<script setup lang="jsx">
import { Statistic as TinyStatistic, Layout as TinyLayout, Row as TinyRow, Col as TinyCol } from '@opentiny/vue'
const num = 306526.23
</script>