tachybase_todo/packages/plugins/workflow/src/client/nodes/delay.tsx
Junyi 4a3cb6e65f
Refactor(plugin workflow): move client files into plugin (#556)
* refactor(plugin-workflow): move client files into plugin

* fix(client): fix package path block build

* test(plugin-workflow): trigger ci
2022-06-29 23:42:03 +08:00

40 lines
833 B
TypeScript

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',
default: 60000
},
'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
}
};