<template><view><!-- 背景渐变 --><view class="background"></view><!-- 列表 --><scroll-view class="list" scroll-y @scrolltolower="loadMore"><view class="list-item" v-for="(item, index) in 10" :key="index">{{ index }}</view></scroll-view></view>
</template><script setup>import {ref,reactive} from 'vue'import {onLoad,onShow,onReachBottom} from '@dcloudio/uni-app'import i from '@/libs/common/index.js'import api from '@/request/api.js'import {userStore} from '@/store/userStore.js'import {commonStore} from '@/store/commonStore.js'import stationItem from '@/components/stationItem/stationItem.vue'import {usePaginatedList} from '@/hooks/usePaginatedList'import {locationStore} from '@/store/locationStore.js'const user = userStore()const common = commonStore()const location = locationStore()onLoad(() => {})function loadMore(){console.log("触底");}
</script><style lang="scss">page {background-color: #ffffff;}.background {position: absolute;top: 0;left: 0;width: 100%;height: 40vh;background: linear-gradient(to bottom, #ff7e5f, #feb47b);z-index: 1;}.list {position: relative;z-index: 2;height: 100vh;padding-top: 40rpx;box-sizing: border-box;}.list-item {border: 1px solid blue;height: 200rpx;padding: 20px;background-color: #fff;border-bottom: 1px solid #eee;margin: 0 30rpx;}.loading {text-align: center;padding: 20px;color: #999;}
</style>
uniapp-列表样式
2025/2/22 2:21:16
来源:https://blog.csdn.net/xulihua_75/article/details/145589022
浏览:
次
关键词:uniapp-列表样式
版权声明:
本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。
我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com
-
CCF-CSP第30次认证第二题——矩阵运算【看vector的用法,标红的注意点以及矩阵运算的方法】
-
第 17 天:HUD 世界 UI 显示!
-
el-input无法输入0.0001的小数,自动转换为0在vue3中的bug
热文排行
- 华为 海思22AP10(SS524)H.265 编解码处理器用户指南
- 数据库物理结构设计
- 如何在 Mac 上清空硬盘后恢复丢失的数据?
- npm install puppeteer 报错 npm ERR! PUPPETEER_DOWNLOAD_HOST is deprecated解决办法
- 基于重要抽样的主动学习不平衡分类方法ALIS
- 《缺失MRI模态下的脑肿瘤分割的潜在相关表示学习》| 文献速递-深度学习肿瘤自动分割
- 大模型分离架构学习记录
- (2)Django生产环境数据库的切换以及环境配置python-dotenv方案
- 【微信小程序】自定义组件 - 组件的生命周期
- vue项目——页面绑定回车Enter事件,进入页面路由和离开页面路由解绑事件——js技能提升