systemDialog样式微调

This commit is contained in:
fofolee
2025-01-20 20:17:54 +08:00
parent b71f47ec56
commit 79d841e0b4
2 changed files with 51 additions and 103 deletions

View File

@@ -15,7 +15,11 @@ const createDialog = (config, customDialogOptions = {}) => {
const platform = os.platform();
const dialogWidth =
platform === "win32" && config.type !== "textarea" ? 370 : 470;
config.type === "textarea" || config.type === "select"
? 500
: platform === "win32"
? 370
: 420;
const dialogOptions = {
title: config.title || "对话框",