|
|
@@ -11,11 +11,11 @@ export const AttendanceStats: React.FC<AttendanceStatsProps> = ({ stats }) => {
|
|
|
<View className="bg-white rounded-lg p-4 mb-4 mx-4 flex flex-col">
|
|
|
{/* 两列统计布局 */}
|
|
|
<View className="flex justify-between items-center mb-4">
|
|
|
- <View>
|
|
|
+ <View className="flex flex-col">
|
|
|
<Text className="text-gray-700 text-sm">出勤率</Text>
|
|
|
<Text className="text-2xl font-bold text-gray-800">{stats.attendanceRate}%</Text>
|
|
|
</View>
|
|
|
- <View className="text-right">
|
|
|
+ <View className="flex flex-col text-right">
|
|
|
<Text className="text-gray-700 text-sm">正常出勤</Text>
|
|
|
<Text className="text-2xl font-bold text-gray-800">{stats.normalDays}天</Text>
|
|
|
</View>
|