摘要: <import src="../we-cropper/we-cropper.wxml" /> <-- 引入 --> <template is="we-cropper" data="{{...cropperOpt}}" /> <view class="cropperbg"> <template is= 阅读全文
posted @ 2023-02-17 09:04 小万子呀 阅读(409) 评论(0) 推荐(0) 编辑
摘要: // tsconfig.json下增加一句 "suppressImplicitAnyIndexErrors": true, 阅读全文
posted @ 2022-12-26 15:11 小万子呀 阅读(2914) 评论(0) 推荐(0) 编辑
摘要: vite环境变量 1、根目录创建 .env.development 、 .env.production // .env.development 开发环境地址 NODE_ENV = 'development' VITE_BASE_URL = '开发环境地址' // .env.production 生产 阅读全文
posted @ 2022-12-26 14:21 小万子呀 阅读(486) 评论(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 小万子呀 阅读(81) 评论(0) 推荐(0) 编辑
摘要: vue路由 // 默认没有菜单 var isMenu = false // 路由跳转前触发 router.beforeEach((to, from, next) => { // 加载进度条开始 NProgress.start() // 去获取缓存中的用户信息 const info = vueCook 阅读全文
posted @ 2022-12-24 14:36 小万子呀 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1、建立一个公共的less变量文件 列如 src/publicStyle/varLess.less // src/publicStyle/varLess.less @layout_header: 50px; @layout_foot: 48px; @minWidth: 1366px; //屏幕最小宽 阅读全文
posted @ 2022-12-24 11:05 小万子呀 阅读(2083) 评论(0) 推荐(0) 编辑
摘要: 图层的查询条件 CQL_FILTER 直接通过某个值直接查询 列如 CQL_FILTER = `region_code = ${this.row.regionCode}` CQL_FILTER = 'region_code in (xxxx,xxxx,xxxx,xxxx)' 判断某一个地块是否存在某 阅读全文
posted @ 2022-12-24 10:10 小万子呀 阅读(155) 评论(0) 推荐(0) 编辑
摘要: watchStyle () { const el_class_parent = document.querySelector('要监听的元素') const observer = new MutationObserver(callback) var that = this function call 阅读全文
posted @ 2022-12-20 16:44 小万子呀 阅读(20) 评论(0) 推荐(0) 编辑
摘要: ## Elementui form自定义正则 ```javascript businessCertNo: [ { required: true, message: '请输入xxxxxxx', trigger: 'blur' }, { validator: reg_businessCertNo, tr 阅读全文
posted @ 2022-12-20 16:38 小万子呀 阅读(60) 评论(0) 推荐(0) 编辑
摘要: fetch(url).then(res => res.blob()).then(blob => { const a = document.createElement('a') document.body.appendChild(a) a.style.display = 'none' const ur 阅读全文
posted @ 2022-12-10 10:38 小万子呀 阅读(18) 评论(0) 推荐(0) 编辑