随笔分类 -  Vue

vue
摘要:<el-dialog ref="assetRef" :abc="abc" :title="$t(`asset.${title}`)" :visible.sync="assetDialogVisible" width="40%" @close="handleClose" :close-on-click 阅读全文
posted @ 2020-09-25 10:20 haha-uu 阅读(267) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/weixin_44615754/article/details/106675852?utm_medium=distribute.pc_relevant.none-task-blog-title-2&spm=1001.2101.3001.4242 点击 阅读全文
posted @ 2020-09-21 16:27 haha-uu 阅读(2892) 评论(0) 推荐(0)
摘要:有时候我们需要在页面上添加一个类似时钟的东西来实时显示当前时间,这个时候我们可以利用定时器来完成这个功能 <div id="app"> {{date}} </div> <script> export default { data() { return { date: new Date() }; }, 阅读全文
posted @ 2020-09-13 21:26 haha-uu 阅读(2107) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/catgatp/p/13178934.html 用JS将指定时间转化成用户当地时区的时间: 参考:https://www.cnblogs.com/simendancer/p/5165023.html 容易理解: https://blog.csdn 阅读全文
posted @ 2020-09-13 10:53 haha-uu 阅读(1771) 评论(0) 推荐(0)
摘要:在 vue 2.6.10 版本遇到了 首次进行编辑input 可以正常输入 但是再次进入不能正常输入,是因为我对input绑定的是对象内的变量,首次进入关闭之后我进行了对象的重置直接置为空对象,这样会导致这种错误的发生; //template <el-input v-model="myObj.inp 阅读全文
posted @ 2020-09-05 21:48 haha-uu 阅读(1029) 评论(0) 推荐(0)
摘要:官网的折叠展开图标 要实现的: 思路: 1、首先替换折叠展开图标 2、使用right复制,把图标移动到需要展示的地方 .el-submenu__title { .el-submenu__icon-arrow { right: 220px; margin-top: -5px; } .el-icon-a 阅读全文
posted @ 2020-09-02 23:10 haha-uu 阅读(6827) 评论(0) 推荐(0)
摘要:{{cacheSome('a')}} cacheSome () { let _now = Date.now(); return function (a) { return _now + 'a' } } 阅读全文
posted @ 2020-09-02 22:06 haha-uu 阅读(4368) 评论(0) 推荐(1)
摘要:参考:https://blog.csdn.net/weixin_45122120/article/details/103937931 阅读全文
posted @ 2020-08-24 15:26 haha-uu 阅读(787) 评论(0) 推荐(0)
摘要:时间格式化参考:https://www.cnblogs.com/zhoushuang0426/p/10559172.html js获取当前时间戳;指定时间转换时间戳;时间戳转换时间:参考https://blog.csdn.net/qq_37896578/article/details/9008095 阅读全文
posted @ 2020-08-05 14:11 haha-uu 阅读(4884) 评论(0) 推荐(0)
摘要:使用vue-google-maps GitHub:https://github.com/xkjyeah/vue-google-maps 参考使用:https://blog.csdn.net/xr510002594/article/details/84866251 vue使用Google地图:http 阅读全文
posted @ 2020-08-03 16:49 haha-uu 阅读(4145) 评论(0) 推荐(0)
摘要:List.js import ListTitle from '@/components/ListTitle' import ZgldhDatatables from '@/components/ZgldhDatatables' var listMixin = { components: { List 阅读全文
posted @ 2020-08-01 15:28 haha-uu 阅读(221) 评论(0) 推荐(0)
摘要:qrcode.js生成二维码有一点问题,故不再推荐!!!! 参考:https://www.jianshu.com/p/d3883e020d99 阅读全文
posted @ 2020-07-25 16:34 haha-uu 阅读(522) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/zhanghao-repository/p/9037225.html 阅读全文
posted @ 2020-07-22 15:52 haha-uu 阅读(642) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_34174132/article/details/88678882 vue父路由默认选中第一个子路由,切换子路由让父路由高亮不会消失:https://www.cnblogs.com/mmzuo-798/p/9492659.html https 阅读全文
posted @ 2020-07-22 10:42 haha-uu 阅读(2585) 评论(0) 推荐(0)
摘要:参考:https://www.jianshu.com/p/7e65608ddc0a 详解:https://github.com/taylorchen709/vue-admin.git 手摸手,带你优雅的使用 icon:https://www.jianshu.com/p/f14982b2b737 vu 阅读全文
posted @ 2020-07-16 17:57 haha-uu 阅读(363) 评论(0) 推荐(0)
摘要:参考https://www.cnblogs.com/SRH151219/p/10416680.html 阅读全文
posted @ 2020-07-16 11:00 haha-uu 阅读(231) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/wangRong-smile/articles/11880249.html 回到顶部的DOM部分: <div class="back_top" @mouseover="enterBackTop" // 鼠标进入回到顶部图标的背景颜色变深 @mou 阅读全文
posted @ 2020-07-16 10:42 haha-uu 阅读(1502) 评论(0) 推荐(0)
摘要:转载:https://blog.csdn.net/qq_43416014/article/details/105012478 1、通过配置,加上空格https://blog.csdn.net/peade/article/details/85161600 没有生效!!! "javascript.for 阅读全文
posted @ 2020-07-14 22:23 haha-uu 阅读(3483) 评论(0) 推荐(0)
摘要:DOM部分: <el-breadcrumb class="breadcrumb" separator="/"> <el-breadcrumb-item v-for='(name,index) in matchedArr' :key='index' > {{ $t(`commons.${name}`) 阅读全文
posted @ 2020-07-14 15:48 haha-uu 阅读(12817) 评论(0) 推荐(0)
摘要:关于vue中mockjs的使用: 参考:https://www.cnblogs.com/tzm-001/p/10382534.html Mockjs官网文档:http://mockjs.com/ 具体做法: 1、首先在api文件夹下 以user.js为例 user.js:定义请求方法和url imp 阅读全文
posted @ 2020-07-12 18:50 haha-uu 阅读(1546) 评论(0) 推荐(0)