- 博客(6)
- 收藏
- 关注
原创 实现Element UI中下拉框滚动加载
实现Element UI中下拉框滚动加载 Vue.directive('loadmore', { bind (el, binding) { // 获取element-ui定义好的scroll盒子 const SELECTWRAP_DOM = el.querySelector('.el-select-dropdown .el-select-dropdown__wrap') SELECTWRAP_DOM.addEventList
2020-10-29 15:38:00
1552
1
原创 npm install报错解决的办法
npm install报错解决的办法1. 报错:operation not permitted(没有许可证)原因:npm的版本过高,导致一些依赖包下载不全解决办法:npm install后面增加--no-optionalnpm i xxx --no-optional2. 报错:Missing: chromedriver解决办法:安装 chromedriver 即可npm install...
2020-03-12 15:31:56
931
原创 Vue使用successful实现全屏
vue使用successful实现全屏效果1.安装npm install --save screenfull2.在需要使用的页面引入import screenfull from ‘screenfull’3.页面代码如下:<template> <span @click='clickFull'>全屏</span> <...
2019-12-19 10:28:48
159
原创 mint-ui 时间插件使用及获取选择值的方法
<table> <tr> <td class="td1"><span>服务日期:</span></td> <td> <input @click="openPicker" v-model=...
2019-10-18 10:15:54
337
原创 this.$router.push方法跳转页面后,点击返回地址改变页面不刷新
在app.vue页面添加: <div id="app"> <keep-alive> <router-view v-if='$route.meta.keepAlive'/> </keep-alive> <router-view v-if='!$route.meta.keepAlive'/> <...
2019-10-17 16:34:45
2472
原创 VUE项目地址自动添加#
原因:vue路由默认是hash,改成history模式解决方法:在router文件下的index.js添加export default new Router({ mode: 'history', routes: [ { path: '/test', name: 'test', component: () => import('./....
2019-10-17 13:54:27
1083
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人