From c5b8b44a12b80b5c3fc0130b2bb0cc42f442f0aa Mon Sep 17 00:00:00 2001 From: chenos Date: Sun, 28 Mar 2021 08:56:31 +0800 Subject: [PATCH] fix: field tooltip --- .../src/components/pages/AdminLoader/View/Descriptions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/components/pages/AdminLoader/View/Descriptions.tsx b/packages/app/src/components/pages/AdminLoader/View/Descriptions.tsx index f40d32fc4..6e516a269 100644 --- a/packages/app/src/components/pages/AdminLoader/View/Descriptions.tsx +++ b/packages/app/src/components/pages/AdminLoader/View/Descriptions.tsx @@ -58,7 +58,7 @@ export function Descriptions(props) { const resourceKey = props.resourceKey || record[associationField.targetKey||rowKey]; const associatedKey = props.associatedKey || record[associationField.sourceKey||'id']; - console.log({resourceKey, data: record, associatedKey, associationField}) + // console.log({resourceKey, data: record, associatedKey, associationField}) const { data = {}, loading, refresh } = useRequest(() => { return api.resource(resourceName).get({ @@ -104,7 +104,7 @@ export function Descriptions(props) { column={1}> {group.children.map((field: any) => { const label = field.tooltip ? ( - <> {field.title||field.name} + <>{field.title||field.name}  ) : (field.title||field.name); return (