- 博客(9)
- 收藏
- 关注
原创 el-element table column的显示顺序问题
因为el-table-column的外层一定要是el-table,不能插入其它元素,否则会导致位置计算错误。这样在二次封装的时候会导致多一层处理代码,还是希望能解决一下。
2021-11-23 13:47:09
1091
原创 element @change传递多个参数 $emit接收多个参数
一、element @change传递多个参数方法一// $event就是当前选的值<el-select v-model="value" placeholder="请选择" @change="dataChange($event, 456)> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"
2021-07-15 10:50:06
1722
原创 elementUI 树形表格default-expand-all动态改变状态
<el-table v-if="refreshTable" //重新渲染表格 ref="userLevel" :data="userList" style="width: 100%;margin-bottom: 20px;" row-key="id" border lazy .
2021-07-14 16:44:57
1719
原创 vue项目中使用moment js
在main.js中import moment from 'moment'Vue.prototype.moment = moment;在文件中使用const systemTime = this.moment(new Date()).format('YYYY-MM-DD');
2021-07-06 10:30:45
215
原创 vue 项目中画热力图
<template> <div> <canvas :width="widthPal" :height="heightPal" id="canvas_01"></canvas> <canvas :width="widthImg" :height="heightImg" id="canvas_02" style="background-color: #fff; margin-left: 2.
2021-06-19 17:54:22
2140
转载 Github的 JavaScriptQuestions
#133const myPromise = Promise.resolve(Promise.resolve("Promise!"));function funcOne() { myPromise.then(res => res).then(res => console.log(res)); setTimeout(() => console.log("Timeout!", 0)); console.log("Last line!");}async function fu
2021-06-10 12:50:06
140
转载 将图片url转file类型
将url转file类型图片url转换成file 亲测有效的方法function getImageFileFromUrl(url, imageName,callback) { // imageName一定要带上后缀 var blob = null; var xhr = new XMLHttpRequest(); xhr.open("GET", url); xhr.setRequestHeader('Accept', 'image/jpeg'); xhr.
2021-05-17 16:33:27
3278
原创 Cannot read property ‘getBoundingClientRect‘ of undefined 报错
错误如上图所示Cannot read property 'getBoundingClientRect' of undefined代码:在该方法中使用了getBoundingClientRect()loadMore() { let basic = document.getElementsByClassName("ue-editor")[0].getBoundingClientRect();}代码:在mouted中调用了(监听滚动条事件)mounted() { ...
2021-04-15 10:52:48
11993
1
原创 百度富文本编辑器报错 Cannot read property ‘lang‘ of undefined
切换页面之后 UEditor实例被销毁后,执行了自动保存导致。 因此需要判断UEditor实例是否存在 当UEditor实例不存在 不执行自动保存在百度富文本编辑器配置文件 ueditor.all.js中 搜索contentchange方法 添加下面代码注意 :修改后检查ueditor.vue 文件中 配置文件是ueditor.all 还是ueditor.all.min 如果是后者就需要把引入的配置文件改成前者文章灵感来自https://www.jianshu.com/p/881e8...
2021-04-15 10:23:15
791
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人