mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: 删除在 ts 编译后永远都不会成立的代码 (#6291)
This commit is contained in:
parent
429e8b31ec
commit
a76e31be1f
@ -1196,10 +1196,6 @@ export default class Form extends React.Component<FormProps, object> {
|
||||
return values;
|
||||
})
|
||||
.catch(reason => {
|
||||
if (reason instanceof SkipOperation) {
|
||||
return;
|
||||
}
|
||||
|
||||
onFailed && onFailed(reason, store.errors);
|
||||
|
||||
if (throwErrors) {
|
||||
@ -1563,8 +1559,7 @@ export default class Form extends React.Component<FormProps, object> {
|
||||
* 2. 表单子项 static: false 或 不配置,跟随父表单
|
||||
* 3. 动作控制 表单子项 时,无视配置,优先级最高
|
||||
*/
|
||||
...(control as Schema).static || isStatic
|
||||
? {static: true} : {},
|
||||
...((control as Schema).static || isStatic ? {static: true} : {}),
|
||||
btnDisabled: disabled || form.loading || form.validating,
|
||||
onAction: this.handleAction,
|
||||
onQuery: this.handleQuery,
|
||||
|
@ -602,11 +602,7 @@ export default class Wizard extends React.Component<WizardProps, WizardState> {
|
||||
|
||||
action.reload && this.reloadTarget(action.reload, store.data);
|
||||
})
|
||||
.catch(reason => {
|
||||
if (reason instanceof SkipOperation) {
|
||||
return;
|
||||
}
|
||||
});
|
||||
.catch(reason => {});
|
||||
} else if (action.actionType === 'reload') {
|
||||
action.target && this.reloadTarget(action.target, data);
|
||||
} else if (action.actionType === 'goto-step') {
|
||||
@ -878,9 +874,6 @@ export default class Wizard extends React.Component<WizardProps, WizardState> {
|
||||
})
|
||||
.catch(reason => {
|
||||
this.dispatchEvent('stepSubmitFail', {error: reason});
|
||||
if (reason instanceof SkipOperation) {
|
||||
return;
|
||||
}
|
||||
// do nothing
|
||||
});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user