2022-06-24 23:28:49 +08:00
|
|
|
import Duration from "../components/Duration";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: '{{t("Delay")}}',
|
|
|
|
type: 'delay',
|
|
|
|
group: 'control',
|
|
|
|
fieldset: {
|
|
|
|
'config.duration': {
|
|
|
|
type: 'number',
|
|
|
|
name: 'config.duration',
|
|
|
|
title: '{{t("Duration")}}',
|
|
|
|
'x-decorator': 'FormItem',
|
|
|
|
'x-component': 'Duration',
|
2022-06-28 17:00:19 +08:00
|
|
|
default: 60000
|
2022-06-24 23:28:49 +08:00
|
|
|
},
|
|
|
|
'config.endStatus': {
|
|
|
|
type: 'number',
|
|
|
|
name: 'config.endStatus',
|
|
|
|
title: '{{t("End Status")}}',
|
|
|
|
'x-decorator': 'FormItem',
|
|
|
|
'x-component': 'Select',
|
|
|
|
'x-component-props': {
|
|
|
|
placeholder: '{{t("Select status")}}',
|
|
|
|
},
|
|
|
|
enum: [
|
|
|
|
{ label: '{{t("Succeed and continue")}}', value: 1 },
|
|
|
|
{ label: '{{t("Fail and exit")}}', value: -1 },
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
view: {
|
|
|
|
|
|
|
|
},
|
|
|
|
scope: {
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Duration
|
|
|
|
}
|
|
|
|
};
|