随笔分类 -  uniapp

前端
摘要:1.首先在父组件methods中定义一个方法: thumbsUpChange(item) { console.log("子组件传来的值", item) }, 2.在父组件引用子组件时绑定该方法: <cate-top :list="list" v-on:pThumbsUp="thumbsUpChang 阅读全文
posted @ 2022-05-15 16:08 安详的苦丁茶 阅读(1914) 评论(0) 推荐(0) 编辑
摘要:这里采用的是把组件注入到全局的方式,因为这个查询列表的时候都需要用到的... 使用状态的方式控制加载时是否需要提示,提示什么... 1.新增组件 pull-down-loading.vue(在components包下) <template> <view class="load-main"> <!-- 阅读全文
posted @ 2022-04-28 13:48 安详的苦丁茶 阅读(41) 评论(0) 推荐(0) 编辑
摘要:uniapp有多钟下拉刷新方式,这里只要说两种(整体下拉、非整体下拉) 整体下拉刷新 <template> <view> <scroll-view scroll-y :refresher-threshold="45" :refresher-enabled="true" :refresher-trig 阅读全文
posted @ 2022-04-28 00:35 安详的苦丁茶 阅读(2026) 评论(1) 推荐(1) 编辑
摘要:使用uniapp实现可滑动的选项卡,可用于条件查询订单、记录等信息 可以直接用的 模板内容 <template> <view class="container"> <!-- 顶部选项卡 --> <scroll-view class="pagecontrol-top-scroll" scroll-x= 阅读全文
posted @ 2022-04-27 19:37 安详的苦丁茶 阅读(1407) 评论(0) 推荐(0) 编辑
摘要:使用uniapp仿淘宝上拉分页加载效果 一、首先在data中定义值 // 加载状态 0:上拉显示更多 1:加载中 2:没有更多数据 3:不显示 loadingType: 3, contentText: { contentdown: '上拉显示更多', contentrefresh: '加载中...' 阅读全文
posted @ 2022-04-01 19:09 安详的苦丁茶 阅读(159) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示