2023-03-06 17:57:39 +08:00

35 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:: 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