修改多图选择器

This commit is contained in:
Anyon 2022-06-30 14:36:42 +08:00
parent cf678fcfe3
commit d5ae75cab0
4 changed files with 58 additions and 56 deletions

View File

@ -5,20 +5,18 @@
<a class="layui-btn layui-btn-sm layui-btn-normal" @click="search"> </a>
</div>
<div class="pull-right">
<a class="layui-btn layui-btn-sm" @click="uploadImage">上传图片</a>
<a class="layui-btn layui-btn-sm layui-btn-normal" @click="uploadImage">上传图片</a>
</div>
</div>
<div class="image-dialog-body">
<div class="image-dialog-item transition" v-for="x in list" @click="setItem(x)" style="display:none" v-show="show" :class="{'image-dialog-checked':x.checked}">
<div class="image-dialog-item" v-for="x in list" @click="setItem(x)" style="display:none" v-show="show" :class="{'image-dialog-checked':x.checked}">
<div class="uploadimage" :style="x.style"></div>
<p class="image-dialog-item-name layui-elip" v-text="x.name"></p>
</div>
</div>
<div class="image-dialog-foot">
<div id="ImageDialogPage" class="image-dialog-page"></div>
<a id="ImageDialogButton" class="image-dialog-button notselect" @click="confirm">
<span v-text="data.length"></span>
</a>
<div id="ImageDialogButton" class="image-dialog-button" v-if="data.length>0" @click="confirm">{{data.length}}</div>
</div>
</div>

View File

@ -961,35 +961,6 @@ input:not(.layui-hide,[type=hidden]) {
padding-top: 12px;
padding-left: 12px;
align-content: flex-start;
.image-dialog-checked {
&:after, &:before {
z-index: 2;
cursor: pointer;
content: '';
display: block;
position: absolute;
}
&:after {
top: -25px;
right: -25px;
width: 50px;
height: 50px;
transform: rotate(135deg);
-moz-transform: rotate(135deg);
-webkit-transform: rotate(135deg);
background-color: rgba(56, 169, 225, 0.8);
}
&:before {
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 4px solid rgba(56, 169, 225, 0.8);
}
}
}
&-item {
@ -1022,32 +993,65 @@ input:not(.layui-hide,[type=hidden]) {
&-foot {
padding: 0 12px;
}
.image-dialog-page {
height: 50px;
text-align: center;
&-page {
height: 50px;
text-align: center;
.layui-laypage {
a, span {
margin-bottom: 0;
}
.layui-laypage {
a, span {
margin-bottom: 0;
}
}
}
.image-dialog-button {
color: #fff;
width: 42px;
height: 42px;
display: inline-block;
position: absolute;
text-align: center;
background: #0e7fe1;
line-height: 42px;
border-radius: 50%;
right: 10px;
bottom: 4px;
&-button {
color: #fff;
right: 10px;
bottom: 4px;
width: 42px;
height: 42px;
z-index: 2;
cursor: pointer;
display: inline-block;
position: absolute;
text-align: center;
background: #1E9FFF;
font-size: 16px;
font-weight: 700;
line-height: 42px;
border-radius: 50%;
#NotSelect();
#defaTransition();
}
&-checked {
&:after, &:before {
z-index: 2;
font-size: 16px
cursor: pointer;
content: '';
display: block;
position: absolute;
}
&:after {
top: -25px;
right: -25px;
width: 50px;
height: 50px;
transform: rotate(135deg);
-moz-transform: rotate(135deg);
-webkit-transform: rotate(135deg);
background-color: rgba(56, 169, 225, 0.8);
}
&:before {
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 4px solid rgba(56, 169, 225, 0.8);
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long