- 博客(9)
- 收藏
- 关注
原创 【css】【移动端App】【ios】ios系统button按钮设置背景颜色无效问题
求解答,将圆角/* border-radius: 5px;*/注释调之后就可以成功设置背景颜色,使用圆角背景颜色就无效。移动端App,ios系统,版本ios16.1.1。
2022-11-29 10:46:41
777
5
原创 【node问题】node和sass版本问题
error D:\ ******** \ ********* \node_modules\node-sass: Command failed.Exit code: 1Command: node scripts/build.js>node: v12.16.3,>node-sass: 4.14.1, >sass-loader: 7.0.1,
2021-12-28 11:36:30
496
原创 【Vue】导出后台接口返回的表格.xlsx文件流
接口配置接口重要配置: responseType:“blob”export const getExcel = (id) => { return request({ url: `/api/excel/schoolExcel/${id}`,//接口地址 method: 'get', responseType:"blob"//重要配置 });};调用接口import { getExcel} from '@/api/xxxx.js
2021-06-15 11:49:16
461
原创 【vue 】【Echarts】有一圈线的饼图-循环高亮-label和labelLine的配置
一.关键代码//option的配置 this.option = { tooltip: { trigger: 'item', show: false, }, legend: { show: false}, series: [ //饼图 { type: 'pie', hoverAnimation: false,//隐藏移入动画 selectedMode: 'single',..
2021-06-10 11:44:47
1889
原创 【vue】elementUI form表单验证-自定义验证-调用接口
调用接口方法let data = { code: value }; this.userNameJudgeRepeat(data).then(res => { if (!res.data) { callback(new Error('登录名重复')); } else { callback(); }});完整代码<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-.
2021-06-07 15:18:19
1878
1
原创 【uniapp】swiper内的点击导致 animationfinish事件被触发问题
最近使用swiper组件时,遇到的问题,点击swiper内任何地方animationfinish事件都会触发,导致写在animationfinish事件中的代码不断被执行,影响操作,因为我的操作就是需要在current改变的时候执行,翻看文档uniapp文档链接后发现swiper有change事件(current改变的时候触发),所以我的解决办法是将原来在animationfinish中执行的代码转移到change事件中。解决<view class="tab"> <u-tabs
2021-05-22 15:45:16
1579
3
原创 【uniapp】input v-model在手机上输入英文时由于键盘的联想功能,获取不到全英文的输入值
解决办法:调用鼠标失去焦点blur事件进行赋值<input @blur="getKeyword" type="text" focus placeholder="请输入关键字" ></input>getKeyword(e) { this.keyword = e.detail.value;}//如果使用uView<input @blur="getKeyword" type="text" focus placeholder="请输入关键字" ></.
2021-05-21 14:38:52
974
原创 【vue】elementUI form表单验证-正则验证-pattern
// 正则验证rules: { stockpile: [ { required: true, message: "请输入库存", trigger: "blur" }, { pattern: /^[1-9]\d*$/, message: '请输入大于0的整数', trigger: 'change' } ],}
2021-05-21 14:33:31
2027
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人