上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 63 下一页
摘要: 不可继承的: display margin padding border background height min-height max-height width min-width max-width overflow position left right top bottom z-index 阅读全文
posted @ 2020-08-05 20:17 吴小明- 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 网页可见区域宽:document.body.clientWidth网页可见区域高:document.body.clientHeight网页可见区域宽:document.body.offsetWidth (包括边线的宽)网页可见区域高:document.body.offsetHeight (包括边线的 阅读全文
posted @ 2020-08-04 17:51 吴小明- 阅读(10324) 评论(0) 推荐(1) 编辑
摘要: 1、问题描述:在弹框里,有个table,我本意是想着在拿到数据渲染table后,利用setCurrentRow()方法让第一行为默认选中高亮状态,这就需要操作dom,然而这个dom在这里根本拿不到,即使是加了this.$nextTick(()=>{})。 2、但是根据以往的经验,我一般关闭dialo 阅读全文
posted @ 2020-07-29 16:12 吴小明- 阅读(1266) 评论(0) 推荐(0) 编辑
摘要: sass: 1、vscode安装两个插件: 2、写好scss后,点击 3、直接引入转好的css文件就可以了 less: 1、下载插件 2、settings.json中添加设置 "less.compile": { "compress": false,//是否压缩 "sourceMap": false, 阅读全文
posted @ 2020-07-24 11:51 吴小明- 阅读(11896) 评论(2) 推荐(2) 编辑
摘要: 1、安装依赖: npm install -S file-saver npm install -S xlsx npm install -D script-loader 2、下载导入Blob.js和 Export2Excel.js 3、组件中使用: <div @click="outTab">导出</di 阅读全文
posted @ 2020-07-20 14:29 吴小明- 阅读(4337) 评论(2) 推荐(2) 编辑
摘要: 1、安装依赖: npm install -S file-saver npm install -S xlsx npm install -D script-loader 2、static文件夹下新建excel/Export2Excel.js (放在下面了。static中存放别人的文件,assets中存放 阅读全文
posted @ 2020-07-20 11:53 吴小明- 阅读(581) 评论(2) 推荐(0) 编辑
摘要: 1、安装依赖: npm install --save xlsx file-saver 2、在组件中引入: import FileSaver from 'file-saver' import XLSX from 'xlsx' 3、添加导出按钮: 4、导出函数: outTab() { let fix = 阅读全文
posted @ 2020-07-20 09:53 吴小明- 阅读(2049) 评论(0) 推荐(0) 编辑
摘要: ::-webkit-scrollbar :滚动条整体部分,其中的属性有width,height,background,border等。 ::-webkit-scrollbar-button :滚动条两端的按钮。可以用display:none让其不显示,也可以添加背景图片,颜色改变显示效果。 ::-w 阅读全文
posted @ 2020-07-17 16:24 吴小明- 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 如果是在标签内加icon &#xe70d; 如果是使用class <i class='iconfont icon-wrong'></i> 如果是放在伪元素中使用: 需要将类名iconfont中的样式拿过来: .el-form-item__error::before { content: '\e70d 阅读全文
posted @ 2020-07-10 17:11 吴小明- 阅读(1272) 评论(0) 推荐(0) 编辑
摘要: 前面写过图片预览和pdf预览。 第一种方法: word、ppt、xls文件实现在线预览的方式比较简单可以直接通过调用微软的在线预览功能实现,前提:资源必须是公共可访问的。 地址:https://view.officeapps.live.com/op/view.aspx?src=你的文件地址 测试一下 阅读全文
posted @ 2020-07-06 17:06 吴小明- 阅读(694) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 63 下一页