style(ui): 统一查看按钮图标并优化交互样式
- 将计划列表中的查看按钮图标从 "order" 更改为 "eye" 以保持一致性 - 在物料列表项中移除整个项的点击事件,改为独立的查看按钮,避免误触 - 为物料列表的查看按钮添加明确的视觉样式和点击反馈
Showing
2 changed files
with
14 additions
and
4 deletions
| ... | @@ -21,8 +21,8 @@ | ... | @@ -21,8 +21,8 @@ |
| 21 | <div class="px-[32rpx] mt-[32rpx]"> | 21 | <div class="px-[32rpx] mt-[32rpx]"> |
| 22 | <div class="flex flex-col gap-[24rpx]"> | 22 | <div class="flex flex-col gap-[24rpx]"> |
| 23 | <div v-for="(item, index) in list" :key="index" | 23 | <div v-for="(item, index) in list" :key="index" |
| 24 | - class="material-item bg-white rounded-[24rpx] p-[24rpx] shadow-sm flex items-start active:scale-[0.98] transition-all duration-200 border border-gray-50" | 24 | + class="material-item bg-white rounded-[24rpx] p-[24rpx] shadow-sm flex items-start transition-all duration-200 border border-gray-50" |
| 25 | - :style="{ animationDelay: `${index * 50}ms` }" @click="onView(item)"> | 25 | + :style="{ animationDelay: `${index * 50}ms` }"> |
| 26 | 26 | ||
| 27 | <!-- 左侧图标 --> | 27 | <!-- 左侧图标 --> |
| 28 | <div | 28 | <div |
| ... | @@ -53,7 +53,8 @@ | ... | @@ -53,7 +53,8 @@ |
| 53 | </div> | 53 | </div> |
| 54 | </div> | 54 | </div> |
| 55 | 55 | ||
| 56 | - <!-- 底部信息:文件大小 --> | 56 | + <!-- 底部信息:文件类型、大小和查看按钮 --> |
| 57 | + <div class="flex items-center justify-between"> | ||
| 57 | <div class="flex items-center gap-[12rpx]"> | 58 | <div class="flex items-center gap-[12rpx]"> |
| 58 | <span | 59 | <span |
| 59 | class="inline-flex items-center justify-center px-[12rpx] py-[4rpx] bg-gray-100 text-gray-500 text-[20rpx] font-medium rounded-[8rpx]"> | 60 | class="inline-flex items-center justify-center px-[12rpx] py-[4rpx] bg-gray-100 text-gray-500 text-[20rpx] font-medium rounded-[8rpx]"> |
| ... | @@ -63,6 +64,15 @@ | ... | @@ -63,6 +64,15 @@ |
| 63 | {{ item.size }} | 64 | {{ item.size }} |
| 64 | </span> | 65 | </span> |
| 65 | </div> | 66 | </div> |
| 67 | + | ||
| 68 | + <!-- 查看按钮 --> | ||
| 69 | + <view | ||
| 70 | + class="flex items-center justify-center px-[20rpx] py-[10rpx] bg-blue-50 rounded-full active:bg-blue-100 transition-colors" | ||
| 71 | + @tap.stop="onView(item)"> | ||
| 72 | + <IconFont name="eye" size="14" color="#2563EB" class="mr-[6rpx]" /> | ||
| 73 | + <text class="text-[24rpx] text-blue-600 font-medium leading-none">查看</text> | ||
| 74 | + </view> | ||
| 75 | + </div> | ||
| 66 | </div> | 76 | </div> |
| 67 | </div> | 77 | </div> |
| 68 | </div> | 78 | </div> | ... | ... |
| ... | @@ -55,7 +55,7 @@ | ... | @@ -55,7 +55,7 @@ |
| 55 | <!-- Actions --> | 55 | <!-- Actions --> |
| 56 | <view class="flex justify-end gap-[24rpx]"> | 56 | <view class="flex justify-end gap-[24rpx]"> |
| 57 | <view class="flex items-center text-blue-600" @tap="onView(item)"> | 57 | <view class="flex items-center text-blue-600" @tap="onView(item)"> |
| 58 | - <IconFont name="order" size="14" class="mr-[8rpx]" /> | 58 | + <IconFont name="eye" size="14" class="mr-[8rpx]" /> |
| 59 | <text class="text-[24rpx]">查看</text> | 59 | <text class="text-[24rpx]">查看</text> |
| 60 | </view> | 60 | </view> |
| 61 | <view class="flex items-center text-red-500" @tap="onDelete(item)"> | 61 | <view class="flex items-center text-red-500" @tap="onDelete(item)"> | ... | ... |
-
Please register or login to post a comment