city-casereport/miniprogram_npm/tdesign-miniprogram/progress/README.en-US.md

25 lines
1.3 KiB
Markdown
Raw Normal View History

2023-12-06 14:22:42 +08:00
:: BASE_DOC ::
## API
### Progress Props
name | type | default | description | required
-- | -- | -- | -- | --
color | String / Object / Array | '' | Typescript`string \| Array<string> \| Record<string, string>` | N
external-classes `v0.25.0` | Array | - | `['t-class', 't-class-bar', 't-class-label']` | N
label | String / Boolean / Slot | true | \- | N
percentage | Number | 0 | \- | N
status | String | - | optionssuccess/error/warning/active。Typescript`StatusEnum` `type StatusEnum = 'success' \| 'error' \| 'warning' \| 'active'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/progress/type.ts) | N
stroke-width | String / Number | - | \- | N
theme | String | line | optionsline/plump/circle。Typescript`ThemeEnum` `type ThemeEnum = 'line' \| 'plump' \| 'circle'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/progress/type.ts) | N
track-color | String | '' | \- | N
### CSS Variables
The component provides the following CSS variables, which can be used to customize styles.
Name | Default Value | Description
-- | -- | --
--td-progress-circle-inner-bg-color | @font-white-1 | -
--td-progress-inner-bg-color | @brand-color | -
--td-progress-track-bg-color | @bg-color-component | -