调整一些组件样式

This commit is contained in:
liub
2026-04-07 11:25:23 +08:00
parent 6715507125
commit bb49564646
27 changed files with 165 additions and 73 deletions

View File

@ -2,7 +2,8 @@ var MsgType = {
error: "error",
succ: "succ",
warn: "warn",
info:'info'
info:'info',
prompt:'prompt'
}
var time = null;
// 显示成功
@ -74,6 +75,26 @@ export const MsgInfo = (msg, btnTxt, ev, isClear,btnCallback) => {
return option;
}
//显示捕获窗口,用于自定义弹窗内容
export const MsgPrompt = ( ev,refName, btnCallback,isClear) => {
if (!ev) {
return null;
}
if (!ev.$refs[refName]) {
return null;
}
let option = ev.$refs[refName].showMsg("", "", MsgType.prompt,btnCallback);
if (isClear === undefined || isClear) {
createClear(ev);
}
return option;
}
// 隐藏loading