首页 |  我的博客 |  查看该博主内容分类 | 

随笔分类 -  碎片化知识积累

摘要:解决办法 正常阻止事件冒泡在@click上加stop就可以阻止,而在组件的@confirm上加stop修饰符无效,所以可以在el-poppconfirm组件上加个标签然后再阻止事件冒泡即可。 <!-- 正常阻止事件冒泡 --> <el-button @click.stop="xxx"></el-bu 阅读全文
posted @ 2024-08-09 16:38 Z哎呀 阅读(10) 评论(0) 推荐(0) 编辑
摘要:分析 npm分为全局源和项目源,如果之前你给项目设置过源,后面想再次更换,就有可能出现该问题 解决办法 先给全局源进行更改 npm config set registry http://... 修改项目源,代表文件:package-lock.json 在项目中修改旧源的关键字,将所有旧源的链接改为新 阅读全文
posted @ 2024-05-20 10:11 Z哎呀 阅读(788) 评论(0) 推荐(0) 编辑
摘要:## 解决办法 给编辑器添加一个只读模式时的样式: ~~~css .div[mode='readonly'] /deep/.tox-tinymce{ border: none; } ~~~ 提示: 隐藏状态栏:`statusbar: false` 阅读全文
posted @ 2023-08-23 09:13 Z哎呀 阅读(72) 评论(0) 推荐(0) 编辑
摘要:## 示例 - 代码示例 ~~~python class MyClass(Exception): def __init__(self, info): self.info = info def my_method(self): print('MyClass.my_method print self.i 阅读全文
posted @ 2023-08-11 11:39 Z哎呀 阅读(33) 评论(0) 推荐(0) 编辑
摘要:## 安装 `npm install -g cnpm --registry=https://registry.npm.taobao.org` ## 使用 `cnpm install` 或 `cnpm i` 阅读全文
posted @ 2023-08-10 14:04 Z哎呀 阅读(33) 评论(0) 推荐(0) 编辑
摘要:## 解决办法 起效三要素: 1. el-form属性 -- `model`要有; 2. el-form属性 -- `ref`要设置别名; 3. el-form-item属性 -- `prop`要设置。 注意:el-form-item是resetField,form是resetFields,有s 阅读全文
posted @ 2023-05-31 19:40 Z哎呀 阅读(76) 评论(0) 推荐(0) 编辑
摘要:有很多可以查询的方法,这里列举一个我常用的 办法 查询自身 https://www.cip.cc/ 查询指定ip http://www.cip.cc/需要查询的ip 如:https://www.cip.cc/112.80.248.76 阅读全文
posted @ 2023-04-09 17:20 Z哎呀 阅读(174) 评论(0) 推荐(0) 编辑
摘要:html <el-table ... <!-- row-key的row.id是你的行唯一标识,一般用id,翻页选的关键 --> :row-key="row => row.id" <!-- selection-change选择后的回调函数 --> @selection-change="selectio 阅读全文
posted @ 2023-02-06 13:47 Z哎呀 阅读(187) 评论(1) 推荐(0) 编辑
摘要:方法 transform: scaleX(-1); 本例是水平翻转180度,方向可修改X为Y/Z。 注意如果是content,需要设置display: inline-block/block; 阅读全文
posted @ 2023-02-02 09:33 Z哎呀 阅读(328) 评论(0) 推荐(0) 编辑
摘要:方法 html <el-table> <el-table-column type="index" :index="index => (index + 1) + (this.page - 1) * this.size" label="序号" ></el-table-column> </el-table 阅读全文
posted @ 2023-02-01 13:57 Z哎呀 阅读(129) 评论(0) 推荐(0) 编辑
摘要:## 方法 ~~~nginx location /api/ { set $request_uri_new $request_uri; if ($request_uri ~ "^/api/(.*)$") { set $request_uri_new /$1; } proxy_pass http://1 阅读全文
posted @ 2023-01-29 20:11 Z哎呀 阅读(405) 评论(0) 推荐(0) 编辑
摘要:el-statistic的suspend方法使用示例 ... 阅读全文
posted @ 2023-01-20 13:56 Z哎呀 阅读(71) 评论(0) 推荐(0) 编辑
摘要:Code /*导航条优化*/ ::-webkit-scrollbar{ width: 6px; } ::-webkit-scrollbar-thumb{ background: #666; border-radius: 3px; } ::-webkit-scrollbar-track{ backgr 阅读全文
posted @ 2023-01-04 09:23 Z哎呀 阅读(27) 评论(0) 推荐(0) 编辑

// let homeEle = document.querySelector('body') // homeEle.setAttribute('id', 'particles-js') // /* ---- particles.js config ---- */ // particlesJS("particles-js", { // "particles": { // "number": { // "value": 380, // "density": { // "enable": true, // "value_area": 800 // } // }, // "color": { // "value": "#ffffff" // }, // "shape": { // "type": "circle", // "stroke": { // "width": 0, // "color": "#000000" // }, // "polygon": { // "nb_sides": 5 // }, // "image": { // "src": "img/github.svg", // "width": 100, // "height": 100 // } // }, // "opacity": { // "value": 0.5, // "random": false, // "anim": { // "enable": false, // "speed": 1, // "opacity_min": 0.1, // "sync": false // } // }, // "size": { // "value": 3, // "random": true, // "anim": { // "enable": false, // "speed": 40, // "size_min": 0.1, // "sync": false // } // }, // "line_linked": { // "enable": true, // "distance": 150, // "color": "#ffffff", // "opacity": 0.4, // "width": 1 // }, // "move": { // "enable": true, // "speed": 6, // "direction": "none", // "random": false, // "straight": false, // "out_mode": "out", // "bounce": false, // "attract": { // "enable": false, // "rotateX": 600, // "rotateY": 1200 // } // } // }, // "interactivity": { // "detect_on": "canvas", // "events": { // "onhover": { // "enable": true, // "mode": "grab" // }, // "onclick": { // "enable": true, // "mode": "push" // }, // "resize": true // }, // "modes": { // "grab": { // "distance": 140, // "line_linked": { // "opacity": 1 // } // }, // "bubble": { // "distance": 400, // "size": 40, // "duration": 2, // "opacity": 8, // "speed": 3 // }, // "repulse": { // "distance": 200, // "duration": 0.4 // }, // "push": { // "particles_nb": 4 // }, // "remove": { // "particles_nb": 2 // } // } // }, // "retina_detect": true // }); // var count_particles, stats, update; // stats = new Stats; // stats.setMode(0); // stats.domElement.style.position = 'absolute'; // stats.domElement.style.left = '0px'; // stats.domElement.style.top = '0px'; // document.body.appendChild(stats.domElement); // count_particles = document.querySelector('.js-count-particles'); // update = function() { // stats.begin(); // stats.end(); // if (window.pJSDom[0].pJS.particles && window.pJSDom[0].pJS.particles.array) { // count_particles.innerText = window.pJSDom[0].pJS.particles.array.length; // } // requestAnimationFrame(update); // }; // requestAnimationFrame(update);