mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
还有几处form 嵌套判断有问题
This commit is contained in:
parent
137cbcb461
commit
6b6c42c33b
@ -1089,7 +1089,8 @@ export default class ComboControl extends React.Component<ComboProps> {
|
||||
lazyChange: changeImmediately ? false : true,
|
||||
formLazyChange: false,
|
||||
value: undefined,
|
||||
formItemValue: undefined
|
||||
formItemValue: undefined,
|
||||
formStore: undefined
|
||||
}
|
||||
)
|
||||
) : (
|
||||
@ -1273,7 +1274,8 @@ export default class ComboControl extends React.Component<ComboProps> {
|
||||
lazyLoad,
|
||||
canAccessSuperData,
|
||||
value: undefined,
|
||||
formItemValue: undefined
|
||||
formItemValue: undefined,
|
||||
formStore: undefined
|
||||
}
|
||||
)
|
||||
) : (
|
||||
@ -1406,7 +1408,8 @@ export default class ComboControl extends React.Component<ComboProps> {
|
||||
onChange: this.handleSingleFormChange,
|
||||
ref: this.makeFormRef(0),
|
||||
onInit: this.handleSingleFormInit,
|
||||
canAccessSuperData
|
||||
canAccessSuperData,
|
||||
formStore: undefined
|
||||
}
|
||||
)
|
||||
) : (
|
||||
|
@ -508,7 +508,8 @@ export default class SubFormControl extends React.PureComponent<
|
||||
show: !!dialogCtx,
|
||||
onClose: this.close,
|
||||
onConfirm: this.handleDialogConfirm,
|
||||
data: dialogData
|
||||
data: dialogData,
|
||||
formStore: undefined
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
|
@ -464,7 +464,8 @@ export const HocQuickEdit =
|
||||
formLazyChange: false,
|
||||
ref: this.formRef,
|
||||
popOverContainer: () => this.overlay,
|
||||
canAccessSuperData
|
||||
canAccessSuperData,
|
||||
formStore: undefined
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
|
@ -806,10 +806,15 @@ export default class Wizard extends React.Component<WizardProps, WizardState> {
|
||||
className={cx('Badge', {
|
||||
// 'Badge--success': canJump && currentStep != key + 1,
|
||||
'is-complete': isComplete,
|
||||
'is-active': isActive || (canJump && currentStep != key + 1)
|
||||
'is-active':
|
||||
isActive || (canJump && currentStep != key + 1)
|
||||
})}
|
||||
>
|
||||
{isComplete && !isActive ? (<Icon icon="check" className="icon" />) : key + 1}
|
||||
{isComplete && !isActive ? (
|
||||
<Icon icon="check" className="icon" />
|
||||
) : (
|
||||
key + 1
|
||||
)}
|
||||
</span>
|
||||
{step.title || step.label || `第 ${key + 1} 步`}
|
||||
</li>
|
||||
@ -996,7 +1001,8 @@ export default class Wizard extends React.Component<WizardProps, WizardState> {
|
||||
disabled: store.loading,
|
||||
popOverContainer:
|
||||
popOverContainer || this.getPopOverContainer,
|
||||
onChange: this.handleChange
|
||||
onChange: this.handleChange,
|
||||
formStore: undefined
|
||||
}
|
||||
)
|
||||
) : currentStep === -1 ? (
|
||||
|
Loading…
Reference in New Issue
Block a user