对话框默认可以外部点击关闭

This commit is contained in:
CrescentLeaf
2025-11-23 12:05:39 +08:00
parent 7d90d4b0f0
commit 204748699e
2 changed files with 6 additions and 2 deletions

View File

@@ -106,6 +106,8 @@ export default function MyProfileDialog({
},
}
],
closeOnEsc: true,
closeOnOverlayClick: true,
})}>退</mdui-list-item>
</mdui-list>
</mdui-dialog>

View File

@@ -22,11 +22,13 @@ export default function TextFieldPreference({ title, icon, description, id, stat
onConfirm: (value) => {
updater(id, value)
},
onCancel: () => {},
onCancel: () => { },
textFieldOptions: {
label: description,
value: state,
},
closeOnEsc: true,
closeOnOverlayClick: true,
})
}}>
{title}