摘要:
<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 阅读全文
摘要:
<import src="../we-cropper/we-cropper.wxml" /> <-- 引入 --> <template is="we-cropper" data="{{...cropperOpt}}" /> <view class="cropperbg"> <template is= 阅读全文
摘要:
// tsconfig.json下增加一句 "suppressImplicitAnyIndexErrors": true, 阅读全文
摘要:
vite环境变量 1、根目录创建 .env.development 、 .env.production // .env.development 开发环境地址 NODE_ENV = 'development' VITE_BASE_URL = '开发环境地址' // .env.production 生产 阅读全文
摘要:
pinia初使用 npm install pinia import { createPinia } from 'pinia' app.use(createPinia()) 可以直接创建一个pinia文件夹 列如 src/pinia/layout.ts import { defineStore } f 阅读全文
摘要:
vue路由 // 默认没有菜单 var isMenu = false // 路由跳转前触发 router.beforeEach((to, from, next) => { // 加载进度条开始 NProgress.start() // 去获取缓存中的用户信息 const info = vueCook 阅读全文
摘要:
1、建立一个公共的less变量文件 列如 src/publicStyle/varLess.less // src/publicStyle/varLess.less @layout_header: 50px; @layout_foot: 48px; @minWidth: 1366px; //屏幕最小宽 阅读全文
摘要:
图层的查询条件 CQL_FILTER 直接通过某个值直接查询 列如 CQL_FILTER = `region_code = ${this.row.regionCode}` CQL_FILTER = 'region_code in (xxxx,xxxx,xxxx,xxxx)' 判断某一个地块是否存在某 阅读全文
摘要:
watchStyle () { const el_class_parent = document.querySelector('要监听的元素') const observer = new MutationObserver(callback) var that = this function call 阅读全文
摘要:
## Elementui form自定义正则 ```javascript businessCertNo: [ { required: true, message: '请输入xxxxxxx', trigger: 'blur' }, { validator: reg_businessCertNo, tr 阅读全文