File tree Expand file tree Collapse file tree
src/components/base/upload-imgs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151 :src =" item.display"
5252 :fit =" fit"
5353 style =" width : 100% ; height : 100% ;" ></el-image >
54+ <div class =" info" >
55+ <i
56+ v-if =" item.file"
57+ class =" el-icon-upload wait-upload"
58+ @click.prevent.stop =" delItem(item.id)"
59+ title =" 等待上传" ></i >
60+ </div >
5461 <div class =" control" >
5562 <i
5663 v-if =" !disabled"
@@ -672,7 +679,8 @@ export default {
672679 let l = imgInfoList .length
673680 if (this .isStable ) {
674681 // 固定数量模式, 按次序插入空项
675- for (let i = 0 , k = 1 ; (i < max || k < l); i += 1 ) {
682+ for (let i = 0 , k = 1 ;
683+ (i < max || k < l); i += 1 ) {
676684 if (itemList[i].status === ' input' ) {
677685 this .itemList [i] = createItem (imgInfoList[k])
678686 k += 1
@@ -816,6 +824,40 @@ export default {
816824 }
817825
818826 .thumb-item {
827+ .info {
828+ display : flex ;
829+ align-items : center ;
830+ justify-content : center ;
831+ position : absolute ;
832+ width : 100% ;
833+ height : 100% ;
834+ top : 0 ;
835+ left : 0 ;
836+ transition : all .3s ;
837+ transition-delay : .1s ;
838+
839+ .wait-upload {
840+ background : #ffcb71 ;
841+ color : white ;
842+ position : absolute ;
843+ display : inline-block ;
844+ width : 1.7em ;
845+ height : 1.5em ;
846+ top : 0 ;
847+ right : 0 ;
848+ border-radius : 0 0 0 1.4em ;
849+ transition : all .1s ;
850+
851+ & ::before {
852+ font-size : 1.4em ;
853+ position : absolute ;
854+ right : -1px ;
855+ transform : scale (0.7 );
856+ }
857+ }
858+
859+ }
860+
819861 .control {
820862 display : flex ;
821863 align-items : center ;
You can’t perform that action at this time.
0 commit comments