提交 485f3111 authored 作者: 蔡元龙's avatar 蔡元龙

图片上传组件修改

上级 ffabfcdb
......@@ -82,7 +82,7 @@ export default class UploadCom extends React.Component {
</Button>
)}
</Upload>
<ul style={{ paddingLeft: 8 }}>
<ul style={{ paddingLeft: 8, display: 'flex' }}>
{(files || []).map((f) => {
if ((f.path && f.path.indexOf('.png') !== -1) || f.path.indexOf('.jpg') !== -1) {
return (
......
......@@ -239,12 +239,15 @@
}
.preview_img {
width: 100px;
height: 100px;
margin: 5px;
display: flex;
align-items: center;
.preview_div {
position: relative;
width: 100px;
height: 100px;
width: 100%;
height: 100%;
&:hover {
.mask {
display: block;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论