Browse Source

修改module.js组件

release_0.0.1
dengyinhuan 3 years ago
parent
commit
3a2d616526
  1. 4
      web/client/src/sections/quanju/containers/public/module.js

4
web/client/src/sections/quanju/containers/public/module.js

@ -3,7 +3,7 @@ import "./font.css"
import "./left.less"
const Module = (props) => {
const { style, children, title, hualun } = props
const { style, children, title, hualun,customize } = props
return (
<>
<div style={{ width: style?.width || "100%", height: style?.height || "30%", backgroundColor: "rgba(0,33,98,0.8)", marginTop: style?.marginTop || "0" }}>
@ -13,7 +13,7 @@ const Module = (props) => {
<span style={{ position: "absolute", color: "#FFFFFF", fontSize: "24px", fontFamily: "YouSheBiaoTiHei", left: "10%" }}>{title || []}</span>
<img src='/assets/images/quanju/mokuaitou.png' style={{ width: "100%", height: "28px", position: "absolute", top: "12px" }} />
</div>
<div id='scroll-2' style={{ width: "100%", height: "80%", overflow: hualun }}>
<div id='scroll-2' style={{ width: "100%", height: customize?`calc(100% - 40px)`:"80%", overflow: hualun }}>
{children}
</div>
</div>

Loading…
Cancel
Save