- 博客(13)
- 收藏
- 关注
原创 【分享】关于使用uniapp的h5端实现动态设置页面的下拉刷新是否开启(仅限h5且hbuilder的版本>=4.24)
但是会出现禁用之后再开启不会出现下拉动效,这就需要去修改 hbuilderx安装路径\plugins\uniapp-cli-vite\node_modules@dcloudio\uni-h5\dist\uni-h5.es.js中,搜索到usePageRefresh方法之后,在此方法中的onMounted hooks的后面加上。然后在需要禁用和开启的页面调用tooglePullDownRefresh(false|true)来开启或关闭就可实现在h5上开启或关闭下拉刷新了!当然,如果官方能给个方法那就更好了。
2024-12-24 16:41:00
286
原创 【记录】关于在ts文件中引入方法报错的解决办法Cannot find module ‘@/**‘ or its corresponding type declarations
1.在上面添加 //@ts-ignore;3.不使用第二种方法则把@改成相对路径即可。2.在tsconfig中配置。
2024-06-20 16:15:14
806
原创 【记录】记录一下element-ui级联选择器设置了checkStrictly后点击整行都可选中的优化
使用的vue2.7,所以是组合式api方法。
2023-04-23 15:13:33
579
原创 【自留】关于在App.vue使用el-config-provide设置element-plus的周起始日为周一
在网上找了一下是需要在main.js中引入第二句框选的就行了,但是我配置了没有用…所以看了下dayjs的方法并引入…目前是可以的,所以记录一下防止以后忘记了。
2023-04-13 09:59:00
428
原创 在uniapp 中vue3 app中vite使用静态图片的方法
import workbenchIcon from ‘./images/icon-workbench.png’;直接像上面这样引入图片之后导入即可
2022-06-22 16:29:32
876
原创 [记录]vue3在webpack 使用require.context批量导入组件在keep-alive > component中使用热更新报错的问题
vue3在webpack 使用require.context批量导入组件在keep-alive > component中使用热更新报错 parentComponent.ctx.deactivate is not a function.百度了一下都说在component上加上key,可惜然并卵;只需要在批量的时候使用defineAsyncComponent这个函数即可解决问题, import 中使用变量需要加上 ‘’ 才能找到...
2022-05-26 10:07:21
792
1
原创 【记录el-tabs+el-tree+el-scrollbar横向滚动条不出来的问题】
在el-tree定义一个class,之后设置css为 width: max-content;min-width: 100%; 然后在el-scrollbar上设置滚动条的高度,因为默认高度是100%,有可能导致在el-tabs里面超出容器而导致看不见(找了半天才发现);
2022-05-20 16:28:52
1184
原创 mui+html5+开发,在ios中ajax无法读取本地文件的临时解决办法(记录)
var configFile = 'config.json';tools.loadPlusFile = function (src, callback, errorText) { if(mui.os.plus){ plus.io.resolveLocalFileSystemURL(plus.io.convertLocalFileSystemURL(src), function(entry) { // 可通过.
2022-04-12 14:27:24
725
原创 vue3+vite 实现自动导入路由+组件
import {createRouter, createWebHistory} from 'vue-router'let _Vueexport default function install(Vue) { if (install.installed && _Vue === Vue) return install.installed = true _Vue = Vue //杠+后面的字母变为大写字母并去除杠 function toCamelCa
2022-02-16 18:06:21
1411
原创 关于百度逆地理编码的问题
申请一个key,然后如果是手机app浏览器应用.使用https时需要加上https://api.map.baidu.com/reverse_geocoding/v3/?ak=&output=json&coordtype=wgs84ll&location=&extensions_poi=0,否则会提示status:220;当使用http时则不需要添加extensions_poi=0即可正常使用...
2021-11-18 10:39:09
723
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人