摘要: 固定模板,直接使用即可 <template> <el-config-provider :locale="locale"> <router-view /> </el-config-provider> </template> <script> import { ElConfigProvider } fr 阅读全文
posted @ 2021-11-11 16:15 青眼魔术 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 1.ios使用阴影盒子box-shadow属性 不能超过2030px,超出不会显示,需要考虑border和border-radius,也会被计算在内 box-shadow: 1px 1px 1px 1500px rgba(0, 0, 0, 0.8); 顺便带一句,ios本地调试不会!不会!不会!实时 阅读全文
posted @ 2021-11-01 16:45 青眼魔术 阅读(26) 评论(0) 推荐(0) 编辑
摘要: user-select: text; 阅读全文
posted @ 2021-10-29 10:36 青眼魔术 阅读(53) 评论(0) 推荐(0) 编辑
摘要: h5调用app方法 先定义一个判断iso和android的方法,两者调用方式不一样 var client = getClient(); // 识别客户端 function getClient() { var u = navigator.userAgent; var isWeiXin = u.toLo 阅读全文
posted @ 2021-10-28 16:34 青眼魔术 阅读(37) 评论(0) 推荐(0) 编辑
摘要: .class1 .class2 .class3 ... 可以设置一个index变量变化,1,2,3, ... 定义类名的时候用数字定义,后续只要通过改变index就可以实现改变类名展现不同的样式 例如 :class=" ` class${index} ` " 另一个场景 :class="['img' 阅读全文
posted @ 2021-10-28 15:33 青眼魔术 阅读(29) 评论(0) 推荐(0) 编辑
摘要: window.scrollTo(0, 0); 滚动条置顶//阻止默认事件的触发 const mo = function (e) { e.preventDefault(); }; //禁止页面滑动 document.body.style.overflow = "hidden"; document.ad 阅读全文
posted @ 2021-10-28 15:06 青眼魔术 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 初始化 Tailwind CSS 通过 npm 安装 Tailwind 安装 Tailwind 以及其它依赖项: npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat @tailwindcss/postcss7-compat post 阅读全文
posted @ 2021-10-27 15:31 青眼魔术 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 1.webpack npm install unplugin-vue-components vue.config.js文件加段代码 const Components = require('unplugin-vue-components/webpack') const { ElementPlusRes 阅读全文
posted @ 2021-10-13 21:10 青眼魔术 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 1.日期组件(el-time-picker) 输出0000-00-00 00:00:00这样的年月日时分秒 两个属性: type="datetimerange" value-format="YYYY-MM-DD HH:mm:ss" HH大写就是24小时,hh就是12小时,这是一个大坑 其余看组件文档 阅读全文
posted @ 2021-10-12 13:46 青眼魔术 阅读(184) 评论(0) 推荐(0) 编辑
摘要: const deepProxy = (obj, cb) => { if (typeof obj 'object' && obj !== null) { for (const prop in obj) { console.warn(obj[prop], cb) if (typeof obj[prop] 阅读全文
posted @ 2021-09-24 16:25 青眼魔术 阅读(276) 评论(0) 推荐(0) 编辑