上一页 1 2 3 4 5 6 7 ··· 31 下一页
摘要: ol对于在地图上渲染图标,并且图标可以随着地图的缩放层级自适应,跟随地图移动,ol是提供了一个很好用的方法的 overlay 代码如下: //定义标注对象 let lable_div = document.createElement('div') lable_div.className = [s.l 阅读全文
posted @ 2024-07-22 10:00 ZerlinM 阅读(258) 评论(0) 推荐(0)
摘要: 原因 使用html2canvas、domtoimage进行截图时,会出现地图面板是空白的情况,报错如下: #1 133ms Unable to clone WebGL context as it has preserveDrawingBuffer=false <canvas style=​"widt 阅读全文
posted @ 2024-07-03 14:28 ZerlinM 阅读(303) 评论(0) 推荐(0)
摘要: base64加载图片文件 使用base64可以不发送请求将图片文件转换为base64格式的链接渲染到图片上,减少服务器访问次数,下面是base64加载图片的方式 document.getElementById("front-file").onchange = (e) => { const file 阅读全文
posted @ 2024-04-30 15:07 ZerlinM 阅读(4779) 评论(0) 推荐(0)
摘要: 代码如下 upload组件的 afterRead 方法: const afterRead = async file => { file.status = "uploading"; file.message = "上传中..."; const { data } = await upLoaderImg( 阅读全文
posted @ 2024-04-30 14:04 ZerlinM 阅读(632) 评论(0) 推荐(0)
摘要: 问题 项目中使用vue3+vant4,列表页使用了 List 来做列表加载,代码如下: <van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad" > <div v-if= 阅读全文
posted @ 2024-04-25 10:15 ZerlinM 阅读(719) 评论(0) 推荐(0)
摘要: 可在App.vue文件中引入样式 <template> <router-view /> </template> <script setup> // Toast import "vant/es/toast/style"; // Dialog import "vant/es/dialog/style"; 阅读全文
posted @ 2024-04-23 15:42 ZerlinM 阅读(732) 评论(0) 推荐(0)
摘要: 实现效果 代码如下 多选组件 DictSelect.vue <template> <van-popup :show="showPicker" position="bottom" :style="{ height: '34vh' }"> <div class="con"> <div class="co 阅读全文
posted @ 2024-04-17 10:21 ZerlinM 阅读(1117) 评论(0) 推荐(0)
摘要: 问题描述 h5项目使用openlayer展示地图,并且使用VectorLayer铺点,安卓完全没问题,但是ios上缩放后会突然触发无法缩放 并且无法点击 拖动缓慢等问题。 经排查,是VectorLayer的minZoom maxZoom导致,但不理解原因。 问题代码如下 import VectorL 阅读全文
posted @ 2024-03-29 18:08 ZerlinM 阅读(154) 评论(0) 推荐(0)
摘要: vconsole <script src="https://unpkg.com/vconsole/dist/vconsole.min.js"></script> <script> var vConsole = new window.VConsole(); </script> eruda <scrip 阅读全文
posted @ 2024-03-27 16:59 ZerlinM 阅读(38) 评论(0) 推荐(0)
摘要: 安装 rc-field-form yarn add rc-field-form 使用 import { View, Button, Input } from "@tarojs/components"; import Form, { Field, useForm } from "rc-field-fo 阅读全文
posted @ 2024-03-13 17:17 ZerlinM 阅读(217) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 31 下一页