fix: delete field style improve (#3820)

This commit is contained in:
jack zhang 2024-03-28 16:54:31 +08:00 committed by GitHub
parent 7b9acb73c4
commit 467699cdf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
import { App, Button, Result, Typography } from 'antd'; import { App, Button, Result, Typography } from 'antd';
import React, { FC, useMemo } from 'react'; import React, { FC, useMemo } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { CardItem, useCompile, useDesignable } from '../../schema-component'; import { CardItem, EllipsisWithTooltip, useCompile, useDesignable } from '../../schema-component';
import { useDataSource } from '../data-source/DataSourceProvider'; import { useDataSource } from '../data-source/DataSourceProvider';
import { useDataSourceManager } from '../data-source'; import { useDataSourceManager } from '../data-source';
import { DEFAULT_DATA_SOURCE_KEY } from '../../data-source/data-source/DataSourceManager'; import { DEFAULT_DATA_SOURCE_KEY } from '../../data-source/data-source/DataSourceManager';
@ -66,7 +66,11 @@ export const CollectionDeletedPlaceholder: FC<CollectionDeletedPlaceholderProps>
if (designable) { if (designable) {
if (type === 'Field') { if (type === 'Field') {
return <Text type="secondary">{messageValue}</Text>; return (
<EllipsisWithTooltip ellipsis>
<Text type="secondary">{messageValue}</Text>
</EllipsisWithTooltip>
);
} }
return ( return (