-
zhangwei
3 天以前 89b94f3cc1aa492b3223b97f3312d8eca004032b
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
<template>
    <el-card shadow="hover" header="项目进度">
        <template #header>
            <el-icon style="display: inline; vertical-align: middle"> <ele-Odometer /> </el-icon>
            <span> 项目进度 </span>
        </template>
        <div class="progress">
            <el-progress type="dashboard" :percentage="99.9" :width="160" color="var(--el-color-primary)">
                <template #default="{ percentage }">
                    <div class="percentage-value">{{ percentage }}%</div>
                    <div class="percentage-label">当前进度</div>
                </template>
            </el-progress>
        </div>
    </el-card>
</template>
 
<script lang="ts">
export default {
    title: '进度环',
    icon: 'ele-Odometer',
    description: '进度环原子组件演示',
};
</script>
 
<script setup lang="ts" name="progressing"></script>
 
<style scoped>
.progress {
    text-align: center;
}
.progress .percentage-value {
    font-size: 28px;
}
.progress .percentage-label {
    font-size: 12px;
    margin-top: 10px;
}
</style>