51 lines
1.5 KiB
Markdown
51 lines
1.5 KiB
Markdown
:: BASE_DOC ::
|
|
|
|
## API
|
|
|
|
### CountDown Props
|
|
|
|
name | type | default | description | required
|
|
-- | -- | -- | -- | --
|
|
custom-style | Object | - | CSS(Cascading Style Sheets) | N
|
|
auto-start | Boolean | true | \- | N
|
|
content | String | 'default' | \- | N
|
|
format | String | HH:mm:ss | \- | N
|
|
millisecond | Boolean | false | \- | N
|
|
size | String | 'medium' | options: small/medium/large | N
|
|
split-with-unit | Boolean | false | \- | N
|
|
theme | String | 'default' | options: default/round/square | N
|
|
time | Number | 0 | required | Y
|
|
|
|
### CountDown Events
|
|
|
|
name | params | description
|
|
-- | -- | --
|
|
change | `(time: TimeData)` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/packages/uniapp-components/count-down/type.ts)。<br/>`interface TimeData { days: number; hours: number; minutes: number; seconds: number; milliseconds: number }`<br/>
|
|
finish | \- | \-
|
|
|
|
### CountDown Slots
|
|
|
|
name | Description
|
|
-- | --
|
|
\- | \-
|
|
content | \-
|
|
|
|
### CountDown External Classes
|
|
|
|
className | Description
|
|
-- | --
|
|
t-class | \-
|
|
t-class-count | \-
|
|
t-class-split | \-
|
|
|
|
### CSS Variables
|
|
|
|
The component provides the following CSS variables, which can be used to customize styles.
|
|
Name | Default Value | Description
|
|
-- | -- | --
|
|
--td-countdown-bg-color | @error-color | -
|
|
--td-countdown-default-color | @text-color-primary | -
|
|
--td-countdown-round-border-radius | @radius-circle | -
|
|
--td-countdown-round-color | @text-color-anti | -
|
|
--td-countdown-square-border-radius | @radius-small | -
|