会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
好好好
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2021年11月29日
uniapp ios 底部安全距离设置
摘要: 设置class safe-padding .safe-padding { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); box-sizing: conten
阅读全文
posted @ 2021-11-29 18:59 金陵彭于晏
阅读(1554)
评论(0)
推荐(0)
2021年11月21日
为什么你总会想不开
摘要: 为什么有的人心态特别差,总是因为一点小事儿,就失控痛苦呢? 一个小伙子,他总是因为一点小事就想不开,闹情绪。他就去找禅师求教。禅师说你去买一包盐,你把盐打开,把其中的一半倒进这杯水里。然后喝一口,小伙子照做了。禅师问你什么感觉,小伙子说,哎呀太咸了。禅师领他到河边让它把剩下一半的盐倒进水里。再让他喝
阅读全文
posted @ 2021-11-21 16:45 金陵彭于晏
阅读(149)
评论(0)
推荐(0)
2021年11月18日
uniapp 微信小程序 授权获取个人信息
摘要: 主要用 uni.login 和 uni.getUserProfile 两个方法。 特别注意 uni.getUserProfile 里会重置code let code = ""; uni.login({ provider: "weixin", success: function (loginRes)
阅读全文
posted @ 2021-11-18 18:48 金陵彭于晏
阅读(758)
评论(0)
推荐(0)
2021年11月9日
vue 动态设置class失效
摘要: 项目中点选选中效果,需要动态切换class显示效果。 起初的想法是给数组添加flag为false 点击那个把其他flag设为true。 但是data数据改了,页面没有刷新。 dom中 <view v-for="(item, index) in ruleList" :key="index" @tap=
阅读全文
posted @ 2021-11-09 20:30 金陵彭于晏
阅读(2713)
评论(0)
推荐(0)
2021年8月26日
element ui input模糊搜索
摘要: 1.template中 <el-autocomplete class="inline-input" v-model="formInline.rotaPlanName" :fetch-suggestions="querySearch" placeholder="请输入设备名称" :trigger-on
阅读全文
posted @ 2021-08-26 15:05 金陵彭于晏
阅读(769)
评论(0)
推荐(0)
element ui table 导出excel表格
摘要: 1.安装相关依赖 xlsx file-saver npm intall --save xlsx npm intall --save file-saver 2.在组件头里边引入插件 import FileSaver from "file-saver"; import XLSX from "xlsx";
阅读全文
posted @ 2021-08-26 14:56 金陵彭于晏
阅读(1097)
评论(0)
推荐(0)
2021年7月28日
vue 点击图片获取x,y坐标值
摘要: 点击图片拿到x,y值 template中 <image x="0" y="0" width="100%" height="100%" xlink:href="../../assets/images/background/bg_nav.png" @click="tapMap($event)" /> j
阅读全文
posted @ 2021-07-28 14:54 金陵彭于晏
阅读(3891)
评论(2)
推荐(0)
2021年7月26日
element ui 日期时间选择器DateTimePicker 禁用时间限制
摘要: 项目中的需求 过磅开始时间和过磅结束时间不能选择,超过当前时间的日期 过磅结束时间不能大于过磅开始时间 过磅开始时间,最大值不能超过结束时间三个月 template el-form-item(label="过磅开始时间", prop="rotaPlanBegin") el-date-picker(
阅读全文
posted @ 2021-07-26 16:06 金陵彭于晏
阅读(3511)
评论(0)
推荐(0)
2021年7月16日
element ui 表单校验问题汇总
摘要: 1,rules 对象prop名称要和v-model绑定的名称一致 2,ref要定义在清空和提交时传过去,不要瞎写 以后做表单验证遇到问题在补充
阅读全文
posted @ 2021-07-16 17:58 金陵彭于晏
阅读(99)
评论(0)
推荐(0)
2021年7月7日
element ui el-tree组件 首项选中效果
摘要: 默认首项选中效果 dom层, 指定key(业务id),ref="tree",highlight-current-row,:highlight-current="true"属性加上 el-tree( :data="typeArr", ref="tree", :highlight-current="tr
阅读全文
posted @ 2021-07-07 17:15 金陵彭于晏
阅读(402)
评论(1)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告