08 2021 档案

摘要: 阅读全文
posted @ 2021-08-28 14:35 吃饭七分饱 阅读(35) 评论(0) 推荐(0)
摘要:css设置 user-select: none; 阅读全文
posted @ 2021-08-27 13:51 吃饭七分饱 阅读(53) 评论(0) 推荐(0)
摘要:通过mixin引入 const clickoutside = { // 初始化指令 bind(el, binding, vnode) { function documentHandler(e) { // 这里判断点击的元素是否是本身,是本身,则返回 if (el.contains(e.target) 阅读全文
posted @ 2021-08-25 14:29 吃饭七分饱 阅读(245) 评论(0) 推荐(0)
摘要:<template> <div ref="virtual" class="virtual-empty" :style="{ height: height + 'px' }"> <div class="virtual-container" :style="{ height: clacHeight + 阅读全文
posted @ 2021-08-24 18:25 吃饭七分饱 阅读(328) 评论(3) 推荐(0)
摘要:在vue.config.js中设置 css: { loaderOptions: { less: { globalVars: { hack: `true; @import '~@/assets/css/common.less';`, }, }, }, }, 设置多个全局文件 阅读全文
posted @ 2021-08-23 10:20 吃饭七分饱 阅读(312) 评论(0) 推荐(0)
摘要:// import { addClass, removeClass } from 'element-ui/src/utils/dom'; export function addClass(el, cls) { if (!el) return; var curClass = el.className; 阅读全文
posted @ 2021-08-20 15:05 吃饭七分饱 阅读(1278) 评论(0) 推荐(0)
摘要:'use strict'; exports.__esModule = true; exports.isInContainer = exports.getScrollContainer = exports.isScroll = exports.getStyle = exports.once = exp 阅读全文
posted @ 2021-08-17 17:38 吃饭七分饱 阅读(166) 评论(0) 推荐(0)
摘要:发现淘宝h5页面有这个判断处理,拿来复用function parseUA() { var u = navigator.userAgent; var u2 = navigator.userAgent.toLowerCase(); return { //移动终端浏览器版本信息 trident: u.in 阅读全文
posted @ 2021-08-07 11:37 吃饭七分饱 阅读(211) 评论(0) 推荐(0)