unaipp
weixin_46774564
这个作者很懒,什么都没留下…
展开
-
uniapp+vant+ts实现下拉选择(单选和多选)
效果index.vue<!-- * @FileDescription: 下拉选择 * @Author: 鱼鱼 * @Date: 2022/02/15--><template> <van-dropdown-menu> <van-dropdown-item :title="value1"> <view class="slotBody"> <template v-for="item,原创 2022-02-18 17:30:33 · 2613 阅读 · 0 评论 -
uniapp+vue3+ts基于uview的路由跳转进行修改
route.ts/** * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷 * 并且带有路由拦截功能 */import { deepClone, page, deepMerge } from '@/utils'type ToPageType =| 'navigateTo'| 'to'| 'redirectTo'| 'redirect'| 'switchTab'| 'tab'| 'reLaunch'| 'launch'| 'navigateBack'原创 2022-02-17 14:19:05 · 2619 阅读 · 0 评论 -
基于uniapp+vue3+ts的api请求封装,并可自定义拦截器
requestClass.tsconst config = Symbol('config')const isCompleteURL = Symbol('isCompleteURL')const requestBefore = Symbol('requestBefore')const requestAfter = Symbol('requestAfter')class requestClass { // 默认配置 [config]: { baseURL?: string } & U原创 2022-02-17 14:13:38 · 4479 阅读 · 4 评论 -
uniapp中小程序的自定义导航栏组件
<template> <view class="custom_bar"> <view v-if="needSeat" :style="{ height: heightSize ? heightSize : customBar + 'px' }" ></view> <view class="custom is_fixed" :style="{原创 2022-02-17 14:09:05 · 583 阅读 · 0 评论