Merge pull request #18 from H5-Dooring/xzx-feature

fix: display 兼容老数据
This commit is contained in:
yehuozhili
2021-12-21 10:29:15 +08:00
committed by GitHub

View File

@@ -146,7 +146,12 @@ function Blocks(props: PropsWithChildren<BlockProps>) {
width: props.data.width,
height: props.data.height,
zIndex: props.data.zIndex,
display: props.data.canSee ? props.data.display : 'none',
display:
typeof props.data.canSee === 'boolean'
? props.data.canSee
? props.data.display
: 'none'
: props.data.display,
opacity: props.iframe ? 0 : 1,
transform: `rotate(${props.data.rotate.value}deg)`,
}}