摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Docum 阅读全文
posted @ 2025-04-19 19:37 zxlstart 阅读(29) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Docum 阅读全文
posted @ 2025-04-19 18:49 zxlstart 阅读(10) 评论(0) 推荐(0)
摘要: 按钮控制:参考硅谷甄选的directive,思路添加自定义指令,将引入到全局,app传递到指令内 import pinia from '@/store'; import useUserStore from '@/store/modules/user'; let userStore =useUserS 阅读全文
posted @ 2025-04-19 02:49 zxlstart 阅读(18) 评论(0) 推荐(0)
摘要: <template> <div class="ma" ref="ma"></div> </template> <script setup lang="ts"> import { ref, onMounted } from 'vue' import * as echarts from 'echarts 阅读全文
posted @ 2025-04-19 01:38 zxlstart 阅读(42) 评论(0) 推荐(0)
摘要: 1.vw和vh 缺点:(1)需要计算100px=?vw(2)文字没有vw,vh所以无法自适应 1920px/100vh=1个vh相当于19.2px 100px/19.2px=5.2个vh 2.css3中transfrom和scale放大缩小(推荐) 父容器display:flex;如果父容器有 3 阅读全文
posted @ 2025-04-17 02:20 zxlstart 阅读(23) 评论(0) 推荐(0)
摘要: 1.暗黑模式 引入相应的css文件, import css import 'element-plus/theme-chalk/dark/css-vars.css' //switch开关的chang事件进行暗黑模式的切换 const changeDark = () => { //获取HTML根节点 l 阅读全文
posted @ 2025-04-17 01:46 zxlstart 阅读(380) 评论(0) 推荐(0)
摘要: id:string|number let a=ref<number>(4) courseID?:string (可选参数)let attrArr=ref<Attr[]>([])let arr=reactive<Attr[]>([]) const fun =(a:number)=》{} PS1:补充e 阅读全文
posted @ 2025-04-16 23:40 zxlstart 阅读(15) 评论(0) 推荐(0)
摘要: 1.表单中图片未上传的校验 绑定好各自的校验函数 <el-form ref="formRef"> //获取el-form组件实例 let formRef = ref(); 在确定按钮回调中写 //调用这个方法进行全部表单相校验,如果校验全部通过,在执行后面的提交 await formRef.valu 阅读全文
posted @ 2025-04-16 21:02 zxlstart 阅读(80) 评论(0) 推荐(0)
摘要: 解决参考:此链接 阅读全文
posted @ 2025-04-16 17:24 zxlstart 阅读(32) 评论(1) 推荐(0)
摘要: Plugin: vite:css File: E:/Windesk/vue/vue-ggzx/src/styles/index.scss:1:1 [sass] ENOENT: no such file or directory, open 'E:\Windesk\vue\vue-ggzx\src\s 阅读全文
posted @ 2025-04-14 15:49 zxlstart 阅读(128) 评论(1) 推荐(0)