Skip to content

Tiến trình ​

Thanh tiến trình (sọc, chuyển động, dọc, có nhãn) và tiến trình dạng tròn.

Tiến trình ​

Tiến trình
vue
<div class="thl-stack">
  <ThlProgress :value="25" /><ThlProgress :value="50" color="success" label /><ThlProgress :value="75" color="warning" striped animated /><ThlProgress :value="90" color="danger" size="lg" label="90% Complete" />
  <div class="thl-demo-row"><ThlProgressCircle v-for="(v, i) in [30, 60, 90]" :key="v" :value="v" :color="['primary','success','danger'][i]" :size="100" /></div>
</div>
tsx
<Progress value={50} color="success" label />
<Progress value={75} color="warning" striped animated />
<ProgressCircle value={60} color="success" size={100} />
html
<thl-progress [value]="50" color="success" [label]="true" />
<thl-progress [value]="75" color="warning" striped animated />
<thl-progress-circle [value]="60" color="success" [size]="100" />

API ​

Progress

<ThlProgress> · import { ThlProgress } from '@thl-ui/vue'

PropKiểuMặc định
value*number—
maxnumber100
colorstring—
sizestring—
stripedboolean—
animatedboolean—
verticalboolean—
labelany—

ProgressCircle

<ThlProgressCircle> · import { ThlProgressCircle } from '@thl-ui/vue'

PropKiểuMặc định
value*number—
maxnumber100
sizenumber120
strokenumber8
colorstring"primary"
labelstring—
ariaLabelstring—

Slot: default