mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 18:56:52 +00:00
refactor: association field
This commit is contained in:
parent
e48278f052
commit
c2cc547153
@ -9,7 +9,7 @@ export const ReadPretty = (props) => {
|
||||
const { mode = 'Select', enableLink } = props;
|
||||
return (
|
||||
<AssociationFieldProvider>
|
||||
{(mode === 'Picker' || enableLink !== false) && <ReadPrettyInternalViewer {...props} />}
|
||||
{(mode === 'Picker' || (mode === 'Select' && enableLink !== false)) && <ReadPrettyInternalViewer {...props} />}
|
||||
{mode === 'Nester' && <InternalNester {...props} />}
|
||||
{mode === 'Select' && enableLink === false && <AssociationSelectReadPretty {...props} />}
|
||||
{mode === 'SubTable' && <InternalSubTable {...props} />}
|
||||
|
Loading…
Reference in New Issue
Block a user