加了几个文件

This commit is contained in:
liub
2025-08-27 10:32:13 +08:00
parent 09862e8e07
commit 057858a132
5 changed files with 1851 additions and 1 deletions

44
utils/loading.js Normal file
View File

@ -0,0 +1,44 @@
// utils/loading.js
// 显示loading
export const showLoading = (ev,options) => {
if(!ev){
return;
}
if(!options){
options={a:1};
}
if(!options.text && options.title){
options.text=options.title;
}
if(!options.text){
options.text="请稍候...";
}
ev.$refs.loading.show(options);
}
// 隐藏loading
export const hideLoading = (ev) => {
if(!ev){
return;
}
ev.$refs.loading.hide();
}
// 更新loading配置
export const updateLoading = (ev,options) => {
if(!ev){
return;
}
if(!options){
options={a:1};
}
ev.$refs.loading.update(options)
}