Commit 42508802 authored by GuanHua's avatar GuanHua

style: 上传图片样式问题

parent 006c3b01
.upload_image_wrap { .upload_image_wrap {
display: flex; display: flex;
align-items: center; align-items: center;
height: 104px;
&.large {
height: 120px;
}
.size_require { .size_require {
color: #C0C4CC; color: #C0C4CC;
......
...@@ -70,7 +70,7 @@ const UploadImage: React.FC<UploadImagePorpsType> = forwardRef((props, ref) => { ...@@ -70,7 +70,7 @@ const UploadImage: React.FC<UploadImagePorpsType> = forwardRef((props, ref) => {
); );
return ( return (
<div className={styles.upload_image_wrap}> <div className={cx(styles.upload_image_wrap, large ? styles.large : '')}>
<div className={cx(styles.upload_wrap, large ? styles.large : '')}> <div className={cx(styles.upload_wrap, large ? styles.large : '')}>
<Upload {...uploadProps}> <Upload {...uploadProps}>
{<div className={cx(styles.upload_btn, !imgUrl ? styles.isAdd : "", large ? styles.large : '')}> {<div className={cx(styles.upload_btn, !imgUrl ? styles.isAdd : "", large ? styles.large : '')}>
...@@ -93,4 +93,6 @@ const UploadImage: React.FC<UploadImagePorpsType> = forwardRef((props, ref) => { ...@@ -93,4 +93,6 @@ const UploadImage: React.FC<UploadImagePorpsType> = forwardRef((props, ref) => {
) )
}) })
UploadImage.displayName = "UploadImage"
export default UploadImage export default UploadImage
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment