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