feat: improve the non-link ui of association data (#1602)

This commit is contained in:
Dunqing 2023-03-29 16:52:00 +08:00 committed by GitHub
parent bb9b72e0d7
commit e5ee716702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
import { css } from '@emotion/css';
import { observer, RecursionField, useFieldSchema } from '@formily/react';
import { toArr } from '@formily/shared';
import { Tag } from 'antd';
import { Typography } from 'antd';
import React, { Fragment, useRef, useState } from 'react';
import { BlockAssociationContext, WithoutTableFieldResource } from '../../../block-provider';
import { CollectionProvider, useCollection, useCollectionManager } from '../../../collection-manager';
@ -52,7 +53,14 @@ export const ReadPrettyRecordPicker: React.FC = observer((props: any) => {
{snapshot ? (
text
) : isTagsMode ? (
<Tag>{text}</Tag>
<Typography.Text
className={css`
margin-left: 8px;
`}
underline
>
{text}
</Typography.Text>
) : (
<a
onClick={(e) => {