07 2021 档案

摘要:Safari浏览器不支持 white-space: nowrap; 使用时为了兼容 Safari 需要加上宽度限制 阅读全文
posted @ 2021-07-30 11:30 吴小明- 阅读(380) 评论(0) 推荐(0) 编辑
摘要:handleDownload(row) { const { id, pictureurllist } = row if (pictureurllist && pictureurllist[0]) { const { fileservicepath, filesuffix, title } = pic 阅读全文
posted @ 2021-07-27 20:20 吴小明- 阅读(494) 评论(0) 推荐(0) 编辑
摘要:效果: 使用 show-overflow-tooltip 无法设置hover状态时的样式,改用 el-tooltip 1、 <el-table-column label="核心使用场景" min-width='300'> <template scope="scope"> <el-tooltip ef 阅读全文
posted @ 2021-07-27 18:17 吴小明- 阅读(990) 评论(0) 推荐(0) 编辑
摘要:效果: 1、设置 render-header <el-table-column prop="levelname" label="层次" width="180" show-overflow-tooltip :render-header="renderTableHeader" /> 2、renderTa 阅读全文
posted @ 2021-07-27 16:16 吴小明- 阅读(1354) 评论(0) 推荐(0) 编辑
摘要:pdfjs在pc端预览:https://www.cnblogs.com/wuqilang/p/13031290.html 当使用pdfjs在移动端预览时显示不出来,pc端调式是可以的,到了手机上 就不行。 使用pdfjs: 1、下载:npm install pdfh5 2、使用: <template 阅读全文
posted @ 2021-07-20 11:18 吴小明- 阅读(2858) 评论(0) 推荐(0) 编辑
摘要:1、下载插件: npm i react-pdf 2、PdfPreview/index.tsx /* 进入该组件时,通过路由传递path进来,形如: history.push({ pathname: '/pdfPreview', query: { path } }) */ import React, 阅读全文
posted @ 2021-07-14 20:33 吴小明- 阅读(1153) 评论(0) 推荐(0) 编辑
摘要:优化点:选中的年份由父组件传入,不传即默认为空 step: 1、SchoolYear.vue: <template> <el-select v-model="currentYear"> <el-option v-for="item in tempYearList" :key="item.value" 阅读全文
posted @ 2021-07-11 22:36 吴小明- 阅读(503) 评论(0) 推荐(0) 编辑
摘要:需求: 1、封装一个下拉框组件,选择学年 2、学年list默认是组件自带,如果父组件传值了用父组件传来的 3、默认选中当前年份 step: 1、components中定义SchoolYear.vue /** * props: * yearList // select数据 格式: [{text, va 阅读全文
posted @ 2021-07-11 21:01 吴小明- 阅读(889) 评论(0) 推荐(0) 编辑
摘要:1、components下新建MyTable/index.vue <template> <div class="my-table"> <el-table :data='tableData' :header-cell-style='headerCellStyle'> <slot></slot> </e 阅读全文
posted @ 2021-07-09 22:50 吴小明- 阅读(940) 评论(0) 推荐(0) 编辑
摘要:const arr = [ { value: 'zhejiang', label: 'Zhejiang', children: [ { value: 'hangzhou', label: 'Hangzhou', children: [ { value: 'xihu', label: 'West La 阅读全文
posted @ 2021-07-01 16:22 吴小明- 阅读(297) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示