import React,{Component} from 'react'; import {Icon,Modal} from 'antd'; import './index.less'; import $ from "jquery"; class ImgList extends Component{ constructor(props) { super(props); this.state={ seeMore: false, previewVisible: false, previewImage: '' } this.handleCancel = this.handleCancel.bind(this); } componentDidMount() { $(".fileItem").bind("mouseover",function (){ $(this).children().first().css({ "background": "rgba(0,0,0,.6)", "display":"flex" }); }); $(".fileItem").bind("mouseout",function (){ $(this).children().first().css("display","none"); }); } handleCancel() { this.setState({ previewVisible:false, previewImage: '', }) } render() { return (