mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
fix: fix the issue of field default values not working
This commit is contained in:
parent
d81f75acb4
commit
6efe5e6dd8
@ -309,6 +309,7 @@ export const Options = () => {
|
|||||||
fulfill: {
|
fulfill: {
|
||||||
state: {
|
state: {
|
||||||
visible: '{{$deps[0]}}',
|
visible: '{{$deps[0]}}',
|
||||||
|
initialValue: `{{t("defaultResetPasswordEmailSubject")}}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -318,6 +319,7 @@ export const Options = () => {
|
|||||||
emailContentType: {
|
emailContentType: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: `{{t("Content type")}}`,
|
title: `{{t("Content type")}}`,
|
||||||
|
required: true,
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
'x-component': 'Radio.Group',
|
'x-component': 'Radio.Group',
|
||||||
enum: [
|
enum: [
|
||||||
@ -331,6 +333,7 @@ export const Options = () => {
|
|||||||
fulfill: {
|
fulfill: {
|
||||||
state: {
|
state: {
|
||||||
visible: '{{$deps[0]}}',
|
visible: '{{$deps[0]}}',
|
||||||
|
initialValue: 'html',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -355,6 +358,7 @@ export const Options = () => {
|
|||||||
fulfill: {
|
fulfill: {
|
||||||
state: {
|
state: {
|
||||||
visible: '{{$deps[0] && $deps[1] === "html"}}',
|
visible: '{{$deps[0] && $deps[1] === "html"}}',
|
||||||
|
initialValue: `{{t("defaultResetPasswordEmailContentHTML")}}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -379,6 +383,7 @@ export const Options = () => {
|
|||||||
fulfill: {
|
fulfill: {
|
||||||
state: {
|
state: {
|
||||||
visible: '{{$deps[0] && $deps[1] === "text"}}',
|
visible: '{{$deps[0] && $deps[1] === "text"}}',
|
||||||
|
initialValue: `{{t("defaultResetPasswordEmailContentText")}}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -404,6 +409,7 @@ export const Options = () => {
|
|||||||
fulfill: {
|
fulfill: {
|
||||||
state: {
|
state: {
|
||||||
visible: '{{$deps[0]}}',
|
visible: '{{$deps[0]}}',
|
||||||
|
initialValue: 120,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user