diff --git a/packages/editor-sdk/src/components/Form/ArrayTable.tsx b/packages/editor-sdk/src/components/Form/ArrayTable.tsx index 60b2e3500..e0854d298 100644 --- a/packages/editor-sdk/src/components/Form/ArrayTable.tsx +++ b/packages/editor-sdk/src/components/Form/ArrayTable.tsx @@ -1,6 +1,6 @@ import React, { useMemo, useCallback } from 'react'; import { css } from '@emotion/css'; -import { IconButton, Table, Thead, Tbody, Tr, Th, Td } from '@chakra-ui/react'; +import { IconButton, Table, Thead, Tbody, Tr, Th, Td, Tooltip } from '@chakra-ui/react'; import { AddIcon, SettingsIcon } from '@chakra-ui/icons'; import { generateDefaultValueFromSpec, isJSONSchema } from '@sunmao-ui/shared'; import { JSONSchema7 } from 'json-schema'; @@ -125,11 +125,15 @@ const TableRow: React.FC = props => { ? propertyValue : JSON.stringify(propertyValue); - return ( - - {propertyValueString} - - ); + let ele = {propertyValueString}; + if (propertyValueString.length > 10) { + ele = ( + + {ele} + + ); + } + return {ele}; })}