fix(modal): 修复Modal组件maskClosable属性用法错误

- 将Modal组件中的maskClosable属性改为mask={{ closable: false }}
2.0
LiuJiaNan 2026-06-22 11:32:13 +08:00
parent acc9a1106a
commit 8bbdff2506
5 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ const ImportFile = (props) => {
open={visible} open={visible}
onCancel={handleClose} onCancel={handleClose}
width={600} width={600}
maskClosable={false} mask={{ closable: false }}
footer={[ footer={[
templateUrl && ( templateUrl && (
<Button key="export" onClick={handleExportTemplate}> <Button key="export" onClick={handleExportTemplate}>

View File

@ -267,7 +267,7 @@ const MapSelector = (props) => {
onCancel={handleClose} onCancel={handleClose}
width={1000} width={1000}
destroyOnHidden={false} destroyOnHidden={false}
maskClosable={false} mask={{ closable: false }}
afterClose={handleAfterClose} afterClose={handleAfterClose}
footer={[ footer={[
<Button key="back" onClick={handleClose}> <Button key="back" onClick={handleClose}>

View File

@ -90,7 +90,7 @@ function Pdf(props) {
<Modal <Modal
style={{ top: isFullscreen ? 0 : 100, maxWidth: isFullscreen ? "100vw" : "calc(100vw - 32px)", paddingBottom: isFullscreen ? 0 : 24 }} style={{ top: isFullscreen ? 0 : 100, maxWidth: isFullscreen ? "100vw" : "calc(100vw - 32px)", paddingBottom: isFullscreen ? 0 : 24 }}
open={visible} open={visible}
maskClosable={false} mask={{ closable: false }}
width={isFullscreen ? "100vw" : pdfWidth + 100} width={isFullscreen ? "100vw" : pdfWidth + 100}
title={title} title={title}
onCancel={() => { onCancel={() => {

View File

@ -60,7 +60,7 @@ function Signature(props) {
title="签字" title="签字"
width={800} width={800}
open={signatureModalOpen} open={signatureModalOpen}
maskClosable={false} mask={{ closable: false }}
onCancel={() => setSignatureModalOpen(false)} onCancel={() => setSignatureModalOpen(false)}
footer={[ footer={[
<Button key="clear" onClick={() => signatureCanvas.current.clear()}>重签</Button>, <Button key="clear" onClick={() => signatureCanvas.current.clear()}>重签</Button>,

View File

@ -92,7 +92,7 @@ const Video = forwardRef(({
关闭 关闭
</Button>, </Button>,
]} ]}
maskClosable={false} mask={{ closable: false }}
onCancel={() => setVisible(false)} onCancel={() => setVisible(false)}
> >
{playerElement} {playerElement}