1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-11-13 22:11:42 +08:00

feat: 新增加载更多组件,完善数据加载状态管理

1.  新增uh-data-loadmore加载更多组件,适配下拉加载场景
2.  扩展DataLoadingStatus类型,新增no-network状态
3.  重构useDataLoadingStatus hooks,新增加载更多状态管理
4.  优化分类页面加载逻辑,替换旧的加载更多实现
5.  调整维护页、加载提示文案细节
6.  重构轮播详情页,统一使用数据加载状态机
7.  删除过时的useDataLoading测试文件
This commit is contained in:
小莫唐尼
2026-09-11 22:49:45 +08:00
parent f76e8a43d4
commit 9c06766f81
8 changed files with 252 additions and 292 deletions
@@ -0,0 +1,15 @@
<script setup lang="ts">
import type { LoadMoreStatus } from '@/hooks/useDataLoadingStatus'
interface IProps {
text : string
status : LoadMoreStatus
}
const props = defineProps<IProps>()
</script>
<template>
<view class="w-full py-5 flex items-center justify-center gap-x-2 text-xs text-gray-400">
<wd-loading v-if="props.status==='loading'" size="32rpx" color="#D7F94C"></wd-loading> {{ props.text }}
</view>
</template>