|
@@ -4,7 +4,7 @@
|
|
|
*/
|
|
*/
|
|
|
import React from 'react'
|
|
import React from 'react'
|
|
|
import { View, Text } from '@tarojs/components'
|
|
import { View, Text } from '@tarojs/components'
|
|
|
-import { EmploymentHistoryItem, WorkStatus, isCurrentWork, formatDateRange } from '../types/employment'
|
|
|
|
|
|
|
+import { EmploymentHistoryItem, isCurrentWork, formatDateRange } from '../types/employment'
|
|
|
|
|
|
|
|
interface EmploymentHistoryItemProps {
|
|
interface EmploymentHistoryItemProps {
|
|
|
item: EmploymentHistoryItem
|
|
item: EmploymentHistoryItem
|
|
@@ -24,7 +24,7 @@ export const EmploymentHistoryItemComponent: React.FC<EmploymentHistoryItemProps
|
|
|
</View>
|
|
</View>
|
|
|
|
|
|
|
|
{/* 内容 */}
|
|
{/* 内容 */}
|
|
|
- <View className="flex-1 pb-4">
|
|
|
|
|
|
|
+ <View className="flex flex-col flex-1 pb-4">
|
|
|
<Text className="font-medium text-gray-800">{item.companyName || '未知企业'}</Text>
|
|
<Text className="font-medium text-gray-800">{item.companyName || '未知企业'}</Text>
|
|
|
<Text className="text-sm text-gray-500 mb-1">{item.orderName || item.positionName || '未知岗位'}</Text>
|
|
<Text className="text-sm text-gray-500 mb-1">{item.orderName || item.positionName || '未知岗位'}</Text>
|
|
|
<Text className="text-xs text-gray-500">{formatDateRange(item.joinDate, item.leaveDate)}</Text>
|
|
<Text className="text-xs text-gray-500">{formatDateRange(item.joinDate, item.leaveDate)}</Text>
|