1.渐变从左到右 background: linear-gradient(to right,#000,#fff); 2.渐变从上到下 background: linear-gradient(tobottom,#000,#fff); 3.角度渐变(60°) background: linear-gra Read More
posted @ 2022-10-24 14:02 烂笔头~ Views(2599) Comments(0) Diggs(0) Edit
如下图所示: 需要实现渐变的小竖线或者小横线 可以用伪类, 代码如下: div { position: relative; z-index: 2; &::after{ content: ''; position: absolute; z-index: 4; right: 0; top: 10%; b Read More
posted @ 2022-08-17 11:05 烂笔头~ Views(480) Comments(0) Diggs(0) Edit
list为数组 index需要置顶数据的索引 list.splice(0, 0, (list[index]));list.splice(index+1, 1); 首先将顶部index为0的元素与之交换位置:list.splice(0, 0, (list[index])); 然后根据索引删掉交换回来的 Read More
posted @ 2022-07-22 16:48 烂笔头~ Views(539) Comments(0) Diggs(0) Edit
报错上图所示, Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed p Read More
posted @ 2022-06-23 14:54 烂笔头~ Views(1129) Comments(0) Diggs(0) Edit
解决办法,需给el-dialog 加上 append-to-body 代码如下: <el-dialog title="提示" append-to-body style="z-index:3000" :visible.sync="infoDialog" width="30%" :before-clos Read More
posted @ 2022-06-23 11:36 烂笔头~ Views(1781) Comments(0) Diggs(1) Edit
如上图,报错 Error in nextTick: "Error: Initialize failed: invalid dom." dom未挂载完成,图表已经开始初始化了。 解决办法: 根据id获取图表信息换成,$refs拿取,且在初始化图表的时候加 this.$nextTick(() => () Read More
posted @ 2022-06-23 11:18 烂笔头~ Views(2526) Comments(0) Diggs(0) Edit
近日, 某某由于受疫情影响,公司业务出现缩水情况,导致平时活很少,原来忙忙碌碌的工作变得乏味至极。 故,无聊的在这里码字。 由于疫情原因,公司实施了全员降薪,由原来的大办公室换成现在的小小办公室。 去年周末还能出去聚聚餐,吃吃饭,现在都不怎么敢出门,感觉物价涨了不少,但兜里的钱却越来越瘪。 唉,怎么 Read More
posted @ 2022-06-17 15:20 烂笔头~ Views(26) Comments(0) Diggs(0) Edit
需实现功能: 1.多层循环 2.每层循环包含(或不包含)tab 切换 3.tab切换,每层循环是独立的。 如图所示: html部分 <div class="box" v-for="(items,index) in list" :key="index"> <div class="box-top"> < Read More
posted @ 2022-05-23 17:00 烂笔头~ Views(673) Comments(0) Diggs(0) Edit
首先需要进入html2canvas.js 原来是生成海报的,改了改,改成生成验证码的了 仅供参考 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script src="js/public.js"></script> <link rel=" Read More
posted @ 2022-05-19 15:11 烂笔头~ Views(815) Comments(0) Diggs(0) Edit
更新Hbuilder到最新版 1.安装node,(如.css文件生成不了,重新安装node,版本在12及以下)。 2.需要在scss/sass插件配置package.json中配置下 加上 "--output-style", "compressed" ps: --output-style 这句不加, Read More
posted @ 2022-05-10 13:46 烂笔头~ Views(235) Comments(0) Diggs(0) Edit