会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yw3692582
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
23
下一页
2023年5月12日
el-table模糊搜索
摘要: computed: { // 根据ip或盒子名称进行搜索 getSearchInfo() { let search = this.search if (search) { this.currpage = 1 this.currentPage = 1 return this.tableData.fil
阅读全文
posted @ 2023-05-12 16:46 yw3692582
阅读(48)
评论(0)
推荐(0)
2023年2月23日
echarts折线图Y轴自适应最大值和最小值
摘要: yAxis:{ ... max: val => { if (!y_max) return if (val.max > y_max) return val.max + 100 else return y_max + 100 }, min: val => { if (!y_min) return if
阅读全文
posted @ 2023-02-23 10:36 yw3692582
阅读(1448)
评论(0)
推荐(0)
2023年1月10日
el-table合并某个字段相同的项
摘要: 1、el-table添加span-method <el-table :data="table_data" id="out-table" :span-method="objectSpanMethod" style="width: 100%"> ... </el-table> 2、合并的方法 // 合并
阅读全文
posted @ 2023-01-10 20:34 yw3692582
阅读(923)
评论(0)
推荐(0)
2023年1月6日
legend分页
摘要: legend: { type: 'scroll', pageIconColor: 'white', //激活的分页按钮颜色 pageIconInactiveColor: 'white', //没激活的分页按钮颜色 pageTextStyle: { color: 'white', }, textSty
阅读全文
posted @ 2023-01-06 18:19 yw3692582
阅读(71)
评论(0)
推荐(0)
2022年12月1日
vue中导出PDF和图片
摘要: 1、安装:npm install html2canvas jspdf --save 2、创建:html2canvas.js 文件,内容如下: import html2Canvas from 'html2canvas' import JsPDF from 'jspdf' /** * @param {S
阅读全文
posted @ 2022-12-01 19:37 yw3692582
阅读(423)
评论(0)
推荐(0)
2022年11月17日
input只能输入纯数字
摘要: 公共: @blur="send_data.num = $event.target.value ? Number($event.target.value) : null" 不能输入小数点:oninput="value=value.replace(/[^\d]/g,'')" 可输入小数点:oninput
阅读全文
posted @ 2022-11-17 18:30 yw3692582
阅读(45)
评论(0)
推荐(0)
2022年11月7日
el-table固定表头
摘要: 前提:getTableMaxHeight.js /** * @param {Number} difference_height 需要减去的值 * @return {Number} table的最大高度值 */ function getTableMaxHeight(difference_height)
阅读全文
posted @ 2022-11-07 13:50 yw3692582
阅读(971)
评论(0)
推荐(0)
2022年11月2日
div可拖拽宽度
摘要: <template> <div class="x-handle" @mousedown="mouseDown"></div> </template> <script> export default { name: 'HandleEvent', data() { return { lastX: '',
阅读全文
posted @ 2022-11-02 11:24 yw3692582
阅读(83)
评论(0)
推荐(0)
2022年10月26日
layer常见配置
摘要: layer.open({ type: 1, anim: 5, shade: 0, title: `标题`, resize: true, // 是否支持拉伸 maxmin: true, // 最大化最小化 scrollbar: false, area: ['850px', '550px'], // 宽
阅读全文
posted @ 2022-10-26 14:20 yw3692582
阅读(93)
评论(0)
推荐(0)
2022年10月25日
导出表格
摘要: /* eslint-disable */ let idTmr; const getExplorer = () => { let explorer = window.navigator.userAgent; //ie if (explorer.indexOf("MSIE") >= 0) { retur
阅读全文
posted @ 2022-10-25 12:36 yw3692582
阅读(72)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
23
下一页
公告