Commit ec43690e authored by 陈万宝's avatar 陈万宝

feat: 更新图片截取

parent 0078f491
...@@ -340,8 +340,11 @@ ...@@ -340,8 +340,11 @@
background: #f8f8f8; background: #f8f8f8;
} }
:global { // :global {
.reactEasyCrop_Container { // .reactEasyCrop_Container {
height: 550px !important; // height: 550px !important;
} // }
} // .reactEasyCrop_CropArea {
// height: 100% !important;
// }
// }
...@@ -238,7 +238,8 @@ const UploadCropImage = forwardRef((props, ref) => { ...@@ -238,7 +238,8 @@ const UploadCropImage = forwardRef((props, ref) => {
{limit !== null && fileList.length >= limit ? ( {limit !== null && fileList.length >= limit ? (
'' ''
) : ( ) : (
<ImgCrop rotationSlider modalWidth={500} modalHeight={500} quality={0.5} showReset> // aspectSlider rotationSlider modalWidth={500} modalHeight={500} quality={0.5}
<ImgCrop showGrid rotationSlider showReset>
<Upload <Upload
{...uploadParams} {...uploadParams}
disabled={Boolean(disabled)} disabled={Boolean(disabled)}
......
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