ant-design / ant-design/pro-components

🧐[问题]使用StepsForm时,如何实现 点击步骤跳转到指定步骤?

Open
#8,205 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

### 🧐 问题描述

### 💻 示例代码

```typescript

{
console.log('current:', current);
setCurrent(current)
}}
stepsRender={(steps, defaultDom) => {
console.log('steps:', steps, defaultDom);
return {
console.log(event);
}}>{defaultDom}
;
}}
```

想通过使用 stepsRender来实现,但是没有current参数,不知道当前是第几步,请问如何实现

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start at the StepsForm entry point and read the stepsRender, current, and onCurrentChange props used in the example. Reproduce the navigation-click question and determine the intended behavior for selecting a step; the issue names no file, test, or acceptance criteria, so completion is not defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.