mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
feat: 向导组件 事件&动作 配置
This commit is contained in:
parent
521ad84f50
commit
94e2fb327f
@ -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',
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user