refactor: avoid to use some deprecated properities
This commit is contained in:
@@ -125,10 +125,12 @@ const ImageModal: React.FC<ImageModalProps> = ({ visible, imageUrl, onClose }) =
|
|||||||
closable={false}
|
closable={false}
|
||||||
width={isMobile ? '100vw' : '66vw'}
|
width={isMobile ? '100vw' : '66vw'}
|
||||||
style={modalStyle}
|
style={modalStyle}
|
||||||
bodyStyle={modalBodyStyle}
|
styles={{
|
||||||
|
body: modalBodyStyle,
|
||||||
|
mask: { backgroundColor: 'rgba(0, 0, 0, 0.8)' },
|
||||||
|
}}
|
||||||
centered={true} // 移动端和PC端都居中显示
|
centered={true} // 移动端和PC端都居中显示
|
||||||
destroyOnClose
|
destroyOnHidden
|
||||||
maskStyle={{ backgroundColor: 'rgba(0, 0, 0, 0.8)' }}
|
|
||||||
wrapClassName={isMobile ? 'mobile-image-modal' : 'desktop-image-modal'}
|
wrapClassName={isMobile ? 'mobile-image-modal' : 'desktop-image-modal'}
|
||||||
>
|
>
|
||||||
{/* 自定义关闭按钮 */}
|
{/* 自定义关闭按钮 */}
|
||||||
|
|||||||
@@ -1063,7 +1063,7 @@ const ResourceList: React.FC<Props> = ({ inputOpen = false, onCloseInput, contai
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
destroyOnClose
|
destroyOnHidden
|
||||||
okText="确认"
|
okText="确认"
|
||||||
cancelText="取消"
|
cancelText="取消"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -8,7 +8,12 @@ import App from './App.tsx'
|
|||||||
|
|
||||||
createRoot(document.getElementById('root')!).render(
|
createRoot(document.getElementById('root')!).render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
<BrowserRouter>
|
<BrowserRouter
|
||||||
|
future={{
|
||||||
|
v7_relativeSplatPath: true,
|
||||||
|
v7_startTransition: true,
|
||||||
|
}}
|
||||||
|
>
|
||||||
<App />
|
<App />
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
</StrictMode>,
|
</StrictMode>,
|
||||||
|
|||||||
Reference in New Issue
Block a user