还有几处form 嵌套判断有问题

This commit is contained in:
2betop 2021-09-30 12:33:27 +08:00
parent 137cbcb461
commit 6b6c42c33b
4 changed files with 19 additions and 8 deletions

View File

@ -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
}
)
) : (

View File

@ -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>
);

View File

@ -464,7 +464,8 @@ export const HocQuickEdit =
formLazyChange: false,
ref: this.formRef,
popOverContainer: () => this.overlay,
canAccessSuperData
canAccessSuperData,
formStore: undefined
})}
</div>
);

View File

@ -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 ? (