04 2022 档案

摘要:1、安装: npm install -S file-saver xlsx npm install -D script-loader npm install -D xlsx-style (自定义样式) 2、新建excel文件夹 3、excel文件夹下新建Blob.js和Export2Excel.js文 阅读全文
posted @ 2022-04-27 11:12 忒想进步 阅读(142) 评论(0) 推荐(0)
摘要:运行vue项目时,报如下错误: * ./cptable in ./node_modules/xlsx-style/dist/cpexcel.js 出现上述原因是因为Excel文件导出时所用的xlsx-style库错误所导致的, 1、这是需要改安装依赖的文件内容,根据提示找到该js文件在807行做修改 阅读全文
posted @ 2022-04-27 10:57 忒想进步 阅读(3502) 评论(0) 推荐(0)
摘要://回车键登录 keyDown() { var _self = this; document.onkeydown = function (e) { console.log(e); var key = window.event.keyCode; if (key == 13 || key == 100) 阅读全文
posted @ 2022-04-25 09:31 忒想进步 阅读(754) 评论(0) 推荐(0)
摘要:一、bus的使用 作用:进行组件通信 1.utils文件夹下新建bus.js import Vue from 'vue' const bus = new Vue() export default bus 2.传数据的页面 引入 bus.js import Bus from "../../路径" Bu 阅读全文
posted @ 2022-04-12 16:44 忒想进步 阅读(382) 评论(0) 推荐(0)