mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:57:20 +00:00
fix(map): ellipsis with tooltip
This commit is contained in:
parent
780f2d556e
commit
4ec19e9c0c
@ -1,5 +1,5 @@
|
||||
import { useField, useFieldSchema } from '@formily/react';
|
||||
import { useCollection } from '@nocobase/client';
|
||||
import { EllipsisWithTooltip, useCollection } from '@nocobase/client';
|
||||
import React, { useEffect } from 'react';
|
||||
import AMapComponent from './AMap';
|
||||
|
||||
@ -19,12 +19,10 @@ const ReadPretty = (props) => {
|
||||
|
||||
if (!readOnly)
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
whiteSpace: 'pre-wrap',
|
||||
}}
|
||||
>
|
||||
{value?.map((item) => (Array.isArray(item) ? `(${item.join(',')})` : item)).join(',')}
|
||||
<div>
|
||||
<EllipsisWithTooltip ellipsis={true}>
|
||||
{value?.map((item) => (Array.isArray(item) ? `(${item.join(',')})` : item)).join(',')}
|
||||
</EllipsisWithTooltip>
|
||||
</div>
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user