ZhangXianQiang
2024-06-06 0f52b1e924693795faea619cd68ea7ecc855a61f
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
<template>
  <div class="time-container flex justify-center text-white items-center shadow-md">
    <el-icon class="mr-1 text-xl" size="24"><Timer /></el-icon>
    <div class="label mr-1">剩余时间:</div>
    <el-countdown :value="time" />
  </div>
</template>
 
<script setup>
import {ref} from 'vue';
import { Timer } from '@element-plus/icons-vue';
 
const time = ref(1000);
</script>
 
<style lang="scss" scoped>
.time-container {
  width: 220px;
  border-radius: 100px;
  padding: 10px 0;
  background-color: rgba($color: #86d7f7, $alpha: 0.3);
 
}
 
:deep(.el-statistic__number) {
  color: #ffffff;
}
</style>