# Progress Used to display the current progress of an operation. ## Basic Usage Set the percentage using `percentage`. ```html ``` ## Hide Progress Text Set `hide-text` to hide the progress text. ```html ``` ## Set Status Set `status` to inform users of the current state and expectations. ```html ``` ## Modify Color Set `color` to modify the progress bar color. ```html ``` `color` can also be set as an array or function. If only colors are passed in the array, the progress boundaries for each color are automatically calculated. A function needs to return a color value. ```html ``` The array can also be set in the following format: ```html ``` ```typescript import type { ProgressColor } from '@/uni_modules/wot-design-uni/components/wd-progress/types' const colorObject = ref([ { color: 'yellow', percentage: 30 }, { color: 'red', percentage: 60 }, { color: 'blue', percentage: 80 }, { color: 'black', percentage: 90 } ]) const percentage = ref(100) ``` ## Attributes | Parameter | Description | Type | Options | Default | Version | |-----------|-------------|------|----------|---------|----------| | percentage | Progress value, maximum 100 | `number` | - | 0 | - | | hide-text | Hide progress text | `boolean` | - | false | - | | color | Progress bar color | `string / ProgressColor[] / string[]` | - | - | - | | status | Progress bar status | `string` | success / danger / warning | - | - | | duration | Milliseconds needed for 1% increase | `number` | - | 30 | - | ### ProgressColor | Field | Type | Description | Version | |-------|------|-------------|----------| | color | string | Color | - | | percentage | number | Percentage | - | ## External Classes | Class Name | Description | Version | |------------|-------------|----------| | custom-class | Root node style | - |