fix(modal): 修复Modal组件maskClosable属性用法错误
- 将Modal组件中的maskClosable属性改为mask={{ closable: false }}
2.0
parent
acc9a1106a
commit
8bbdff2506
|
|
@ -53,7 +53,7 @@ const ImportFile = (props) => {
|
|||
open={visible}
|
||||
onCancel={handleClose}
|
||||
width={600}
|
||||
maskClosable={false}
|
||||
mask={{ closable: false }}
|
||||
footer={[
|
||||
templateUrl && (
|
||||
<Button key="export" onClick={handleExportTemplate}>
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ const MapSelector = (props) => {
|
|||
onCancel={handleClose}
|
||||
width={1000}
|
||||
destroyOnHidden={false}
|
||||
maskClosable={false}
|
||||
mask={{ closable: false }}
|
||||
afterClose={handleAfterClose}
|
||||
footer={[
|
||||
<Button key="back" onClick={handleClose}>
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ function Pdf(props) {
|
|||
<Modal
|
||||
style={{ top: isFullscreen ? 0 : 100, maxWidth: isFullscreen ? "100vw" : "calc(100vw - 32px)", paddingBottom: isFullscreen ? 0 : 24 }}
|
||||
open={visible}
|
||||
maskClosable={false}
|
||||
mask={{ closable: false }}
|
||||
width={isFullscreen ? "100vw" : pdfWidth + 100}
|
||||
title={title}
|
||||
onCancel={() => {
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ function Signature(props) {
|
|||
title="签字"
|
||||
width={800}
|
||||
open={signatureModalOpen}
|
||||
maskClosable={false}
|
||||
mask={{ closable: false }}
|
||||
onCancel={() => setSignatureModalOpen(false)}
|
||||
footer={[
|
||||
<Button key="clear" onClick={() => signatureCanvas.current.clear()}>重签</Button>,
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ const Video = forwardRef(({
|
|||
关闭
|
||||
</Button>,
|
||||
]}
|
||||
maskClosable={false}
|
||||
mask={{ closable: false }}
|
||||
onCancel={() => setVisible(false)}
|
||||
>
|
||||
{playerElement}
|
||||
|
|
|
|||
Loading…
Reference in New Issue