mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 更改normalizeSteps方法的执行时机
This commit is contained in:
parent
f5373bfdd6
commit
20837ac189
@ -408,17 +408,16 @@ export default class Wizard extends React.Component<WizardProps, WizardState> {
|
||||
!hiddenFlag && rawSteps.push(steps[i]);
|
||||
}
|
||||
this.setState({
|
||||
rawSteps: rawSteps.map((step, index) => {
|
||||
delete step.hiddenOn;
|
||||
return Object.assign(step, {
|
||||
title:
|
||||
step.title ||
|
||||
step.label ||
|
||||
__('Steps.step', {
|
||||
index: index + 1
|
||||
})
|
||||
});
|
||||
})
|
||||
rawSteps: rawSteps.map((step, index) => ({
|
||||
...steps,
|
||||
hiddenOn: '',
|
||||
title:
|
||||
step.title ||
|
||||
step.label ||
|
||||
__('Steps.step', {
|
||||
index: index + 1
|
||||
})
|
||||
}))
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user