13 lines
404 B
Plaintext
13 lines
404 B
Plaintext
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()
|
|
} |