部分弹窗点击遮罩才能删除

This commit is contained in:
禺狨 2023-03-15 09:48:58 +08:00
parent 26235468dc
commit df5d31c976
10 changed files with 9 additions and 1 deletions

View File

@ -63,6 +63,7 @@ export const UploadImageSub = (props: PropsInterface) => {
props.onUpdate(); props.onUpdate();
setShowModal(false); setShowModal(false);
}} }}
maskClosable={false}
> >
<Dragger {...uploadProps}> <Dragger {...uploadProps}>
<p className="ant-upload-drag-icon"> <p className="ant-upload-drag-icon">

View File

@ -104,6 +104,7 @@ export const DepartmentCreate: React.FC<PropInterface> = ({
width={416} width={416}
onOk={() => form.submit()} onOk={() => form.submit()}
onCancel={() => onCancel()} onCancel={() => onCancel()}
maskClosable={false}
> >
<div className="float-left mt-24"> <div className="float-left mt-24">
<Form <Form

View File

@ -138,6 +138,7 @@ export const DepartmentUpdate: React.FC<PropInterface> = ({
width={416} width={416}
onOk={() => form.submit()} onOk={() => form.submit()}
onCancel={() => onCancel()} onCancel={() => onCancel()}
maskClosable={false}
> >
<div className="float-left mt-24"> <div className="float-left mt-24">
<Form <Form

View File

@ -100,6 +100,7 @@ export const ResourceCategoryCreate: React.FC<PropInterface> = ({
title="新建分类" title="新建分类"
centered centered
forceRender forceRender
maskClosable={false}
open={open} open={open}
width={416} width={416}
onOk={() => form.submit()} onOk={() => form.submit()}

View File

@ -136,6 +136,7 @@ export const ResourceCategoryUpdate: React.FC<PropInterface> = ({
width={416} width={416}
onOk={() => form.submit()} onOk={() => form.submit()}
onCancel={() => onCancel()} onCancel={() => onCancel()}
maskClosable={false}
> >
<div className="float-left mt-24"> <div className="float-left mt-24">
<Form <Form

View File

@ -138,7 +138,6 @@ export const ResourceCategoryPage: React.FC = () => {
content: "确认删除此分类?", content: "确认删除此分类?",
centered: true, centered: true,
okText: "确认", okText: "确认",
okType: "danger",
cancelText: "取消", cancelText: "取消",
onOk() { onOk() {
resourceCategory.destroyResourceCategory(id).then((res: any) => { resourceCategory.destroyResourceCategory(id).then((res: any) => {

View File

@ -83,6 +83,7 @@ export const SystemAdministratorCreate: React.FC<PropInterface> = ({
width={416} width={416}
onOk={() => form.submit()} onOk={() => form.submit()}
onCancel={() => onCancel()} onCancel={() => onCancel()}
maskClosable={false}
> >
<div className="float-left mt-24"> <div className="float-left mt-24">
<Form <Form

View File

@ -101,6 +101,7 @@ export const SystemAdministratorUpdate: React.FC<PropInterface> = ({
width={416} width={416}
onOk={() => form.submit()} onOk={() => form.submit()}
onCancel={() => onCancel()} onCancel={() => onCancel()}
maskClosable={false}
> >
<div className="float-left mt-24"> <div className="float-left mt-24">
<Form <Form

View File

@ -82,6 +82,7 @@ export const SystemAdminrolesCreate: React.FC<PropInterface> = ({
width={416} width={416}
onOk={() => form.submit()} onOk={() => form.submit()}
onCancel={() => onCancel()} onCancel={() => onCancel()}
maskClosable={false}
> >
<div className="float-left mt-24"> <div className="float-left mt-24">
<Form <Form

View File

@ -94,6 +94,7 @@ export const SystemAdminrolesUpdate: React.FC<PropInterface> = ({
width={416} width={416}
onOk={() => form.submit()} onOk={() => form.submit()}
onCancel={() => onCancel()} onCancel={() => onCancel()}
maskClosable={false}
> >
<div className="float-left mt-24"> <div className="float-left mt-24">
<Form <Form