![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
散文
文章平均质量分 62
_pengliang
这个作者很懒,什么都没留下…
展开
-
【2020-10-31】vue项目中使用pdf.js预览pdf文件
起因项目中需要前端来解析.zip\ .image\ .pdf 并预览图像,并且需要在图形上绘制。所以我的整体解决方法是,在解析生成的图形的基础上,覆盖一层 Canvas。zip 使用了 jszip 直接将其中的图片取出来image 可以直接使用 <img />展示没问题pdf : 本来上面两步使用 <img />可以解决了,但是 pdf 不能够使用呀,在网上查找了资料,最后打算将 pdf 转换成 canvas ,使用的是 pdf,js开始先看看最终完成效果...原创 2020-10-31 16:46:06 · 1852 阅读 · 1 评论 -
vue 在样式中使用背景图片
vue 在样式中使用背景图片代码如下:width: 100%;height: 100vh;background: url('~@/assets/404.png') no-repeat center;~ 为 Less 的转义字符补充vue 常用的图片引入直接在 html 中使用 <img src="@/assets/404.png" alt="">动态 src当路径的文件名需要拼接变量的时候,可使用 require() 引入在 template 的:src 或者原创 2020-10-08 16:13:53 · 2650 阅读 · 0 评论 -
vscode中设置vue代码片段
vue 碎片{ "Print to console": { "prefix": "vue", "body": [ "<template>", " <div class=\"${1}\">\n", " </div>", "</template>\n", "<script>", "export default {", " data () {"原创 2020-10-07 15:06:50 · 518 阅读 · 0 评论 -
解决 el-table 自定义表头视图不更新
使用 slot="header",导致自定义表头视图不更新v-slot 指令自 Vue 2.6.0 起被引入,提供更好的支持 slot 和 slot-scope attribute 的 API 替代方案。v-slot 完整的由来参见这份 RFC。在接下来所有的 2.x 版本中 slot 和 slot-scope attribute 仍会被支持,但已经被官方废弃且不会出现在 Vue 3 中。在这之前我一般使用 v-if 解决这个问题,但是 v-if 的副作用????♂️,虽然知道 slot="he原创 2020-09-26 11:55:14 · 3154 阅读 · 3 评论