fix: delete field style improve (#3820)
This commit is contained in:
parent
7b9acb73c4
commit
467699cdf9
@ -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 (
|
||||||
|
Loading…
Reference in New Issue
Block a user