Rename FitFullScreen to FitFullscreen

This commit is contained in:
2023-12-20 17:46:37 +08:00
parent 73bfe53edc
commit 8910c3a514
14 changed files with 41 additions and 41 deletions

View File

@@ -0,0 +1,26 @@
import React from 'react'
import '@/assets/css/components/common/fit-fullscreen.scss'
interface FitFullscreenProps
extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
zIndex?: number
backgroundColor?: string
}
const FitFullscreen = forwardRef<HTMLDivElement, FitFullscreenProps>((props, ref) => {
const { zIndex, backgroundColor, className, style, ..._props } = props
return (
<div
className={`fit-fullscreen${className ? ` ${className}` : ''}`}
style={{
zIndex,
backgroundColor,
...style
}}
ref={ref}
{..._props}
/>
)
})
export default FitFullscreen