mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 12:26:22 +00:00
fix: association fields cannot config in table (#2146)
This commit is contained in:
parent
15f824387e
commit
ece7cb76c2
@ -1,14 +1,14 @@
|
||||
import { useField, useFieldSchema } from '@formily/react';
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useCompile } from '../../schema-component';
|
||||
import { SchemaInitializer } from '../SchemaInitializer';
|
||||
import {
|
||||
itemsMerge,
|
||||
useAssociatedTableColumnInitializerFields,
|
||||
useTableColumnInitializerFields,
|
||||
useInheritsTableColumnInitializerFields,
|
||||
useTableColumnInitializerFields,
|
||||
} from '../utils';
|
||||
import { useCompile } from '../../schema-component';
|
||||
import { useField, useFieldSchema } from '@formily/react';
|
||||
|
||||
// 表格列配置
|
||||
export const TableColumnInitializers = (props: any) => {
|
||||
@ -42,7 +42,7 @@ export const TableColumnInitializers = (props: any) => {
|
||||
);
|
||||
});
|
||||
}
|
||||
if (associatedFields?.length > 0 && field.readPretty) {
|
||||
if (associatedFields?.length > 0 && (!isSubTable || field.readPretty)) {
|
||||
fieldItems.push(
|
||||
{
|
||||
type: 'divider',
|
||||
|
Loading…
Reference in New Issue
Block a user