会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
环岛公路
博客园
首页
新随笔
联系
订阅
管理
2025年9月2日
a-select既能输入也能下拉
摘要: <a-select v-model:value="record[column.key]" placeholder="请选择" :disabled="record.isDefault" :options="loadingOptions" showSearch mode="SECRET_COMBOBOX
阅读全文
posted @ 2025-09-02 09:56 环岛公路
阅读(13)
评论(0)
推荐(0)
2024年8月23日
Canvas报错: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
摘要: let bgImage = new Image() bgImage.src = this.currentUrl bgImage.onload = () => { this.canvasObj.drawImage(bgImage, 0, 0, this.canvas.width, this.canva
阅读全文
posted @ 2024-08-23 15:39 环岛公路
阅读(812)
评论(0)
推荐(0)
2024年6月3日
uniapp微信小程序获取手机号 位置信息
摘要: 一.获取手机号 获取手机号 <template> <u-button open-type="getPhoneNumber" @getphonenumber="getNumber">一键登录</u-button> </template> <script> export default { method
阅读全文
posted @ 2024-06-03 17:59 环岛公路
阅读(978)
评论(0)
推荐(0)
2024年1月19日
在vue2中使用leaflet.AnimatedMarker来移动某个目标
摘要: 需求是: 点击某个按钮后 让扫描仪沿着某条线移动进行扫描 效果: 扫描仪是沿着河流移动的,河流的生成方式通过geojson数据生成,geojson里包含了河流的一些点位的经纬度,扫描仪根据经纬度来移动 leaflet: 1.9.4 leaflet.AnimatedMarker: 1.0.0 1.引入
阅读全文
posted @ 2024-01-19 19:58 环岛公路
阅读(792)
评论(0)
推荐(0)
使用pnpm来管理vue项目的node_modules
摘要: 要使用pnpm,先确保nodejs版本在16以上(目前用的18.16.1) (确保本地已经全局安装了pnpm 如果没有安装 就使用npm i -g pnpm来全局安装) 一.老项目从npm迁移到pnpm 先删掉项目中的node_modules文件夹和package-lock.json文件 在终端运行
阅读全文
posted @ 2024-01-19 19:11 环岛公路
阅读(397)
评论(0)
推荐(0)
2023年12月19日
leaflet在vue2中标点 加载geoJSON
摘要: lealfet版本1.9.4 vue版本2.6 引入: import L from 'leaflet' import 'leaflet/dist/leaflet.css' //记得引入样式 不然加载瓦片图后地图会错乱 1.初始化 this.map = L.map(this.mapId, mapIni
阅读全文
posted @ 2023-12-19 18:49 环岛公路
阅读(1014)
评论(0)
推荐(0)
2023年10月24日
多个vue项目共用组件
摘要: 本文主要介绍引入本地的自己写的组件。 1.准备3个vue2项目 demo-common文件夹里是组件在demo1和demo2中都需要使用 2.在demo-common文件夹里新建index.js文件,跟package.json同级。在index.js文件里导出在其他项目里需要用到的组件 3.分别在d
阅读全文
posted @ 2023-10-24 17:03 环岛公路
阅读(893)
评论(0)
推荐(0)
2023年9月7日
@supermap/iclient-leaflet使用tiledMapLayer报错
摘要: 使用leaflet加载超图的时候 有时候超图无法加载 有时候报如下错误 因为手上有好几个项目都在使用leaflet 但是同样都使用 @supermap/iclient-leaflet (版本 11.1.0-a) 加载超图,有的项目可行,有的不可行 最后打开项目根目录下 node_modules里 查
阅读全文
posted @ 2023-09-07 17:50 环岛公路
阅读(622)
评论(0)
推荐(0)
2023年7月30日
uniapp 移动端axisLabel 设置formatter无效的解决方法
摘要: pc端是直接在option里配置 移动端在renderjs里的监听变化的时候去设置 updateEcharts(newValue, oldValue, ownerInstance, instance) { // 监听 service 层数据变更 try { newValue.xAxis.axisLa
阅读全文
posted @ 2023-07-30 15:52 环岛公路
阅读(473)
评论(0)
推荐(0)
uniapp中使用i18n
摘要: 1.安装vue-i18n 2.根目录下新建locale文件夹,创建index.js import { createI18n } from 'vue-i18n' import en from './en.json' //locale文件夹下的英文配置 import zh from './zh.json
阅读全文
posted @ 2023-07-30 15:46 环岛公路
阅读(1482)
评论(0)
推荐(0)
下一页
公告