Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix items #268

Merged
merged 3 commits into from
Nov 1, 2022
Merged

feat: fix items #268

merged 3 commits into from
Nov 1, 2022

Conversation

heiyu4585
Copy link
Contributor

@heiyu4585 heiyu4585 commented Oct 31, 2022

修复 items 写在组件函数外面改变 current 在页面上样式没有改变的问题

src/Steps.tsx Outdated
item.status = 'wait';
}
if (stepNumber === current) {
item.status = status;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

突然发现个问题,这里应该不能直接改 items 的值才对的。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@zombieJ zombieJ merged commit 6347f55 into react-component:master Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants