diff --git a/packages/core/client/src/locale/en_US.ts b/packages/core/client/src/locale/en_US.ts index fab4007c0c..9091fefaf3 100644 --- a/packages/core/client/src/locale/en_US.ts +++ b/packages/core/client/src/locale/en_US.ts @@ -281,6 +281,9 @@ export default { "Display association fields": "Display association fields", "Display field title": "Display field title", "Field component": "Field component", + "Allow multiple": "Allow multiple", + "Quick upload": "Quick upload", + "Select file": "Select file", "Subtable": "Subtable", "Subform": "Sub-form", "Field mode":"Field mode", diff --git a/packages/core/client/src/locale/ja_JP.ts b/packages/core/client/src/locale/ja_JP.ts index cb2521f516..81aec0762b 100644 --- a/packages/core/client/src/locale/ja_JP.ts +++ b/packages/core/client/src/locale/ja_JP.ts @@ -554,6 +554,9 @@ export default { "Edit block title": "ブロックタイトルを編集", "Province/city/area name": "Province/city/area name", "Field component": "フィールドコンポーネント", + "Allow multiple": "複数選択を許可する", + "Quick upload": "クイックアップロード", + "Select file": "ファイルを選択", "Subtable": "サブテーブル", "Subform": "サブフォーム", "Sub-details":"サブリスト", diff --git a/packages/core/client/src/locale/pt_BR.ts b/packages/core/client/src/locale/pt_BR.ts index 690572cbee..31b4ee4f9f 100644 --- a/packages/core/client/src/locale/pt_BR.ts +++ b/packages/core/client/src/locale/pt_BR.ts @@ -240,6 +240,9 @@ export default { "Display association fields": "Exibir campos de associação", "Display field title": "Exibir título do campo", "Field component": "Componente de campo", + "Quick upload": "Upload rápido", + "Select file": "Selecionar arquivo", + "Allow multiple": "Permitir múltiplos", "Subtable": "Subtabela", "Subform": "Subformulário", "Record picker": "Selecionador de registros", diff --git a/packages/core/client/src/locale/ru_RU.ts b/packages/core/client/src/locale/ru_RU.ts index 6b99c6d12d..a267f5bba1 100644 --- a/packages/core/client/src/locale/ru_RU.ts +++ b/packages/core/client/src/locale/ru_RU.ts @@ -492,6 +492,9 @@ export default { "Edit block title": "Изменить заголовок блока", "Province/city/area name": "Имя области/города/района", "Field component": "Компонент поля", + "Allow multiple": "Разрешить множественный выбор", + "Quick upload": "Быстрая загрузка", + "Select file": "Выбрать файл", "Subtable": "Подтаблица", "Subform": "Подформа", "Regular expression": "Образец", diff --git a/packages/core/client/src/locale/tr_TR.ts b/packages/core/client/src/locale/tr_TR.ts index 28b35c34cc..918af306ce 100644 --- a/packages/core/client/src/locale/tr_TR.ts +++ b/packages/core/client/src/locale/tr_TR.ts @@ -491,6 +491,9 @@ export default { "operater": "operatör", "Province/city/area name": "Semt/şehir/bölge adı", "Field component": "Alan bileşeni", + "Allow multiple": "Birden çok izin ver", + "Quick upload": "Hızlı yükleme", + "Select file": "Dosya seç", "Subtable": "Alttablo", "Subform": "Altform", "Regular expression": "Model(Pattern)", diff --git a/packages/core/client/src/locale/zh_CN.ts b/packages/core/client/src/locale/zh_CN.ts index 464c309a92..a59fbd4fb1 100644 --- a/packages/core/client/src/locale/zh_CN.ts +++ b/packages/core/client/src/locale/zh_CN.ts @@ -302,6 +302,9 @@ export default { "Display association fields": "显示关联表的字段", "Display field title": "显示字段标题", "Field component": "字段组件", + "Allow multiple": "允许多选", + "Quick upload": "快速上传", + "Select file": "选择文件", "Subtable": "子表格", "Subform": "子表单", "Sub-details":"子详情", diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx index cec8060716..449b18b4ba 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx @@ -2,19 +2,21 @@ import { FormLayout } from '@formily/antd'; import { RecursionField, useField, useFieldSchema } from '@formily/react'; import React, { useEffect } from 'react'; import { CollectionProvider } from '../../../collection-manager'; -import { useAssociationFieldContext, useInsertSchema } from './hooks'; +import { useInsertSchema } from './hooks'; +import { useCollectionManager } from '../../../'; import schema from './schema'; export const InternalNester = () => { const field = useField(); const fieldSchema = useFieldSchema(); const insertNester = useInsertSchema('Nester'); - const { options } = useAssociationFieldContext(); + const { getCollectionJoinField } = useCollectionManager(); + const collectionField = getCollectionJoinField(fieldSchema['x-collection-field']); useEffect(() => { insertNester(schema.Nester); }, []); return ( - +