摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-12-29 11:44 哎呀哦豁 阅读(77) 评论(0) 推荐(0)
摘要: <template> <div> <el-button type="primary" @click="copy(data)">点击复制</el-button> </div> </template> data() { return { data: '我是赋值的内容', }; copy(data) { 阅读全文
posted @ 2020-12-07 10:21 哎呀哦豁 阅读(150) 评论(0) 推荐(0)
摘要: 1、安装插件 npm install --save image-conversion 2、引入插件 import { compressAccurately } from 'image-conversion' //按需引入 3、在图片上传之前对图片进行压缩 /** 在图片上传前before-uploa 阅读全文
posted @ 2020-12-07 10:20 哎呀哦豁 阅读(1645) 评论(0) 推荐(0)
摘要: 安装 npm install html2canvas --save npm install qrcodejs2 --save //二维码 引入 import html2canvas from 'html2canvas' import QRCode from 'qrcodejs2'; 生成二维码 <d 阅读全文
posted @ 2020-12-07 10:18 哎呀哦豁 阅读(190) 评论(0) 推荐(0)
摘要: template部分代码: <el-table ref="multipleTable" :data="tableData" style="width: 100%" :row-key="(row)=>{ return row.id}" :reserve-selection="true" @select 阅读全文
posted @ 2020-11-27 16:13 哎呀哦豁 阅读(380) 评论(0) 推荐(0)
摘要: 首先安装 npm install js-pinyin --save 引入 import pinyin from 'js-pinyin' 使用案例 let name = '小明' let char = '' pinyin.setOptions({checkPolyphone:false,charCas 阅读全文
posted @ 2020-11-27 14:52 哎呀哦豁 阅读(1282) 评论(0) 推荐(0)