摘要: handleScroll(e) { const scrollTop = e.target.scrollTop const windowHeight = e.target.clientHeight const scrollHeight = e.target.scrollHeight if (scrol 阅读全文
posted @ 2022-12-12 09:51 zy-lzh 阅读(32) 评论(0) 推荐(0)
摘要: *::-webkit-scrollbar { width: 12px; height: 12px; } *::-webkit-scrollbar-button { width: 0px; height: 0px; display: none; } *::-webkit-scrollbar-corne 阅读全文
posted @ 2022-10-21 15:31 zy-lzh 阅读(43) 评论(0) 推荐(0)
摘要: 项目需求:用户在点击下载时下载文件。 该项目为前后端分离项目,download不起作用。 我在做这个功能点时使用的方法是直接window.location.href = url 可在测试时却发现word等文件可以下载,而pdf文件却是进行预览而不是下载,这肯定是不行的,于是开始到网上寻找解决方法。开 阅读全文
posted @ 2022-09-05 17:28 zy-lzh 阅读(8814) 评论(0) 推荐(0)
摘要: 单行文本超出省略 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 多行文本超出省略 overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -we 阅读全文
posted @ 2022-07-29 15:27 zy-lzh 阅读(71) 评论(0) 推荐(0)
摘要: export function treeForeach(tree, func) { tree.forEach(data => { func(data) data.children && treeForeach(data.children, func) // 遍历子树 }) } 阅读全文
posted @ 2022-07-28 17:40 zy-lzh 阅读(351) 评论(0) 推荐(0)
摘要: &::after { position: absolute; left: 50%; bottom: -10px; margin-left: -35px; content: ""; width: 70px; height: 2px; background: #5574ef; } 阅读全文
posted @ 2022-06-27 11:34 zy-lzh 阅读(26) 评论(0) 推荐(0)
摘要: "^\\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\\d+$" //整数 "^\\d+(\\.\\d+)?$ 阅读全文
posted @ 2022-06-16 16:42 zy-lzh 阅读(27) 评论(0) 推荐(0)
摘要: 弹出框添加属性 pointer-events:none 阅读全文
posted @ 2022-06-16 09:21 zy-lzh 阅读(81) 评论(0) 推荐(0)
摘要: CheckOption: [{ required: true, trigger: 'blur', // 验证触发形式 validator(rule, vlaue, callback) { // 验证规则 if (vlaue '') { callback(new Error('请输入需求数量')) } 阅读全文
posted @ 2022-06-15 14:25 zy-lzh 阅读(82) 评论(0) 推荐(0)
摘要: 发行的时候在<qiun-data-charts >标签上添加canvas-id="column"以及anvas2d="true"属性,column是一个已英文开头的字符串。调试的时候布局会乱,发布后恢复正常。 阅读全文
posted @ 2022-06-14 11:41 zy-lzh 阅读(1466) 评论(0) 推荐(0)