From 9158edaa451ef9d6bc080ca87735dc4115ab5bde Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 9 Apr 2025 00:28:28 +0800 Subject: [PATCH] . --- apps/blogai/components/article/card.tsx | 55 ++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 6 deletions(-) diff --git a/apps/blogai/components/article/card.tsx b/apps/blogai/components/article/card.tsx index d076b4d..c03cc42 100644 --- a/apps/blogai/components/article/card.tsx +++ b/apps/blogai/components/article/card.tsx @@ -41,7 +41,11 @@ export const Card: React.FC = (articleData) => { className="cursor-pointer rounded border border-[#243c5a] overflow-hidden" > -
= (articleData) => { } alt={articleData.main_title} style={{ width: '100%', marginBottom: '8px' }} /> - - - {/* 只在 model_parameter 无效时显示感叹号 */} {(!articleData.model_parameter) && (
= (articleData) => { justifyContent: 'center', fontWeight: 'bold', fontSize: '16px', - zIndex: 2, // 保证盖在图片上面 + zIndex: 2, }}> !
)} +
*/} +
+
+ {articleData.main_title} - + {/* 🔥 只有当 model_parameter 没有值时显示叹号 */} + {(!articleData.model_parameter) && ( +
+ ! +
+ )} +
+ + + +