1
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import {defaultConfig,configCover} from "../libs/config.uts"
|
||||
export {XLOADINGS_TYPE,XLOADINGS_TYPE_PRIVATE} from "../interface.uts"
|
||||
export const showLoading = (opts : XLOADINGS_TYPE|null) => {
|
||||
let realopts = opts==null?({} as XLOADINGS_TYPE):(opts!)
|
||||
let config = configCover(realopts)
|
||||
wx.showLoading({
|
||||
title:opts?.title??"...",
|
||||
mask:true
|
||||
})
|
||||
}
|
||||
export const hideXloading = ()=>{
|
||||
wx.hideLoading()
|
||||
}
|
||||
Reference in New Issue
Block a user