摘要: uniapp上拉加载下拉刷新 ```javascript {{ topTis }} A {{ loadOver ? (isScrolltolower ? '努力加载中....' : '上拉加载更多') : '人家是有底线的' }} ``` ![](https://img2023.cnblogs.com/blog/2668541/ 阅读全文
posted @ 2023-06-15 09:26 小万子呀 阅读(468) 评论(0) 推荐(0)
摘要: vue3 +leaflet + 天地图 ### vue3使用leaflet ```javascript npm install leaflet -D ``` ###### 如果使用了ts ```javascript npm i --save-dev @types/leaflet // 使用了ts需要下载声明类型 ``` ```javasc 阅读全文
posted @ 2023-05-20 14:43 小万子呀 阅读(1299) 评论(0) 推荐(0)
摘要: 文件上传进度条 export function cloudrtkImport(data, idx, callback, signal) { return request({ url: "/***********", method: "POST", headers: { Authorization: 阅读全文
posted @ 2023-05-17 11:37 小万子呀 阅读(67) 评论(0) 推荐(0)
摘要: <template> <el-dialog title="批量下载" :visible.sync="isShow" width="1000" :before-close="handleClose"> <div class="downBox"> <div class="downTop"> <span> 阅读全文
posted @ 2023-03-28 16:52 小万子呀 阅读(91) 评论(0) 推荐(0)
摘要: <div> <canvas @mousemove="canvasMove" @mouseup="canvasUp" ref="canvas" width="1000" height="500" @mousedown="mousedown" @mouseleave="canvasLeave"></ca 阅读全文
posted @ 2023-02-24 12:42 小万子呀 阅读(663) 评论(0) 推荐(0)
摘要: <template> <div style="display: flex;margin: 0 0 12px 0;flex-wrap: wrap;"> <template v-if="files.length > 0"> <div class="imgItem" v-for="(v, i) in fi 阅读全文
posted @ 2023-02-18 09:17 小万子呀 阅读(53) 评论(0) 推荐(0)
摘要: <import src="../we-cropper/we-cropper.wxml" /> <-- 引入 --> <template is="we-cropper" data="{{...cropperOpt}}" /> <view class="cropperbg"> <template is= 阅读全文
posted @ 2023-02-17 09:03 小万子呀 阅读(732) 评论(0) 推荐(0)
摘要: // tsconfig.json下增加一句 "suppressImplicitAnyIndexErrors": true, 阅读全文
posted @ 2022-12-26 15:11 小万子呀 阅读(3042) 评论(0) 推荐(0)
摘要: vite环境变量 1、根目录创建 .env.development 、 .env.production // .env.development 开发环境地址 NODE_ENV = 'development' VITE_BASE_URL = '开发环境地址' // .env.production 生产 阅读全文
posted @ 2022-12-26 14:21 小万子呀 阅读(567) 评论(0) 推荐(0)
摘要: pinia初使用 npm install pinia import { createPinia } from 'pinia' app.use(createPinia()) 可以直接创建一个pinia文件夹 列如 src/pinia/layout.ts import { defineStore } f 阅读全文
posted @ 2022-12-24 16:52 小万子呀 阅读(103) 评论(0) 推荐(0)