img-siaze

This commit is contained in:
caishi 2021-02-07 16:50:14 +08:00
parent 658fd1b4f9
commit b4a608bcc3
2 changed files with 5 additions and 7 deletions

View File

@ -31,6 +31,7 @@ li.ant-menu-item{
overflow: hidden;
img{
max-width: 100%;
max-height: 100%;
}
}
.content{

View File

@ -16,8 +16,9 @@ class IndexItem extends Component {
}
render() {
const { projects } = this.props;
const renderList = (
projects && projects.length > 0 ? projects.map((item, key) => {
return (
<div className="project-list minH-670">
{projects && projects.length > 0 ? projects.map((item, key) => {
return (
<div className="p-r-Item" key={key}>
{
@ -70,11 +71,7 @@ class IndexItem extends Component {
</div>
</div>
)
}) : <Nodata _html="暂无数据~"></Nodata>
)
return (
<div className="project-list minH-670">
{renderList}
}) : <Nodata _html="暂无数据~"></Nodata>}
</div>
)
}