摘要: 参考文章https://blog.csdn.net/daotian2016/article/details/123670179 项目场景:项目场景:VUE工程,做了一个代码自动生成可以导出zip的功能。 问题描述导出的zip文件打开提示“不可预料的压缩文件末端”,文件打不开。 export func 阅读全文
posted @ 2023-07-05 15:49 lzhflzjx 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 1、下载包pnpm add lib-flexible-computer postcss-px2rem px2rem-loader -D2、在main.ts里引入import "lib-flexible-computer";3、在vite.config.ts写入import px2rem from " 阅读全文
posted @ 2023-04-25 18:14 lzhflzjx 阅读(226) 评论(0) 推荐(0) 编辑
摘要: element-plus在vue3中样式不显示的问题 https://blog.csdn.net/qq_44947815/article/details/125550936 阅读全文
posted @ 2023-04-07 15:38 lzhflzjx 阅读(27) 评论(0) 推荐(0) 编辑
摘要: --legacy-peer-deps标志是在v7中引入的,目的是绕过peerDependency自动安装;它告诉 NPM 忽略项目中引入的各个modules之间的相同modules但不同版本的问题并继续安装,保证各个引入的依赖之间对自身所使用的不同版本modules共存。 阅读全文
posted @ 2023-04-01 15:57 lzhflzjx 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1. 自定义指令(withDirectives 仅可在setup或render函数中使用)可以使用 withDirectives 将自定义指令应用于 VNode: const { h, resolveDirective, withDirectives } = Vue // ... // <div v 阅读全文
posted @ 2023-02-24 14:04 lzhflzjx 阅读(683) 评论(0) 推荐(0) 编辑
摘要: 元素上属性字段 const el = document.getElementById('documentLabel') console.log(el.clientWidth) // 可见区域宽 console.log(el.clientHeight) // 可见区域高 console.log(el. 阅读全文
posted @ 2023-02-23 13:33 lzhflzjx 阅读(111) 评论(0) 推荐(0) 编辑
摘要: body *{ -webkit-filter: grayscale(100%); /* webkit */ -moz-filter: grayscale(100%); /*firefox*/ -ms-filter: grayscale(100%); /*ie9*/ -o-filter: graysc 阅读全文
posted @ 2022-12-09 16:38 lzhflzjx 阅读(133) 评论(0) 推荐(0) 编辑
摘要: //定义一个异步函数 const foo1 = (i) => { return new Promise((resolve, reject) => { setTimeout(() => { console.log(I) resolve(i) }, 3000) }) } const arr = [1, 阅读全文
posted @ 2022-10-14 14:50 lzhflzjx 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://www.cnblogs.com/xiaoyantongxue/p/15616352.html 函数节流: 英文 throttle 有节流阀的意思。大致意思也是 节约触发的频率 那么,函数节流,真正的含义是:单位时间n秒内,第一次触发函数并执行,以后 n秒内不管触发多少次,都 阅读全文
posted @ 2022-10-12 14:12 lzhflzjx 阅读(23) 评论(0) 推荐(0) 编辑
摘要: { "Print to console": { "prefix": "vue2", "body": [ "<template>", " <div>\n", " </div>", "</template>\n", "<script>", "export default {", " name:'',&quo 阅读全文
posted @ 2022-08-24 13:29 lzhflzjx 阅读(22) 评论(0) 推荐(0) 编辑