摘要: vue3批量将图片添加水印并导出压缩包 vue3批量将图片添加水印并导出压缩包 <script setup lang="ts"> import { ref, onMounted } from 'vue' import JSZip from 'jszip' const img_list = ref([ { img: 'https://img 阅读全文
posted @ 2024-03-29 16:48 小万子呀 阅读(19) 评论(1) 推荐(0) 编辑
摘要: Vue3+vite main.js 文件 app.config.compilerOptions.isCustomElement = (tag) => tag.startsWith('wx-open-launch-weapp'); // 防止vue变异报错 Page.vue <wx-open-laun 阅读全文
posted @ 2023-11-13 17:01 小万子呀 阅读(34) 评论(0) 推荐(0) 编辑
摘要: vue3使用高德地图进行多边形的绘制,编辑以及创建 npm i @amap/amap-jsapi-loader --save <!-- 高德地图 --> <template> <div style="display: flex;"> <div id="container" style="width: 800px; height: 500px; bor 阅读全文
posted @ 2023-10-17 14:34 小万子呀 阅读(659) 评论(3) 推荐(0) 编辑
摘要: ```javascript // smoothUpward.ts const DURATION = 500; const animationMap = new WeakMap(); const observer = new IntersectionObserver((entries) => { fo 阅读全文
posted @ 2023-06-20 16:02 小万子呀 阅读(16) 评论(0) 推荐(0) 编辑
摘要: uniapp上拉加载下拉刷新 ```javascript {{ topTis }} A {{ loadOver ? (isScrolltolower ? '努力加载中....' : '上拉加载更多') : '人家是有底线的' }} ``` ![](https://img2023.cnblogs.com/blog/2668541/ 阅读全文
posted @ 2023-06-15 09:26 小万子呀 阅读(342) 评论(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 小万子呀 阅读(682) 评论(0) 推荐(0) 编辑
摘要: 文件上传进度条 export function cloudrtkImport(data, idx, callback, signal) { return request({ url: "/***********", method: "POST", headers: { Authorization: 阅读全文
posted @ 2023-05-17 11:38 小万子呀 阅读(45) 评论(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:53 小万子呀 阅读(40) 评论(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 小万子呀 阅读(459) 评论(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:18 小万子呀 阅读(23) 评论(0) 推荐(0) 编辑