本文实例为大家分享了Vue实现移动端拖拽交换位置的具体代码,供大家参考,具体内容如下
-
-
点击图片删除, 拖拽可更改顺序,共4张
- 删除该图片?
- 删除
取消
.imageUploaderPage{
background: #f0f0f3;
color: #a8a8a8;
overflow: hidden;
p{
text-align: center;
color: #a7a7a7;
height: 4.07vw;
line-height: 4.07vw;
font-size: var(--mText);
margin-bottom: var(--nText);
}
.imgList{
padding: 2.78vw 0;
font-size: 0;
position: relative;
.imgCoverItem{
position: relative;
width: 23.25vw;
height: 23.25vw;
border-radius: 1.11vw;
display: inline-block;
vertical-align: top;
overflow: hidden;
margin-left: 1.4vw;
margin-bottom: 1.4vw;
}
.upLoadImageWrapper{
position: relative;
background: #e0e0e0;
#upLoadImage{
position: absolute;
outline: none;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
}
}
}
}
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



