摘要: <div id="app" style="display: flex; position: absolute; left: -6000px"></div> 在mounted中: let app_dom = document.getElementById("app"); app_dom.style.l 阅读全文
posted @ 2023-11-28 09:04 yw3692582 阅读(46) 评论(0) 推荐(0) 编辑
摘要: /deep/ .el-table td, /deep/ .el-table th { padding: 8px 0; } // 鼠标悬停背景色 .el-table tbody tr:hover > td { background-color: transparent; } 阅读全文
posted @ 2023-11-03 08:51 yw3692582 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 1、安装 jmuxer npm install jmuxer@2.0.5 2、.vue文件中使用 <template> <div> <video id="dom_id" muted="muted" controls class="video_box"></video> <div v-if="!has 阅读全文
posted @ 2023-10-28 21:03 yw3692582 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: 1、draw_shape.js 1 /** 2 * 绘制不规则多边形 3 */ 4 5 import { Message } from 'element-ui' 6 7 export function draw_test(cav, list) { 8 // 画布初始化 9 let ctx = cav 阅读全文
posted @ 2023-10-24 13:35 yw3692582 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 1、draw.js /** * 画布中绘制矩形 * 参数: cav-画布对象 list-矩形数组 i-选中矩形下标 **/ /* 操作执行方法分发 */ export function draw(cav, list, i) { // 画布初始化 let ctx = cav.getContext('2 阅读全文
posted @ 2023-10-16 14:16 yw3692582 阅读(262) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue' import store from '../store' function copyMethod(value) { let text = '' switch (typeof value) { case 'number': text = value.toSt 阅读全文
posted @ 2023-10-11 16:21 yw3692582 阅读(42) 评论(0) 推荐(0) 编辑
摘要: https://chenxuan0000.github.io/vue-seamless-scroll/zh/guide/#npm 阅读全文
posted @ 2023-09-26 09:54 yw3692582 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 1、先看这个(必看):https://www.cnblogs.com/lyt520/p/16545806.html 2、安装移动端log(如不需要可跳过此步骤) npm install vconsole main.js中引入: import VConsole from 'vconsole' cons 阅读全文
posted @ 2023-09-22 15:04 yw3692582 阅读(585) 评论(0) 推荐(0) 编辑
摘要: location / { root html; index index.html index.htm; try_files $uri $uri/ /index.html; } location /mobile { # 多层目录时不能用root,要用alias alias html/mobile; i 阅读全文
posted @ 2023-09-19 15:36 yw3692582 阅读(111) 评论(0) 推荐(0) 编辑
摘要: // 前端分页 const tableFrontEndPaging = { data() { return { currpage: 1, page_size: 10, page_list: [10, 20, 50], currentPage: null, header_cell_style: { b 阅读全文
posted @ 2023-09-13 13:49 yw3692582 阅读(5) 评论(0) 推荐(0) 编辑