- 博客(21)
- 收藏
- 关注
转载 host文件编辑以后会被自动还原
关掉360,等等什么杀毒软件。找到host同一级目录的 host.gw.bk 文件(这里是window10系统) ,点开以后在这个文件里改为和host 文件一样的域名;或者没有host.gw.bk文件的 那就找一下别的也命名为host XXX的 点开看看是否是你被还原以后的host文件内容,如果是,那就是它了,同理修改为和host文件一样就好了。...
2022-03-31 16:09:17
6210
2
原创 Vue报错-Computed property “xxxx“ was assigned to but it has no setter
就是你写computed方法的时候只是读取了值并没有设置值官方释意其余文章释意错误代码 computed: { path() { return this.$route.path } },仅仅读取了值 👆正确代码 computed: { path: { get () { return this.$route.path }, set (val) { return val }
2022-03-31 15:54:48
1126
原创 ant 表格 序列自增
cloumns里 加入customRender: (text,record,index) => `${index+1}`,
2022-03-30 16:52:58
302
转载 Echarts cloud 文字随机颜色不生效
由这里转载与echarts的版本有关,新版的echarts不再需要 normal,直接写textStyle就好了textStyle: { normal: { fontFamily: '微软雅黑', color: function () { return 'rgb(' + [ Math.round(Math.random() * 250), Math.round(Math.random() * 250), Math.rou
2022-03-30 16:43:57
616
原创 Vue点击文字样式
这个例子是图标icon和文字同时变色。注:这里的icon是ui裁剪的小图片;<div class="leftTabs"> <span v-for="(item,index) in leftTab" :key="item.link" :class="{'isA':actindex===index}" :style="{color:actindex===index?item.color:''}" @click="tabChange(index)">..
2022-03-30 16:31:46
770
原创 CSS样式-图片变灰
利用CSS3的 filter(滤镜)属性在图片的样式中添加-webkit-filter: grayscale(100%); -moz-filter: grayscale(100%);-ms-filter: grayscale(100%);-o-filter: grayscale(100%);100%则表示完全变灰,0%则恢复图片原有颜色。另附:-webkit- ,针对safari,chrome浏览器的内核CSS写法-moz-,针对firefox浏览器的内核CSS写法-ms-,针对ie内
2022-03-30 16:07:44
1644
原创 Antd Design Vue中 修改table表格鼠标移入的行样式
/deep/ .ant-table-tbody{ > tr:hover:not(.ant-table-expanded-row) > td,.ant-table-row-hover,.ant-table-row-hover>td{ background:none !important; //这里是将鼠标移入时的背景色取消掉了 } }不生效的,注意添加/deep/,!important这些。...
2022-03-30 15:55:10
2943
原创 Echarts的折线图堆叠示例,去掉线上小圆圈;多条折现可重叠。
去掉小圆圈:在series属性里,每条数据里添加symbol: "none",代码就好了多条折现可堆叠:在series属性里,把stack:'Total'代码去掉就ok
2022-03-30 15:43:24
2116
2
转载 vue 表格报错[antdv: Table] Each record in dataSource of table should have a unique
转载:来自于这里这由于columns中定义的默认key值在返回的数据中没有当前的这个字段造成的,一个是使用rowKey默认指定一个对应的键值对,或者使用类似v-for循环中的下标index来代替<a-table :rowKey="(record, index) => record.id" :columns="columns" :data-source="data" :row-selection="rowSelection" :pag
2021-12-02 16:46:22
4817
转载 Vue中的const _this = this;是什么意思
当前VUE中的this 是指向实例,相当于父级,指向指不到子级中。所需需要一个变量 _this 存储this得指向。
2021-10-26 16:48:17
1699
原创 Vue中滚动条自动拉到最下或者最右显示最新内容
这个方法塞到产生新结构,造成滚动条变长的方法上ref绑定相对应元素<div class="roadContent" ref="scrollRef">自动拉到最右this.scrollRefTimer = setTimeout(()=>{ this.$refs.scrollRef[0].scrollLeft = this.$refs.scrollRef[0].scrollWidth; // 清理定时器 clearTimeout(this.scrollRefTimer);
2021-10-26 16:41:58
1304
2
原创 Vue中input图片上传,filereader读取图片信息
这里是以普通input图片上传具体还可以参考MDN<template> <input type="file" accept="image/*" @change="upload"/> <img :src="this.imageUrl" :alt="this.fileName" /></template>data () { return { imageUrl: "",//图片链接 imgWidth: "",//图片宽 imgHeight
2021-08-19 14:24:00
941
原创 css 高斯模糊处理
color: transparent;text-shadow: #111 0 0 5px;user-select: none; (控制页面文字不能被选中)
2021-08-19 10:45:46
250
原创 Vue渲染时保留几位小数点
{{ Number(内容).foFixed(要保留的位数) }}%或者{{ (内容).foFixed(要保留的位数) }}例子:{{ (imageRes[i].similarity * 100).toFixed(2) }}% --> 97.22%
2021-08-19 10:44:55
753
原创 Echarts折线图 多条折线 但切换时每次只想展示一条
Echarts折线图多条折线 但切换时每次只想展示一条在legend属性里添加selectedMode: ‘single’,
2021-04-28 16:14:05
1128
原创 Element-ui table表格包含跳转链接
Element-ui table表格包含跳转链接<el-table-column prop="article_title" label="标题" width="350" align="center" :show-overflow-tooltip="true" > <template slot-scope="scope"> <a :href="scope.row.article_url" target="_blank">
2021-04-28 16:10:00
860
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人