diff --git a/components/StepsCard.tsx b/components/StepsCard.tsx index cec50e8..8fd0f87 100644 --- a/components/StepsCard.tsx +++ b/components/StepsCard.tsx @@ -97,18 +97,33 @@ const StepsCard: React.FC = ({ }); return ( - + + {/* 背景柱体 - 始终显示,使用相似色系的淡色 */} + + + {/* 数据柱体 - 只有当有数据时才显示并执行动画 */} + {isActive && ( + + )} + ); })} @@ -171,10 +186,18 @@ const styles = StyleSheet.create({ justifyContent: 'space-between', paddingHorizontal: 4, }, + barContainer: { + width: 4, + height: 20, + alignItems: 'center', + justifyContent: 'flex-end', + position: 'relative', + }, chartBar: { width: 4, borderRadius: 1, - alignSelf: 'flex-end', + position: 'absolute', + bottom: 0, }, statsContainer: { alignItems: 'flex-start',