随笔分类 -  vue

摘要:参考: https://blog.csdn.net/qq_33270001/article/details/124632110 https://www.cnblogs.com/skylineStar/p/16149694.html 图像解二维码:qrcode-decoder 摄像头需要在本地和ssl 阅读全文
posted @ 2023-06-20 15:32 jqynr 阅读(821) 评论(0) 推荐(0) 编辑
摘要:1,npm init vue@latestTypeScript YesJSX NoVue Router YesPinia Yes //替代vuex做stateVitest Yes //单元测试ESLint YesPrettier Yes2,cd vue-project npm install npm 阅读全文
posted @ 2022-12-30 09:21 jqynr 阅读(241) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/a15297701931/article/details/115478652 cnpm hls.js <video ref="videoElement" id="videoElement" muted style="width: 100%; heig 阅读全文
posted @ 2022-11-29 14:35 jqynr 阅读(168) 评论(0) 推荐(0) 编辑
摘要:安装依赖 cnpm install --save docxtemplater pizzip jszip-utils file-saver 模板文件(模板文件中使用 {name} ,‘{name}’ 将会被替换成 ‘张三’) test.docx 放在public目录下(vue2) 导入 import 阅读全文
posted @ 2022-11-18 10:10 jqynr 阅读(263) 评论(0) 推荐(0) 编辑
摘要:vue.config.js module.exports = defineConfig({ lintOnSave: false }) eslient 阅读全文
posted @ 2022-11-18 09:36 jqynr 阅读(20) 评论(0) 推荐(0) 编辑
摘要:详情参考:https://blog.csdn.net/weixin_44813666/article/details/120737881 <keep-alive :include="cachedViews" exclude="Index"> <router-view :key="key" /> </ 阅读全文
posted @ 2022-11-15 14:45 jqynr 阅读(86) 评论(0) 推荐(0) 编辑
摘要:this.$tab.closePage().then(() => { this.$tab.openPage("现场记录", "/page/subpace"); }); 阅读全文
posted @ 2022-10-14 15:50 jqynr 阅读(573) 评论(0) 推荐(0) 编辑
摘要:给子组件加一个ref 子组件 <Editor ref="editor" :value="form.content" :minHeight="300" type="base64" :fileSize="1"></Editor> 父组件访问 this.form.content = this.$refs. 阅读全文
posted @ 2022-10-13 11:19 jqynr 阅读(30) 评论(0) 推荐(0) 编辑
摘要:js赋值 item.quoteScoreBackground = `linear-gradient( to right, #71d39d, #71d39d ${percent}%, #fff ${percent}%, #fff ${percent}% )`; 行内使用 <div class="col 阅读全文
posted @ 2022-10-12 15:24 jqynr 阅读(262) 评论(0) 推荐(0) 编辑
摘要:computed: { // 有效报价个数 validNumber: { get() { return this.calculateList.length; }, set() {}, } } 不用在data中定义 阅读全文
posted @ 2022-10-08 09:54 jqynr 阅读(14) 评论(0) 推荐(0) 编辑
摘要:import logoImg from "@/assets/logo/logo.png"; 如果资源太大不需要编译,那么就放到public文件夹下面 阅读全文
posted @ 2022-09-19 16:25 jqynr 阅读(103) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/JonTang/article/details/106364343 需要打印的元素的第一个子元素不要设置margin-top 阅读全文
posted @ 2022-09-08 09:46 jqynr 阅读(430) 评论(0) 推荐(0) 编辑
摘要:在线演示:https://chenxuan1993.gitee.io/component-document/index_prod#/component/seamless-others cnpm install vue-seamless-scroll --save 引入 import vueSeaml 阅读全文
posted @ 2022-08-22 17:11 jqynr 阅读(150) 评论(0) 推荐(0) 编辑
摘要:<router-link class="button" target="_blank" :to="{ path: `/crafts/${scope.row.id}` }" >跳转</router-link > { path: '/crafts/:id', component: (resolve) = 阅读全文
posted @ 2022-07-29 17:03 jqynr 阅读(215) 评论(0) 推荐(0) 编辑
摘要:document.title = `title123`; 阅读全文
posted @ 2022-07-29 16:56 jqynr 阅读(17) 评论(0) 推荐(0) 编辑
摘要:样式影响了 class名加个前缀或者后缀 阅读全文
posted @ 2022-07-19 14:29 jqynr 阅读(197) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/weixin_46144482/article/details/125421277 /* mini */ .vueTreeSelectMini .vue-treeselect__control { height: 26px !important; } 阅读全文
posted @ 2022-07-19 10:15 jqynr 阅读(563) 评论(0) 推荐(0) 编辑
摘要:(this as any).$message.info('123456'); 阅读全文
posted @ 2022-06-22 14:04 jqynr 阅读(1201) 评论(1) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/xintao/p/15562111.html 1.下载 http://www.lodop.net/download.html 2.安装 cnpm install @xkeshi/vue-barcode 3. 找到LodopFuncs.js 添加一 阅读全文
posted @ 2022-06-13 16:13 jqynr 阅读(1162) 评论(0) 推荐(0) 编辑
摘要:参考:https://wenku.baidu.com/view/b320ef11f211f18583d049649b6648d7c1c70891.html cnpm install json-bigint request.js引入 import JSONbig from 'json-bigint'; 阅读全文
posted @ 2022-06-09 13:37 jqynr 阅读(809) 评论(1) 推荐(0) 编辑

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