feat: 向导组件 事件&动作 配置

This commit is contained in:
liuzedong02 2022-03-02 20:44:08 +08:00
parent 521ad84f50
commit 94e2fb327f
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
const wizardSchema = {
type: 'wizard',
initApi: '/api/mock2/form/initForm',
steps: [
{
title: '第一步',
@ -88,6 +89,7 @@ export default {
title: '向导组件事件',
regions: ['body', 'toolbar', 'header'],
body: [
<<<<<<< HEAD
// {
// name: "wizard-next",
// type: "button",
@ -122,6 +124,8 @@ export default {
// }
// }
// },
=======
>>>>>>> 700b723e (feat: 向导组件 事件&动作 配置)
...generateActions([
{
actionName: 'prev',

View File

@ -253,6 +253,8 @@ export default class Wizard extends React.Component<WizardProps, WizardState> {
}
})
.then(value => {
this.handleInitEvent(store.data)
const state = {
currentStep:
typeof this.props.startStep === 'string'