- 博客(15)
- 收藏
- 关注
原创 一个字符串中有数字、文字、英文字符,拿到这个字符串的长度
场景:再用elementUI的Collapse时,title不能支持添加图片,和样式的修改,所以使用定位之后,left因为无法确定title长度,必须要算出长度
2022-06-22 11:10:22
214
原创 扩展运算符
"babel-plugin-transform-object-rest-spread": "^6.26.0", "transform-object-rest-spread"
2022-04-07 14:32:22
180
原创 el-table点击全选框只选择部分行
<script>export default { data(){ return{ multipleSelection:[], selectAllNum:0 } }, watch: { multipleSelection(newValue){ console.log(newValue); if(newValue.length === thi.
2022-03-01 16:37:38
507
原创 el-table中校验el-input输入框
<el-form ref="sceneForm" :model="sceneForm" :rules="rules"> <el-table :data="sceneForm.sceneData"> <el-table-column prop="piiData" label="数值"> <template slot-scope="scope" align="center"> .
2022-01-07 17:51:02
3074
原创 el-table整理
去除表格边框::v-deep .el-table__row>td{ /* 去除表格线 */ border: none;}::v-deep .el-table th.is-leaf { /* 去除上边框 */ border: none;}::v-deep .el-table::before{ /* 去除下边框 */ height: 0;}表格行间隔::v-deep .el-table__body{ border-collapse: sepa
2022-01-04 13:52:33
235
原创 图片路径有 # 导致图片显示不出
在请求的url地址中直接使用一些特殊字符,在服务器端接收的时候经常出现特殊字符后面数据缺失,需要使用encodeURIComponent,这样的url才不会被#等特殊字符截断。常用的方法:escape 方法返回一个包含了 charstring 内容的字符串值(Unicode 格式)所有空格、标点、重音符号以及其他非 ASCII 字符都用 %xx 编码代替,但是escape 方法不能够用来对统一资源标示码 (URI) 进行编码。对其编码应使用 encodeURI 和encodeURICompone
2021-10-09 16:35:21
883
原创 AntV使用记录
this.chart = new Chart({ container : "sectionViewChart", autoFit : true, height : chartHeight, padding : [10, 20, 50, 50], limitInPlot : true }); this.chart.data(this.chartData);//data格式是JSON格式的数组对象 this....
2021-10-08 13:46:04
1248
1
原创 数组方法整理
https://www.yuque.com/wuweipianpianyiqiyongshi-lktb0/ezrhla/mm6fgb
2021-07-05 15:18:29
115
原创 uniapp移动端实现pdf预览
需要下载pdfjs官网下载地址https://mozilla.github.io/pdf.js/getting_started/#download第一步将文件放在static文件下在这里插入,修改源代码1 pdf.js是不支持跨域文件加载的 直接加载是不会成功的。会报 “file origin doesnot match viewer”错误。 所以我们得改变一下源码。把下面图片上的三行注释掉。2.如果我们的pdf需要在本地获取或者是文件服务器获取,我们就将这里直接...
2021-06-26 12:39:00
1537
5
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人