上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: <div class="arrow_right"> <div class="boult"></div> </div> .arrow_right { width: 82px; height: 24px; position: absolute; top: 2.6%; left: 5.5%; backgr 阅读全文
posted @ 2022-05-19 10:43 挽你手 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 项目需求生成pdf文件。一开始写的第一页与第二页没截断,pdf上看着还好,但是打印数据会丢失,找了好多方法结合后 第一页与第二页分割了,但是由于是内容生成的图片 固定的高,一行内容之间还是会被截断(如有解决,欢迎留言探讨) 贴代码: 1、下载插件:npm install html2Canvas Js 阅读全文
posted @ 2022-05-13 16:04 挽你手 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 列表页进详情页返回缓存 在app.vue页面 <transition name="fade-transform" mode="out-in"> <keep-alive :include="/-keep$/" :max="1"> // max表示只缓存一个页面 <router-view :key="k 阅读全文
posted @ 2022-04-21 15:33 挽你手 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 效果图: 代码: <el-table :data="tableData" style="width: 100%" v-loading="tableDataLoading" :header-cell-style="{ background: '#FAFAFA' }" :tree-props="{ ch 阅读全文
posted @ 2022-04-01 11:21 挽你手 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 初始化字段 created(){ return{ pages: 0, // 共几页 title: "", pageNumPrise: 1, // 企业-页数 pageSizePrise: 10, // 企业-条数 inputPrise: "", fuzzyShowPrise: false, fuzz 阅读全文
posted @ 2022-02-24 10:36 挽你手 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 写了几种特例 像这种不规则表格,一般按列最多的那个标准走,比如我的最长是六列,那我就按6走 cellpadding="0"意思是table表格的单元格子的内容与单元格子四边边界之间空白距离为0像素。cellspacing="0"意思是table表格中的单元格子之间的空白距离为0像素。colspan 阅读全文
posted @ 2022-01-13 15:36 挽你手 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 组件里的下拉框el-select是这样的: 但是写项目时难免修改样式,所以我整体的修改了一遍(参考): <div class="the_national"> <el-select v-model="value"> <el-option v-for="item in options" :key="it 阅读全文
posted @ 2021-12-28 17:59 挽你手 阅读(1490) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/de3aa0e1de14 new Date()可以将日期转换为对应的时间戳 阅读全文
posted @ 2021-12-07 14:18 挽你手 阅读(909) 评论(0) 推荐(0) 编辑
摘要: 树形扁平化方法 // 树形扁平化方法 const flatten = function (arr) { const res = []; // 用于存储递归结果(扁平数据) // 递归函数 const fn = (source) => { source.forEach((el) => { res.pu 阅读全文
posted @ 2021-12-01 14:50 挽你手 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 隐藏滚动条 <div class="change_record_box"> <div class="scrollbar"></div> </div> <style lang="scss" scoped> .change_record_box { width: 100%; // 给固定的宽高 heig 阅读全文
posted @ 2021-11-09 14:36 挽你手 阅读(36) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页