随笔分类 -  vue开发问题集合

摘要:<el-form-item label="收货手机"> <el-input onkeyup="value=value.replace(/[^\d]/g,'')" // 绑定只能输入数字 @blur="formInline.phone.value = $event.target.value" // 重 阅读全文
posted @ 2021-01-15 09:58 xujing123 阅读(3143) 评论(0) 推荐(1)
摘要:我们只需调用clearFiles方法即可清空 具体例子如下: methods: { succeess() { this.$refs.upload.clearFiles(); } } 阅读全文
posted @ 2021-01-08 10:11 xujing123 阅读(666) 评论(0) 推荐(0)
摘要:error in ./src/App.vue Module Error (from ./node_modules/eslint-loader/index.js): E:\html\html\html\vue\vuex_demo1\src\App.vue 10:7 error Missing spac 阅读全文
posted @ 2020-09-25 10:14 xujing123 阅读(790) 评论(0) 推荐(0)
摘要:vue 安装 babel-plugin-transform-remove-console ##方法1:然后在 项目中的 babel.config.js文件中加入(此方法不分正式还是生产 log输出均不生效) module.exports = { "presets": [ "@vue/cli-plug 阅读全文
posted @ 2020-09-23 13:41 xujing123 阅读(408) 评论(0) 推荐(0)
摘要:锤爆主管的狗头,想在饿了么ui 自带的筛选下 新增输入框过滤筛选选项 但是改动封装的 不太好做 我就手撸了个比较还原业务场景,选择器仍旧使用了ele 组件 1、 选择器跟按钮的样式 <!-- 搜索 --> // showCJ 筛选框是否显示 <div class="cj" v-if='showCJ' 阅读全文
posted @ 2020-09-15 17:13 xujing123 阅读(5667) 评论(0) 推荐(0)
摘要:1.首航加入 :row-class-name="getRowClass" <el-table :data='ofStudent' style="width-100%" :row-class-name="getRowClass"> 2.表格详情没有内容隐藏箭头 getRowClass(row) { i 阅读全文
posted @ 2020-09-10 10:50 xujing123 阅读(1316) 评论(0) 推荐(0)
摘要:watch监听调用了两个参数,两个参数的出现都调用了一个函数,分开检测就会调用两次 第一种方法 data () { return { city: '', area: '', currentPage: '' } }, watch: { city: function (val) { // 写要执行的代码 阅读全文
posted @ 2020-08-14 16:46 xujing123 阅读(2220) 评论(0) 推荐(0)
摘要:重启路由之后遇到报错 Maximum call stack size exceeded 字面意思是栈溢出 RangeError: Maximum call stack size exceeded at abort (vue-router.esm.js?8c4f:2180) at iterator ( 阅读全文
posted @ 2020-07-30 14:24 xujing123 阅读(4007) 评论(0) 推荐(0)
摘要:报错信息 Can't resolve 'less-loader' 安装 npm install --save-dev less-loader less 阅读全文
posted @ 2020-07-28 10:11 xujing123 阅读(86) 评论(0) 推荐(0)
摘要:npm i element-ui –S 安装失败 错误信息如下 npm ERR! code EINVALIDTAGNAME npm ERR! Invalid tag name "–-save": Tags may not have any characters that encodeURICompo 阅读全文
posted @ 2020-07-27 13:58 xujing123 阅读(1940) 评论(0) 推荐(0)
摘要:报错信息如下 npm ERR! code EINVALIDTAGNAME npm ERR! Invalid tag name "–D": Tags may not have any characters that encodeURIComponent encodes. 解决步骤 先安装全局环境 np 阅读全文
posted @ 2020-07-24 13:43 xujing123 阅读(1168) 评论(0) 推荐(0)
摘要:push远程仓库遇到报错 remote: Invalid username or password. fatal: Authentication failed 1、首先配置用户信息 git config --global user.name [username] git config --globa 阅读全文
posted @ 2020-06-30 16:52 xujing123 阅读(1073) 评论(0) 推荐(0)