You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.2 KiB
1.2 KiB
代码演示
基础用法
通过v-model
表示进度条的当前进度,text
属性控制进度条中间文字内容。
<hd-progress v-model="current" :text="`${current}%`"></hd-progress>
const current = ref<number>(10)
宽度控制
通过strokeWidth
属性来控制进度条宽度,默认24rpx
。
<hd-progress v-model="current" strokeWidth="15px"></hd-progress>
const current = ref<number>(10)
颜色定制
通过color
属性控制进度条颜色,默认#1C64FD
,通过layerColor
属性控制进度条轨道颜色,默认#EBEEF5
。
<hd-progress v-model="current" color="#1C64FD" layerColor="#EBEEF5"></hd-progress>
const current = ref<number>(10)
是否置灰
通过inactive
属性来控制进度条是否处于禁用状态,默认false。
<hd-progress v-model="current" :inactive="true"></hd-progress>
const current = ref<number>(10)
是否展示进度文字
通过showText
属性来控制是否展示进度文字,默认true。
<hd-progress v-model="current" :showText="false"></hd-progress>
const current = ref<number>(10)