This commit is contained in:
18500206848
2024-02-02 14:40:26 +08:00
parent 21a84c3035
commit 8964c6983f
253 changed files with 0 additions and 25212 deletions

View File

@@ -1,22 +0,0 @@
const windowWidth = uni.getSystemInfoSync().windowWidth
class func {
/**
* rpx转换为px
* @param rpx
* @returns {number}
*/
static rpxTopx(rpx) {
return (windowWidth / 750) * rpx;
}
}
/**
* 通用工具类
*/
export default {
install(Vue, options) {
// 4. 添加实例方法
Vue.prototype.$util = func
}
}