国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

Vant Progress 進(jìn)度條

2022-05-31 13:36 更新

引入

import Vue from 'vue';
import { Progress } from 'vant';

Vue.use(Progress);

代碼演示

基礎(chǔ)用法

進(jìn)度條默認(rèn)為藍(lán)色,使用percentage屬性來設(shè)置當(dāng)前進(jìn)度

<van-progress :percentage="50" />

線條粗細(xì)

通過stroke-width可以設(shè)置進(jìn)度條的粗細(xì)

<van-progress :percentage="50" stroke-width="8" />

置灰

設(shè)置inactive屬性后進(jìn)度條將置灰

<van-progress inactive :percentage="50" />

樣式定制

可以使用pivot-text屬性自定義文字,color屬性自定義進(jìn)度條顏色

<van-progress
  pivot-text="橙色"
  color="#f2826a"
  :percentage="25"
/>
<van-progress
  pivot-text="紅色"
  color="#ee0a24"
  :percentage="50"
/>
<van-progress
  :percentage="75"
  pivot-text="紫色"
  pivot-color="#7232dd"
  color="linear-gradient(to right, #be99ff, #7232dd)"
/>

API

Props

參數(shù)說明類型默認(rèn)值
percentage進(jìn)度百分比number | string0
stroke-width v2.2.1進(jìn)度條粗細(xì),默認(rèn)單位為pxnumber | string4px
color進(jìn)度條顏色string#1989fa
track-color v2.2.9軌道顏色string#e5e5e5
pivot-text進(jìn)度文字內(nèi)容string百分比
pivot-color進(jìn)度文字背景色string同進(jìn)度條顏色
text-color進(jìn)度文字顏色stringwhite
inactive是否置灰booleanfalse
show-pivot是否顯示進(jìn)度文字booleantrue


實(shí)例演示

以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)