摘要: (一)大概的步骤: 1.npm安装 2.创建plopfile.js配置文件(配置与步骤3中文件的对应关系) 3.创建相关模板文件 4.package.json中配置运行命令 (二)具体操作如下: 1.安装 npm install --save-dev plop 2.根目录添加plopfile.js文 阅读全文
posted @ 2023-11-09 12:00 小白&小菜 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 1.安装 yarn add vue-clipboard3 2.引入 import useClipboard from 'vue-clipboard3'; 3.html部分 <n-button tertiary type="primary" ref="copyBtn" @click="copyPath 阅读全文
posted @ 2023-01-17 16:39 小白&小菜 阅读(3958) 评论(0) 推荐(0) 编辑
摘要: 功能:可以在手机端看到cosole打印的内容、接口请求、storage信息、页面元素信息 使用方法: 1.npm安装 npm install vconsole 2.引入页面 import VConsole from 'vconsole'; var vConsole = new VConsole(); 阅读全文
posted @ 2022-11-08 16:17 小白&小菜 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1.ios只支持new Date('2022/01/01 23:59:59').getTime(),不支持new Date('2022-01-01 23:59:59').getTime() 阅读全文
posted @ 2022-11-08 15:07 小白&小菜 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 问题见标题。处理方法如下: 通过修改样式达到readonly效果(隐藏下拉按钮及删除按钮) // uni-data-picker 的readonly设置后,有的数据赋值不上,估用样式处理 .uni-data-tree.disabled { .text-color{ color: #999 !impo 阅读全文
posted @ 2022-11-08 14:18 小白&小菜 阅读(1985) 评论(0) 推荐(0) 编辑
摘要: 处理前: 处理后: 处理办法: 1.设置饼图data对象 2.设置tooltip文字超出回行显示;(之前试着用className属性,但没起作用) tooltip: { trigger: 'item', extraCssText: 'max-width:300px; word-break: brea 阅读全文
posted @ 2022-09-22 10:41 小白&小菜 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 1.只能输入正整数: <el-input v-model="form.residualQuantity" @keyup.native="onlyNumber"></el-input> //只能输入正整数 onlyNumber(){ if(this.form.residualQuantity){ th 阅读全文
posted @ 2022-01-13 13:31 小白&小菜 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: 需求:用户选择“通过”时,“理由”非必填;选择“驳回”时,“理由”必填 步骤如下:(前两步定义什么时候必填,后两步设置提示语) 1. 2.computed中定义在什么情况下为必填 3.data()中定义变量 4.data(){return{ ****** }}中定义rules校验规则 阅读全文
posted @ 2021-12-23 18:46 小白&小菜 阅读(1813) 评论(0) 推荐(0) 编辑
摘要: 目前总结的可能的使用场景: 1.更改数组对象等一些深层级的数据值时; 2.给对象添加一个新属性同时赋值后; (这个截图里需要用到这个,可能是因为“currentLine”对象里初始化的时候还没有outPrice这个属性) 阅读全文
posted @ 2021-11-25 14:25 小白&小菜 阅读(275) 评论(0) 推荐(0) 编辑
摘要: this.$refs.upload.uploadFiles // 提交上传文件 submitFileForm() { if(this.$refs.upload.uploadFiles.length <= 0){ this.$message.error("请选择文件"); } this.$refs.u 阅读全文
posted @ 2021-09-24 17:58 小白&小菜 阅读(570) 评论(0) 推荐(0) 编辑
我是一个小菜鸟,飞呀飞呀,快飞高