Appearance
Progress 进度条
80%
70%
60%
50%
40%
这是 Progress
基础例子
vue
<script setup lang="ts">
import { ref } from 'vue'
const percent = ref(80)
</script>
<template>
<div class="progress-demo">
<NpProgress :percent="percent || 0" :stroke-height="30" />
<NpProgress :percent="70" type="success" :stroke-height="25" />
<NpProgress :percent="60" type="warning" :stroke-height="20" />
<NpProgress :percent="50" type="danger" />
<NpProgress :percent="40" type="info" />
</div>
</template>
<style scoped>
.progress-demo {
margin: 20px;
display: flex;
flex-direction: column;
gap: 20px;
}
</style>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24