2023年4月12日

摘要: vue中使用Decimal.js对数据进行高精度处理 一、介绍 decimal.js是使用的二进制来计算的,所以可以更好地实现格化式数学运算,对数字进行高精度处理;使用decimal类型处理数据可以保证数据计算更为精确,还可以节省储存空间。 二、解决问题 精度问题(金钱失真问题):当 对数据进行浮点 阅读全文
posted @ 2023-04-12 10:55 Lyn小娜 阅读(80) 评论(0) 推荐(0)

2023年4月11日

摘要: 方法一: 思路: 准备一个新数组,将原数组中的元素一一放入新数组, 放入之前判断该元素是否存在新数组中,不存在的话就直接存入新数组。 function uniqueArr(arr){ var newArr = []; for(let i = 0;i<arr.length;i++){ if(newAr 阅读全文
posted @ 2023-04-11 10:21 Lyn小娜 阅读(266) 评论(0) 推荐(0)

2023年4月7日

摘要: https://blog.csdn.net/m0_46309087/article/details/125022676 目录1. 前言2.vue导入Excel表格2.1 使用ElementUI中的upload组件2.2 使用input文件上传3. 总体代码与效果4. 总结1. 前言 最近遇到前端导入 阅读全文
posted @ 2023-04-07 18:18 Lyn小娜 阅读(2292) 评论(0) 推荐(0)
 
摘要: 原文链接 https://github.com/501351981/vue-office 功能特色 一站式:提供docx、pdf、excel多种文档的在线预览方案,有它就够了 简单:只需提供文档的src(网络地址)即可完成文档预览 体验好:选择每个文档的最佳预览方案,保证用户体验和性能都达到最佳状态 阅读全文
posted @ 2023-04-07 10:38 Lyn小娜 阅读(1375) 评论(0) 推荐(0)

2023年4月6日

摘要: <template> <div class="tzgl_wrap"> <a-tree :tree-data="treeData" @select="treeSelect" default-expand-all > <template slot="title" slot-scope="{ title 阅读全文
posted @ 2023-04-06 15:44 Lyn小娜 阅读(990) 评论(0) 推荐(0)

2023年3月30日

摘要: <template> <div> <a-form :label-col='{ span: 7 }' :wrapper-col='{ span: 15 }'> <a-row> <a-col :span='12'> <a-form-item label='省'> <a-select :default-v 阅读全文
posted @ 2023-03-30 08:57 Lyn小娜 阅读(367) 评论(0) 推荐(0)

2023年3月29日

摘要: 解决办法 this.editor.customConfig.menus中注释掉img就可以了 <template> <div :class="prefixCls"> <div ref="editor" class="editor-wrapper" ></div> </div></template>< 阅读全文
posted @ 2023-03-29 10:09 Lyn小娜 阅读(753) 评论(0) 推荐(0)

2023年3月20日

摘要: 阅读全文
posted @ 2023-03-20 11:16 Lyn小娜 阅读(41) 评论(0) 推荐(0)
 
摘要: ant-design-vue table td添加样式 columns 中添加className类名 const columns = [ { title: '执行', dataIndex: 'carryOut', key: 'carryOut', className: 'checkbox-input 阅读全文
posted @ 2023-03-20 11:01 Lyn小娜 阅读(327) 评论(0) 推荐(0)

2023年3月17日

摘要: 1、主进程background.js文件 const winURL = process.env.NODE_ENV 'development' ? `http://localhost:8080` : `file://${__dirname}/index.html` //事件名 openWindow是事 阅读全文
posted @ 2023-03-17 09:31 Lyn小娜 阅读(415) 评论(0) 推荐(0)