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:
@@ -20,7 +20,7 @@
|
||||
loadingStatus: 'loading',
|
||||
size: 'large',
|
||||
minHeight: '80vh',
|
||||
loadingText: '稍等,正在加载中哦',
|
||||
loadingText: '稍等,正在加载中哦~',
|
||||
errorText: '哎呀,加载失败了呢~',
|
||||
emptyText: '啊偶,暂时没有数据呢~',
|
||||
loadingSubText: '',
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user