自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 el-element table column的显示顺序问题

因为el-table-column的外层一定要是el-table,不能插入其它元素,否则会导致位置计算错误。这样在二次封装的时候会导致多一层处理代码,还是希望能解决一下。

2021-11-23 13:47:09 975

原创 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 1550

原创 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 1558

原创 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 173

原创 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 1980

转载 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 87

转载 将图片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 2760

原创 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 10603 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 697

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除