|
|
@@ -1,6 +1,7 @@
|
|
|
import {View, Text} from '@tarojs/components';
|
|
|
import classNames from 'classnames';
|
|
|
import './index.css';
|
|
|
+import dayjs from 'dayjs';
|
|
|
|
|
|
export default function Item({data}) {
|
|
|
return (
|
|
|
@@ -8,8 +9,8 @@ export default function Item({data}) {
|
|
|
{data.map(function({id, name, states, anomaly, arrivalTime}, idx) {
|
|
|
return (
|
|
|
<View className='flex text-xs mt-2 px-2' key={`child_${id}`}>
|
|
|
- <Text className='text-center text-over flex-1 px-1'>
|
|
|
- {idx === 0 ? arrivalTime : ''}
|
|
|
+ <Text className='text-center text-over w-20 px-1'>
|
|
|
+ {idx === 0 ? dayjs(arrivalTime).format('YYYY.MM.DD') : ''}
|
|
|
</Text>
|
|
|
<Text className='text-center text-over w-28 px-1'>{name}</Text>
|
|
|
<Text
|