You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.6 KiB

1 year ago
:: BASE_DOC ::
## API
### Steps Props
name | type | default | description | required
-- | -- | -- | -- | --
current | String / Number | - | \- | N
default-current | String / Number | undefined | uncontrolled property | N
current-status | String | process | optionsdefault/process/finish/error | N
external-classes | Array | - | `['t-class']` | N
layout | String | horizontal | optionshorizontal/vertical | N
readonly | Boolean | false | \- | N
separator | String | line | optionsline/dashed/arrow | N
style | String | - | \- | N
theme | String | default | optionsdefault/dot | N
### Steps Events
name | params | description
-- | -- | --
change | `({current: string \| number, previous: string \| number})` | \-
### StepItem Props
name | type | default | description | required
-- | -- | -- | -- | --
content | String / Slot | '' | \- | N
external-classes | Array | - | `['t-class', 't-class-content', 't-class-title', 't-class-description', 't-class-extra']` | N
icon | String / Slot | - | \- | N
status | String | default | optionsdefault/process/finish/error。Typescript`StepStatus` `type StepStatus = 'default' \| 'process' \| 'finish' \| 'error'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/step-item/type.ts) | N
style | String | - | \- | N
sub-step-items | Array | [] | Typescript`SubStepItem[]` `interface SubStepItem { status: StepStatus, title: string }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/step-item/type.ts) | N
title | String / Slot | '' | \- | N