react-alioss
Version:
说明: 基于阿里云实现前端上传图片到阿里云 需要通过后台接口获取阿里云上传凭证
121 lines (120 loc) • 2.41 kB
CSS
:global .class-cropper-modal {
position: fixed;
background-color: rgba(0, 0, 0, 0.3);
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
}
:global .class-cropper-modal .modal-panel {
width: 880px;
height: 500px;
background: white;
padding: 20px;
display: flex;
flex-direction: column;
align-items: stretch;
}
:global .class-cropper-modal .modal-panel .button-row {
height: 50px;
flex-shrink: 0;
display: flex;
justify-content: center;
}
:global .class-cropper-modal .modal-panel .button-row .submit-button {
padding: 0 20px;
height: 100%;
color: #383838;
font-size: 14px;
}
:global .class-cropper-modal .modal-panel .cropper-container-container {
flex: 1;
display: flex;
align-items: stretch;
justify-content: space-between;
height: 100%;
}
:global .preview-parent {
display: flex;
}
:global .cropper-container {
flex: 0 0 600px;
margin-right: 20px;
}
:global .cropper-container .cropper {
width: 100%;
height: 100%;
}
:global .preview-container {
flex: 1;
display: flex;
align-items: flex-start;
flex-direction: column;
margin-left: 20px;
}
:global .cropper-preview {
margin-right: 20px;
width: 100%;
height: 180px;
align-items: flex-start;
justify-content: space-between;
overflow: hidden;
border: 1px solid #383838;
}
:global .cropper-preview image {
height: 120px;
width: auto;
}
:global .docs-data > .input-group {
margin: 10px 0;
display: flex;
align-items: center;
border: 1px solid #ced4da;
border-radius: 0.25rem;
width: 180px;
}
:global .input-group-append {
border-left: 1px solid #ced4da;
}
:global .input-group-prepend {
margin-right: -1px;
border-right: 1px solid #ced4da;
}
:global .input-group-append,
:global .input-group-prepend {
display: flex;
}
:global .input-group-text {
display: flex;
align-items: center;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 32px;
color: #495057;
text-align: center;
white-space: nowrap;
background-color: #e9ecef;
padding: 0 5px;
}
:global .form-control {
display: block;
flex: 1;
border: none;
padding: 0 5px;
outline: 0;
line-height: 32px;
}
:global .resetBtn {
line-height: 32px;
cursor: pointer;
display: inline-block;
border-radius: 5px;
background-color: #1890ff;
color: #ffffff;
padding: 0 5px;
margin-top: 5px;
}