Appearance
Progress
Type
<script setup lang="ts">
import { DuProgress } from 'doggy-ui-v3'
</script>
<template>
<du-progress type="primary" :progress="40" style="margin-bottom: 0.5em" />
<du-progress type="warning" :progress="60" style="margin-bottom: 0.5em" />
<du-progress type="error" :progress="80" />
</template>
Indicator
-80-
<script setup lang="ts">
import { DuProgress } from 'doggy-ui-v3'
const indicatorFormatter = (progress: number) => `-${progress}-`
</script>
<template>
<du-progress :progress="40" style="margin-bottom: 0.5em" />
<du-progress :progress="80" indicator :indicator-formatter="indicatorFormatter" />
</template>
API
Props
| Name | Description | Type | Default |
|---|---|---|---|
| type | progress type | 'primary' | 'warning' | 'error' | 'primary' |
| progress | percentage of progress | number | 0 |
| indicator | show indicator | boolean | false |
| indicatorFormatter | customize indicator text | (progress: number): string | - |