diff --git a/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx index 82785f1b38b..1f02c39d75f 100644 --- a/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx @@ -16,6 +16,7 @@ import { useCollectionField } from '../../../data-source/collection-field/Collec import { EllipsisWithTooltip } from '../input/EllipsisWithTooltip'; import { FieldNames, defaultFieldNames, getCurrentOptions } from './utils'; import { withPopupWrapper } from '../../common/withPopupWrapper'; +import { Icon } from '../../../icon'; export interface SelectReadPrettyProps { value: any; @@ -54,7 +55,11 @@ const ReadPrettyInternal = observer( const content = field.value !== null && currentOptions.map((option, index) => ( - + : option.icon} + > {option[fieldNames.label]} ));