fix: 移除所有弹框遮罩层点击关闭 — 防止输入时误触关闭
涉及文件 (12处): - InstancePage.tsx: 添加数据源弹框 - UsersPage.tsx: 新建/编辑/重置密码/详情弹框 (4处) - RolesPage.tsx: 克隆角色弹框 - InstanceGroupPage.tsx: 新建/编辑/关联实例/关联用户弹框 (4处) - SlowQueryPage.tsx: 查询对比弹框 - RedisDetailPage.tsx: 键详情/新增键弹框 (2处) 改动: 遮罩层div移除onClick,只能通过X按钮或取消按钮关闭
This commit is contained in:
1 parent
47f077c97f
commit
9f56e866f2
6 files changed
+13
-13
No files matched your search
@@ -246,7 +246,7 @@ export default function RedisDetailPage() {
|
||||
|
||||
{/* 键详情弹窗 */}
|
||||
{selectedKey && (
|
||||
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/50" onClick={function () { setSelectedKey(null); }}>
|
||||
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/50">
|
||||
<div className="bg-[var(--dg-bg-secondary)] rounded-xl shadow-2xl w-full max-w-lg max-h-[70vh] overflow-y-auto p-6" onClick={function (e) { e.stopPropagation(); }}>
|
||||
<div className="flex items-center justify-between mb-4">
|
||||
<h3 className="font-semibold">键详情</h3>
|
||||
@@ -268,7 +268,7 @@ export default function RedisDetailPage() {
|
||||
|
||||
{/* 新增键弹窗 */}
|
||||
{showAddKey && (
|
||||
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/50" onClick={function () { setShowAddKey(false); }}>
|
||||
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/50">
|
||||
<div className="bg-[var(--dg-bg-secondary)] rounded-xl shadow-2xl w-full max-w-md p-6" onClick={function (e) { e.stopPropagation(); }}>
|
||||
<div className="flex items-center justify-between mb-4">
|
||||
<h3 className="font-semibold">新增键</h3>
|
||||
|
||||
Reference in new issue
Block a user