上一页 1 2 3 4 5 6 ··· 25 下一页
摘要: element-ui 使用中出现莫名黑色边框,如el-tabs、el-popover等 原因: outline样式导致 解决方案:(在对应的容器上加如下样式) .without-outline:focus { outline: none; } 或者覆盖样式: (不推荐,以tabs为例) .el-ta 阅读全文
posted @ 2021-02-04 19:21 【云】风过无痕 阅读(2940) 评论(1) 推荐(1) 编辑
摘要: 项目中应用实例:(图曲率:0.1、0.5) 核心方法: function motion(radius) { // curvity: 曲率,值越大越接近圆的曲率 var i = 0, j = curvity = 0.05; return function() { i = i + j; /** * 阿基 阅读全文
posted @ 2021-01-26 18:46 【云】风过无痕 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 知识点:Document.elementFromPoint() 返回当前文档上处于指定坐标位置最顶层的元素, 坐标是相对于包含该文档的浏览器窗口的左上角为原点来计算的, 通常 x 和 y 坐标都应为正数. js如下: function hasOverLayer(element) { let docu 阅读全文
posted @ 2020-12-28 14:59 【云】风过无痕 阅读(1476) 评论(0) 推荐(0) 编辑
摘要: 1、为 String 扩展原型方法 byteLength(),该方法将根据每个字符编码,判断当前字符是单字节还是双字节,然后统计字符串的字节长度。 String.prototype.byteLength = function() { var length = 0; Array.from(this). 阅读全文
posted @ 2020-10-27 10:14 【云】风过无痕 阅读(11538) 评论(0) 推荐(0) 编辑
摘要: 1、策略集中管理(耦合高): 适合单一功能场景的维护 function Strategy(row) { // 配置策略,映射业务 let rules = { a: fna, b: fnb, c: fnc }, // 配置参数域,如果参数域不一致 fields = { a: 'a', b: 'a,b' 阅读全文
posted @ 2020-10-16 16:15 【云】风过无痕 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 通过指令调用tip的shou、hide事件,如下: var option = { tooltip: { triggerOn: 'none', // 关闭默认的mouseover调用 trigger: 'axis', enterable: true, // 防止tooltip浮层在折线或柱体等上时,触 阅读全文
posted @ 2020-09-14 18:48 【云】风过无痕 阅读(2994) 评论(0) 推荐(0) 编辑
摘要: <style> .signal-week { position: relative; width: 120px; height: 10px; background-image: linear-gradient(90deg, #AADF6B, #A2DF6B, #67D972); border: 1p 阅读全文
posted @ 2020-09-03 10:11 【云】风过无痕 阅读(868) 评论(0) 推荐(0) 编辑
摘要: 根据项目实际情况作了如下兼容性验证: 阅读全文
posted @ 2020-07-21 09:49 【云】风过无痕 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 迭代判断本身及祖先元素是否可见 /** * 判断元素是否可见 * @param el{dom}: dom元素 * @eg: isVisible(document.querySelector(cssSelector)); **/ function isVisible(el) { var loopabl 阅读全文
posted @ 2020-07-13 15:45 【云】风过无痕 阅读(2676) 评论(0) 推荐(1) 编辑
摘要: 1、Sass -- vue解决sass-loader的版本过高导致的编译错误 Module build failed: TypeError: this.getResolve is not a function at Object.loader (C:\Users\Baicells\Desktop\h 阅读全文
posted @ 2020-07-08 12:31 【云】风过无痕 阅读(168) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 25 下一页