- 博客(11)
- 收藏
- 关注
原创 微信小程序开发--封装请求api--promise方式
微信小程序原生的请求API就是wx.request。1.在utils中新建http.js用来封装。2.在service中引用方法。仅用做记录,详细请参考官方文档。3.在业务中引用方法。
2024-04-15 13:31:45
243
原创 vue 双向绑定input 输入数字和小数可配置
1.precision:小数部分位数(整数可配置precision为0)js公共方法正整数或者保留几位小数可配置。2.integer: 整数部分位数。
2024-01-29 13:55:09
232
原创 did you register the component correctly? For recursive components, make sure to provide the “name“
关于 did you register the component correctly? For recursive components, make sure to provide the “name“ 报错问题
2022-07-04 16:54:05
252
原创 vue3.x中替代vuex辅助函数的写法
官网写的很详细补充一下:参数的写法 increment: (data) => store.commit('increment',data), asyncIncrement: (id) => store.dispatch('asyncIncrement',id)https://next.vuex.vuejs.org/zh/guide/composition-api.html
2021-06-30 14:17:07
504
原创 多个el-select共用同一个筛选列表,如何控制一个选择了另一个就不能选了
问题描述:多个select 共用一个options,且每一个option只能用一次解决办法:动态禁用每一个options代码:<el-table-column prop="fields" label="映射字段"> <template #default="scope"> <el-select filterable v-model="scope.row.select" clearable class="w-full"
2021-04-27 10:22:22
2129
原创 项目中引入百度地图相关控件
//地图平移缩放控件,PC 端默认位于地图左上方,它包含控制地图的平移和缩放的map.addControl(new BMap.NavigationControl()); //比例尺控件,默认位于地图左下方,显示地图的比例关系map.addControl(new BMap.ScaleControl());//缩略地图控件,默认位于地图右下方,是一个可折叠的缩略地图map....
2018-07-23 11:31:23
665
原创 vue.js+element 默认提示中英文
element默认中文版,但是我们在做英文页面时自己翻译很不爽,所以我们用element自带英文包,只要在html页面中引入就可以了,具体引入方法有很多种,在此提供了我用过的一种,仅作为参考使用:...
2018-07-10 15:58:52
4481
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人