摘要: 1.在Vue页面上实现PDF导出和打印功能依赖于两个npm插件,分别为vue-to-pdf和vue-easy-printer。 安装命令: npm i vue-to-pdf --save npm i vue-easy-printer --save 2.这两个插件都可以页面局部打印和导出,先在想操作的 阅读全文
posted @ 2020-06-02 14:01 ljygirl 阅读(12087) 评论(1) 推荐(1) 编辑
摘要: 一、基础倒计时 html部分 <div>{{countDownList}}</div> script部分 export default { data() { return { countDownList: '00天00时00分00秒', actEndTime: '2018-11-19 18:50:0 阅读全文
posted @ 2020-04-03 17:31 ljygirl 阅读(970) 评论(0) 推荐(0) 编辑
摘要: 1.注册插件 import Print from '@/plugs/print' // 引入附件的js文件 Vue.use(Print) // 注册 2.设置ref,确定打印区域 <template> <section ref="print"> 打印内容 <div class="no-print"> 阅读全文
posted @ 2020-03-30 15:34 ljygirl 阅读(2161) 评论(0) 推荐(0) 编辑
摘要: Vue-cli3 搭建项目 基本配置 只需要在项目的根目录下新建 vue.config.js 文件(是根目录,不是src目录) const path = require('path') module.exports = { publicPath: './', // 基本路径 outputDir: ' 阅读全文
posted @ 2020-03-27 14:12 ljygirl 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: <el-button @click="handleAntiClick" type="primary" size="small" >弹框 </el-button> <el-dialog title="注射" :visible.sync="AntiDialogVisible" width="30%" c 阅读全文
posted @ 2020-03-24 16:28 ljygirl 阅读(2142) 评论(0) 推荐(0) 编辑