mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-04 21:28:34 +08:00
feat: improve the non-link ui of association data (#1602)
This commit is contained in:
parent
bb9b72e0d7
commit
e5ee716702
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user