mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-07-27 12:30:41 +08:00
refactor(home&post-card): 调整点击事件绑定位置并优化空状态样式
1. 将作者卡片的点击事件从子组件移到父容器上,简化子组件依赖 2. 给空状态提示容器添加box-border类统一样式规范 3. 为文章卡片添加点击跳转详情页的逻辑
This commit is contained in:
@@ -168,8 +168,8 @@ onPageScroll(() => { })
|
||||
</view>
|
||||
|
||||
<!-- 作者卡片 -->
|
||||
<view class="relative z-10 box-border px-4 -mt-12">
|
||||
<profile-card @click="showPostCardModeSelector = !showPostCardModeSelector" />
|
||||
<view class="relative z-10 box-border px-4 -mt-12" @click="showPostCardModeSelector = !showPostCardModeSelector">
|
||||
<profile-card />
|
||||
</view>
|
||||
|
||||
<!-- 测试 -->
|
||||
@@ -233,7 +233,7 @@ onPageScroll(() => { })
|
||||
<text class="text-sm text-gray-900 font-bold">最新笔记</text>
|
||||
</view>
|
||||
<view class="box-border w-full flex flex-col items-center justify-center gap-y-4 overflow-hidden">
|
||||
<view v-if="error && postList.length > 0" class="un-shadow-xs w-full rounded-2xl bg-white py-12">
|
||||
<view v-if="error && postList.length > 0" class="un-shadow-xs box-border w-full rounded-2xl bg-white py-12">
|
||||
<wd-empty :icon-size="60" icon="no-result" tip="暂无数据" />
|
||||
</view>
|
||||
<template v-else>
|
||||
|
||||
Reference in New Issue
Block a user