摘要: <! > <template> <ul> <li v-for="item in calendarArray" :key="item.time" > <div :style="'color:' + (item.isCurrentMonth ? '#000' : '#bbb')" > {{ item.d 阅读全文
posted @ 2021-07-16 13:40 Edith6 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 引入文件 jquery.js jquery.nicescroll.js 地址: https://nicescroll.areaaperta.com/wp-content/plugins/jnicescroll/js/jquery.nicescroll.min.js 使用: $("div").nice 阅读全文
posted @ 2021-07-16 11:27 Edith6 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 安装依赖 npm install -S file-saver npm install -S xlsx npm install -D script-loader 新建Blob.js和Export2Excel.js Export2Excel.js /* eslint-disable */ require 阅读全文
posted @ 2021-07-15 17:26 Edith6 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1、全局安装 npm i -g webpack 2、新建空文件夹 初始化生成package.json npm init -y 3、安装webpack-cli npm install webpack webpack-cli --save-dev 4、创建目录和文件 初始化生成的 package.jso 阅读全文
posted @ 2021-07-15 16:39 Edith6 阅读(53) 评论(0) 推荐(0) 编辑
摘要: //main.js Vue.directive('tableScroll', { bind(el, binding, vnode, oldVnode) { let scrollTop = 0; let dom = el.querySelector(".el-table__body-wrapper") 阅读全文
posted @ 2021-07-15 16:15 Edith6 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 中国标准时间转换为特定格式时间(以2020-006-06为例) initDate(date){ return date.getFullYear() + "-" + (date.getMonth()> 9 ? (date.getMonth() + 1) : "0" + (date.getMonth() 阅读全文
posted @ 2021-07-15 16:12 Edith6 阅读(520) 评论(0) 推荐(0) 编辑
摘要: Button 目录文件 首先创建button文件夹,新建index.vue文件 index.vue <template> <div :class="type == 'Default'?'btn default':type == 'primary'?'btn primary':type == 'dan 阅读全文
posted @ 2021-07-15 16:11 Edith6 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 方案一:(实测无效,仍会报跨域问题,不推荐) <!-- 添加crossorigin=“anonymous”属性 同时 后端配置该图片地址的跨域--> <img crossorigin="anonymous" :src="imgSrc ? imgSrc : ''"/> 结论: | 后端是否配置跨域 | 阅读全文
posted @ 2021-07-15 15:53 Edith6 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: <div class="imgShow"> <img style="border:none" :src="newImage" alt=""> </div> <video v-show="imgVideoTab" muted class="video-class" id="video_id" auto 阅读全文
posted @ 2021-07-15 15:20 Edith6 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 安装插件 npm install html2canvas --save npm install jspdf --save exportPDF.js import html2Canvas from 'html2canvas'; import JsPDF from 'jspdf'; export def 阅读全文
posted @ 2021-07-15 14:59 Edith6 阅读(395) 评论(0) 推荐(0) 编辑