Browse Source

fix: 修改展开高度问题

xyh 2 years ago
parent
commit
f6efa309e9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/pages/list/item/index.jsx

+ 2 - 2
src/pages/list/item/index.jsx

@@ -25,7 +25,7 @@ export default function Item({
   const onClick = usePreview();
   const {className, msg} = useOrderState(states, anomaly, {time: arrivalTime});
   const [expansion, {toggle}] = useBoolean();
-  const listHeight = dataList.length * 20;
+  const listHeight = dataList.length * 28;
 
   return (
     <View className='bg-white mx-4 rounded-lg px-3 py-4 mt-3 first:mt-0'>
@@ -63,7 +63,7 @@ export default function Item({
         >
           {dataList.map(function({id, partNumber, qty}) {
             return (
-              <View className='flex overflow-hidden text-sm mt-2' key={id}>
+              <View className='flex overflow-hidden text-sm pt-2' key={id}>
                 <Text className='flex-1 block text-over mr-2'>
                   {partNumber}
                 </Text>