💩 脑测样式&逻辑代码

This commit is contained in:
目棃
2024-03-22 17:14:37 +08:00
parent 1405b544be
commit b5a81503a8
4 changed files with 121 additions and 31 deletions

View File

@@ -85,6 +85,9 @@ async function displayBox(
data.text = params.text ?? "";
data.mode = params.mode ?? "confirm";
data.otcancel = params.otcancel ?? true;
if (params.mode === "input" && params.input) {
inputVal.value = params.input;
}
show.value = true;
// 等待确认框关闭返回关闭后的confirmVal
return await new Promise<string | boolean | undefined>((resolve) => {