截取头像-正方形
This commit is contained in:
parent
bb7732c666
commit
ac93cfbc8a
|
@ -81,6 +81,7 @@ function Index({onCancel,avatarImg,login}){
|
||||||
guides={false}
|
guides={false}
|
||||||
preview="#updateAvatarImg"
|
preview="#updateAvatarImg"
|
||||||
ref={cropper}
|
ref={cropper}
|
||||||
|
aspectRatio={1}
|
||||||
/>
|
/>
|
||||||
{/* <span className={"tips"}>仅支持JPG、GIF、PNG,且文件小于2M</span> */}
|
{/* <span className={"tips"}>仅支持JPG、GIF、PNG,且文件小于2M</span> */}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue