From 3a30fab62c604128237439ad2650f7deaa0955a6 Mon Sep 17 00:00:00 2001 From: wanghong Date: Fri, 20 Oct 2023 14:49:40 +0800 Subject: [PATCH] [style](System): update EnterpriseFeatureDisplay --- .../EnterpriseFeatureDisplay.tsx | 122 ++++++++++-------- .../EnterpriseFeatureDisplay/style.ts | 11 +- 2 files changed, 71 insertions(+), 62 deletions(-) diff --git a/packages/shared/lib/components/EnterpriseFeatureDisplay/EnterpriseFeatureDisplay.tsx b/packages/shared/lib/components/EnterpriseFeatureDisplay/EnterpriseFeatureDisplay.tsx index 10ea3699e..e0303c258 100644 --- a/packages/shared/lib/components/EnterpriseFeatureDisplay/EnterpriseFeatureDisplay.tsx +++ b/packages/shared/lib/components/EnterpriseFeatureDisplay/EnterpriseFeatureDisplay.tsx @@ -8,6 +8,7 @@ import { IconBookMark, IconCustomService } from '../Icons/EnterpriseFeatureDisplay'; +import EmptyBox from '../EmptyBox'; const EnterpriseFeatureDisplay: React.FC = ({ children, @@ -18,67 +19,76 @@ const EnterpriseFeatureDisplay: React.FC = ({ const { t } = useTranslation(); const renderFeatureDescNode = () => (
- - {t('common.enterpriseFeatureDisplay.featureDescription')} - + + + {t('common.enterpriseFeatureDisplay.featureDescription')} + + + {eeFeatureDescription}
); - const renderAdditionalAttentionNode = () => ( -
- - {t('common.enterpriseFeatureDisplay.additionalAttention')} - - - -
-
Action DMS
-

- {t('common.enterpriseFeatureDisplay.compareLink')} -

- -
-
- - -
-
Action DMS
-

- {t('common.enterpriseFeatureDisplay.businessLink', { - featureName - })} -

- - - SQLE Github - - - - {t('common.enterpriseFeatureDisplay.linkUs')} - - - + const renderBookMarkCard = () => ( + + +
+
Action DMS
+

+ {t('common.enterpriseFeatureDisplay.compareLink')} +

+ - +
+
+ ); + + const renderCustomServiceCard = () => ( + + +
+
Action DMS
+

+ {t('common.enterpriseFeatureDisplay.businessLink', { + featureName + })} +

+ + + SQLE Github + + + + + {t('common.enterpriseFeatureDisplay.linkUs')} + + + +
+
+ ); + const renderAdditionalAttentionNode = () => ( +
+ + + {t('common.enterpriseFeatureDisplay.additionalAttention')} + + + {renderCustomServiceCard()} + {renderBookMarkCard()}
); diff --git a/packages/shared/lib/components/EnterpriseFeatureDisplay/style.ts b/packages/shared/lib/components/EnterpriseFeatureDisplay/style.ts index d8b4860f0..9f5c42e32 100644 --- a/packages/shared/lib/components/EnterpriseFeatureDisplay/style.ts +++ b/packages/shared/lib/components/EnterpriseFeatureDisplay/style.ts @@ -6,11 +6,11 @@ export const CEIndexStyleWrapper = styled('section')` .common-mode-wrapper { height: calc(100vh - 60px); - } - .${ANTD_PREFIX_STR}-col { - padding: 40px; - height: calc(100vh - 60px); + .${ANTD_PREFIX_STR}-col { + padding: 40px; + height: calc(100vh - 60px); + } } .title { @@ -85,8 +85,7 @@ export const CEIndexStyleWrapper = styled('section')` line-height: 32px; } - .left, - .right { + .left { margin-top: 12px; } }