样式删多了

This commit is contained in:
liaoxuezhi 2019-10-22 20:14:00 +08:00
parent 70e8decb41
commit 0e7be89aa3
2 changed files with 25 additions and 1 deletions

View File

@ -185,3 +185,26 @@
margin-top: 5px;
}
}
// todo
.cropper-wrapper {
position: relative;
img {
max-width: 100%;
max-height: 400px;
}
.btn {
position: absolute;
bottom: 0;
right: 0;
}
.btn:nth-child(2n + 1) {
bottom: 40px;
right: 4px;
}
}

View File

@ -216,7 +216,8 @@ export default class ImageControl extends React.Component<ImageProps, ImageState
if (obj && (org = find(this.state.files, item => (item as FileValue).value === obj.value))) {
obj = {
...org,
...obj
...obj,
id: org.id || obj.id
};
}