上一页 1 2 3 4 5 6 7 8 ··· 21 下一页
摘要: 例如: 1、安装 html2canvas: npm i html2canvas 2、引入 html2canvas: import html2canvas from "html2canvas" 3、添加截图按钮: <el-button class="screenshotBtn button" type 阅读全文
posted @ 2021-09-29 15:12 小蘑菇123 阅读(5506) 评论(0) 推荐(0)
摘要: 1、打印有数据,但是获取不到参数: 取值设置: roleName.value = (roleList.value as any)?.roleName; 即可 阅读全文
posted @ 2021-09-28 11:25 小蘑菇123 阅读(958) 评论(0) 推荐(0)
摘要: 1、template: <el-upload class="upload-file-demo" action="上传的url" ref="uploadComp" :auto-upload="false" //禁止自动上传 :show-file-list='true' //显示上传文件名 :file- 阅读全文
posted @ 2021-08-31 14:24 小蘑菇123 阅读(3536) 评论(0) 推荐(0)
摘要: 由于 3.0 移除了2.0 的 filters 后, 所以在3.0中,设置: <script lang="ts"> export default defineComponent({ name: "Home", setup() { // 时间戳转时间 function formatDate(value 阅读全文
posted @ 2021-08-11 15:28 小蘑菇123 阅读(1287) 评论(0) 推荐(0)
摘要: <table class="table table-bordered table-striped table-hover table-hover table-responsive" style="table-layout:fixed;word-break:break-all"> <thead> <t 阅读全文
posted @ 2021-06-25 16:22 小蘑菇123 阅读(605) 评论(0) 推荐(0)
摘要: css: width: 270px; height: 270px; object-fit: cover; flex: 1; 阅读全文
posted @ 2021-06-25 11:05 小蘑菇123 阅读(335) 评论(0) 推荐(0)
摘要: 1、安装svg: npm install svg-sprite-loader --save-dev 2、在 components 中,创建 SvgIcon,引入 svg 样式: index.vue: <template> <svg :class="svgClass" aria-hidden="tru 阅读全文
posted @ 2021-06-15 15:30 小蘑菇123 阅读(602) 评论(0) 推荐(0)
摘要: 报错如下: 解决办法: 根目录新建 .eslintignore 文件: *.vue *.js 阅读全文
posted @ 2021-06-15 11:09 小蘑菇123 阅读(1098) 评论(0) 推荐(0)
摘要: 1、安装 vue-fontawesome: npm i --save @fortawesome/vue-fontawesome@prerelease npm i --save @fortawesome/fontawesome-svg-core npm i --save @fortawesome/fr 阅读全文
posted @ 2021-06-15 10:07 小蘑菇123 阅读(1145) 评论(0) 推荐(0)
摘要: 1、安装i18n: npm install vue-i18n@next 2、main.ts 引入: import { createApp } from 'vue'; import App from './App.vue'; import router from './router'; import 阅读全文
posted @ 2021-05-31 12:20 小蘑菇123 阅读(5596) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 21 下一页