feat: improve workflow node configuration

This commit is contained in:
Fu Diwei
2025-01-06 23:46:14 +08:00
parent 155371cdd0
commit 84c36a4eec
70 changed files with 1799 additions and 875 deletions

View File

@@ -28,10 +28,7 @@ export type NotifyNodeConfigFormInstance = {
};
const initFormModel = (): NotifyNodeConfigFormFieldValues => {
return {
subject: "Completed!",
message: "Your workflow has been completed on Certimate.",
};
return {};
};
const NotifyNodeConfigForm = forwardRef<NotifyNodeConfigFormInstance, NotifyNodeConfigFormProps>(
@@ -60,6 +57,7 @@ const NotifyNodeConfigForm = forwardRef<NotifyNodeConfigFormInstance, NotifyNode
});
const formRule = createSchemaFieldRule(formSchema);
const { form: formInst, formProps } = useAntdForm({
name: "workflowNodeNotifyConfigForm",
initialValues: initialValues ?? initFormModel(),
});