diff --git a/packages/plugins/@nocobase/plugin-workflow-mailer/src/client/MailerInstruction.tsx b/packages/plugins/@nocobase/plugin-workflow-mailer/src/client/MailerInstruction.tsx index 0bd60a376f..deccb74dfa 100644 --- a/packages/plugins/@nocobase/plugin-workflow-mailer/src/client/MailerInstruction.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-mailer/src/client/MailerInstruction.tsx @@ -63,7 +63,7 @@ export default class extends Instruction { 'x-decorator': 'FormItem', 'x-component': 'WorkflowVariableInput', 'x-component-props': { - useTypedConstant: ['string'], + useTypedConstant: [['string', { placeholder: 'smtp.example.com' }]], }, }, }, @@ -140,12 +140,12 @@ export default class extends Instruction { properties: { 'auth.user': { type: 'string', - required: true, + // required: true, title: `{{t("User", { ns: "${NAMESPACE}" })}}`, 'x-decorator': 'FormItem', 'x-component': 'WorkflowVariableInput', 'x-component-props': { - useTypedConstant: ['string'], + useTypedConstant: [['string', { placeholder: 'example@domain.com' }]], }, }, }, @@ -156,7 +156,7 @@ export default class extends Instruction { properties: { 'auth.pass': { type: 'string', - required: true, + // required: true, title: `{{t("Password", { ns: "${NAMESPACE}" })}}`, 'x-decorator': 'FormItem', 'x-component': 'WorkflowVariableInput', @@ -179,7 +179,7 @@ export default class extends Instruction { 'x-decorator': 'FormItem', 'x-component': 'WorkflowVariableInput', 'x-component-props': { - useTypedConstant: ['string'], + useTypedConstant: [['string', { placeholder: 'noreply ' }]], }, }, to: { @@ -308,7 +308,7 @@ export default class extends Instruction { }, subject: { type: 'string', - required: true, + // required: true, title: `{{t("Subject", { ns: "${NAMESPACE}" })}}`, 'x-decorator': 'FormItem', 'x-component': 'WorkflowVariableTextArea', @@ -326,7 +326,7 @@ export default class extends Instruction { }, html: { type: 'string', - required: true, + // required: true, title: `{{t("Content", { ns: "${NAMESPACE}" })}}`, 'x-decorator': 'FormItem', 'x-decorator-props': {}, @@ -350,7 +350,7 @@ export default class extends Instruction { }, text: { type: 'string', - required: true, + // required: true, title: `{{t("Content", { ns: "${NAMESPACE}" })}}`, 'x-decorator': 'FormItem', 'x-decorator-props': {},