refactor: association field

This commit is contained in:
katherinehhh 2023-05-06 13:38:04 +08:00
parent e48278f052
commit c2cc547153

View File

@ -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} />}