fix: sub-form to subform (#1121)

Reviewed-on: daoyoucloud/tachybase#1121
This commit is contained in:
sealday 2024-06-05 13:37:36 +08:00
parent 9b2404d4ef
commit d0a4615ef7
6 changed files with 10 additions and 10 deletions

View File

@ -269,7 +269,7 @@
"Link to description": "Used to create collection relationships quickly and compatible with most common scenarios. Suitable for non-developer use. When present as a field, it is a drop-down selection used to select records from the target collection. Once created, it will simultaneously generate the associated fields of the current collection in the target collection.", "Link to description": "Used to create collection relationships quickly and compatible with most common scenarios. Suitable for non-developer use. When present as a field, it is a drop-down selection used to select records from the target collection. Once created, it will simultaneously generate the associated fields of the current collection in the target collection.",
"Sub-table": "Sub-table", "Sub-table": "Sub-table",
"Sub-details": "Sub-details", "Sub-details": "Sub-details",
"Sub-form(Popover)": "Sub-form(Popover)", "Subform: Popover": "Subform: Popover",
"Subtable: Drawer": "Subtable: Drawer", "Subtable: Drawer": "Subtable: Drawer",
"System info": "System info", "System info": "System info",
"Created at": "Created at", "Created at": "Created at",

View File

@ -230,7 +230,7 @@
"Link to": "リンク", "Link to": "リンク",
"Link to description": "コレクションの関連付けを素早く作成するためにしようされ、ほとんどの一般的なシナリオに対応しています。開発者以外の方のしようにも適しています。フィールドとして存在する場合、参照元コレクションのレコードを選択するために使用されるドロップダウンです。一度作成されると、参照先コレクションに現在のコレクションの関連フィールドが同時に生成されます。", "Link to description": "コレクションの関連付けを素早く作成するためにしようされ、ほとんどの一般的なシナリオに対応しています。開発者以外の方のしようにも適しています。フィールドとして存在する場合、参照元コレクションのレコードを選択するために使用されるドロップダウンです。一度作成されると、参照先コレクションに現在のコレクションの関連フィールドが同時に生成されます。",
"Sub-table": "サブテーブル", "Sub-table": "サブテーブル",
"Sub-form(Popover)": "サブフォーム(ポップアップ窓)", "Subform: Popover": "サブフォーム:ポップアップ窓",
"System info": "システム情報", "System info": "システム情報",
"Created at": "作成日", "Created at": "作成日",
"Last updated at": "最終更新日", "Last updated at": "最終更新日",

View File

@ -332,7 +332,7 @@
"Select file": "파일 선택", "Select file": "파일 선택",
"Subtable": "하위 테이블", "Subtable": "하위 테이블",
"Sub-form": "하위 폼", "Sub-form": "하위 폼",
"Sub-form(Popover)": "하위 폼(팝업)", "Subform: Popover": "하위 폼:팝업",
"Sub-details": "하위 세부사항", "Sub-details": "하위 세부사항",
"Record picker": "레코드 선택기", "Record picker": "레코드 선택기",
"Toggles the subfield mode": "하위 필드 모드 전환", "Toggles the subfield mode": "하위 필드 모드 전환",

View File

@ -333,7 +333,7 @@
"Select file": "选择文件", "Select file": "选择文件",
"Subtable": "子表格", "Subtable": "子表格",
"Sub-form": "子表单", "Sub-form": "子表单",
"Sub-form(Popover)": "子表单(弹窗)", "Subform: Popover": "子表单:弹窗",
"Subtable: Drawer": "子表格:抽屉", "Subtable: Drawer": "子表格:抽屉",
"Sub-details": "子详情", "Sub-details": "子详情",
"Record picker": "数据选择器", "Record picker": "数据选择器",

View File

@ -332,7 +332,7 @@
"Select file": "選擇檔案", "Select file": "選擇檔案",
"Subtable": "子表格", "Subtable": "子表格",
"Sub-form": "子表單", "Sub-form": "子表單",
"Sub-form(Popover)": "子表單 (彈窗)", "Subform: Popover": "子表單:彈窗",
"Sub-details": "子詳情", "Sub-details": "子詳情",
"Record picker": "資料選擇器", "Record picker": "資料選擇器",
"Toggles the subfield mode": "切換子欄位模式", "Toggles the subfield mode": "切換子欄位模式",

View File

@ -56,7 +56,7 @@ export const useFieldModeOptions = (props?) => {
['m2m', 'o2m'].includes(collectionField.interface) && { label: t('Sub-table'), value: 'SubTable' }, ['m2m', 'o2m'].includes(collectionField.interface) && { label: t('Sub-table'), value: 'SubTable' },
{ label: t('Cascade Select'), value: 'CascadeSelect' }, { label: t('Cascade Select'), value: 'CascadeSelect' },
!isTableField && { label: t('Sub-form'), value: 'Nester' }, !isTableField && { label: t('Sub-form'), value: 'Nester' },
{ label: t('Sub-form(Popover)'), value: 'PopoverNester' }, { label: t('Subform: Popover'), value: 'PopoverNester' },
{ label: t('Subtable: Drawer'), value: 'DrawerSubTable' }, { label: t('Subtable: Drawer'), value: 'DrawerSubTable' },
{ label: t('Cascader'), value: 'Cascader' }, { label: t('Cascader'), value: 'Cascader' },
]; ];
@ -74,7 +74,7 @@ export const useFieldModeOptions = (props?) => {
{ label: t('Select'), value: 'Select' }, { label: t('Select'), value: 'Select' },
{ label: t('Record picker'), value: 'Picker' }, { label: t('Record picker'), value: 'Picker' },
!isTableField && { label: t('Sub-form'), value: 'Nester' }, !isTableField && { label: t('Sub-form'), value: 'Nester' },
{ label: t('Sub-form(Popover)'), value: 'PopoverNester' }, { label: t('Subform: Popover'), value: 'PopoverNester' },
{ label: t('Subtable: Drawer'), value: 'DrawerSubTable' }, { label: t('Subtable: Drawer'), value: 'DrawerSubTable' },
!isTableField && { label: t('Sub-table'), value: 'SubTable' }, !isTableField && { label: t('Sub-table'), value: 'SubTable' },
]; ];
@ -91,7 +91,7 @@ export const useFieldModeOptions = (props?) => {
{ label: t('Record picker'), value: 'Picker' }, { label: t('Record picker'), value: 'Picker' },
!isTableField && { label: t('Sub-table'), value: 'SubTable' }, !isTableField && { label: t('Sub-table'), value: 'SubTable' },
!isTableField && { label: t('Sub-form'), value: 'Nester' }, !isTableField && { label: t('Sub-form'), value: 'Nester' },
{ label: t('Sub-form(Popover)'), value: 'PopoverNester' }, { label: t('Subform: Popover'), value: 'PopoverNester' },
{ label: t('Subtable: Drawer'), value: 'DrawerSubTable' }, { label: t('Subtable: Drawer'), value: 'DrawerSubTable' },
]; ];
case 'm2o': case 'm2o':
@ -106,7 +106,7 @@ export const useFieldModeOptions = (props?) => {
{ label: t('Select'), value: 'Select' }, { label: t('Select'), value: 'Select' },
{ label: t('Record picker'), value: 'Picker' }, { label: t('Record picker'), value: 'Picker' },
!isTableField && { label: t('Sub-form'), value: 'Nester' }, !isTableField && { label: t('Sub-form'), value: 'Nester' },
{ label: t('Sub-form(Popover)'), value: 'PopoverNester' }, { label: t('Subform: Popover'), value: 'PopoverNester' },
{ label: t('Subtable: Drawer'), value: 'DrawerSubTable' }, { label: t('Subtable: Drawer'), value: 'DrawerSubTable' },
{ label: t('Cascader'), value: 'Cascader' }, { label: t('Cascader'), value: 'Cascader' },
]; ];
@ -122,7 +122,7 @@ export const useFieldModeOptions = (props?) => {
{ label: t('Select'), value: 'Select' }, { label: t('Select'), value: 'Select' },
{ label: t('Record picker'), value: 'Picker' }, { label: t('Record picker'), value: 'Picker' },
!isTableField && { label: t('Sub-form'), value: 'Nester' }, !isTableField && { label: t('Sub-form'), value: 'Nester' },
{ label: t('Sub-form(Popover)'), value: 'PopoverNester' }, { label: t('Subform: Popover'), value: 'PopoverNester' },
{ label: t('Subtable: Drawer'), value: 'DrawerSubTable' }, { label: t('Subtable: Drawer'), value: 'DrawerSubTable' },
]; ];
} }