mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-21 06:19:16 +08:00
修改多图选择器
This commit is contained in:
parent
cf678fcfe3
commit
d5ae75cab0
@ -5,20 +5,18 @@
|
|||||||
<a class="layui-btn layui-btn-sm layui-btn-normal" @click="search">搜 索</a>
|
<a class="layui-btn layui-btn-sm layui-btn-normal" @click="search">搜 索</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<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>
|
</div>
|
||||||
<div class="image-dialog-body">
|
<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>
|
<div class="uploadimage" :style="x.style"></div>
|
||||||
<p class="image-dialog-item-name layui-elip" v-text="x.name"></p>
|
<p class="image-dialog-item-name layui-elip" v-text="x.name"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="image-dialog-foot">
|
<div class="image-dialog-foot">
|
||||||
<div id="ImageDialogPage" class="image-dialog-page"></div>
|
<div id="ImageDialogPage" class="image-dialog-page"></div>
|
||||||
<a id="ImageDialogButton" class="image-dialog-button notselect" @click="confirm">
|
<div id="ImageDialogButton" class="image-dialog-button" v-if="data.length>0" @click="confirm">{{data.length}}</div>
|
||||||
<span v-text="data.length"></span>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -961,35 +961,6 @@ input:not(.layui-hide,[type=hidden]) {
|
|||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
padding-left: 12px;
|
padding-left: 12px;
|
||||||
align-content: flex-start;
|
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 {
|
&-item {
|
||||||
@ -1022,8 +993,9 @@ input:not(.layui-hide,[type=hidden]) {
|
|||||||
|
|
||||||
&-foot {
|
&-foot {
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.image-dialog-page {
|
&-page {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
@ -1034,20 +1006,52 @@ input:not(.layui-hide,[type=hidden]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-dialog-button {
|
&-button {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
right: 10px;
|
||||||
|
bottom: 4px;
|
||||||
width: 42px;
|
width: 42px;
|
||||||
height: 42px;
|
height: 42px;
|
||||||
|
z-index: 2;
|
||||||
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: #0e7fe1;
|
background: #1E9FFF;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 700;
|
||||||
line-height: 42px;
|
line-height: 42px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
right: 10px;
|
#NotSelect();
|
||||||
bottom: 4px;
|
#defaTransition();
|
||||||
|
}
|
||||||
|
|
||||||
|
&-checked {
|
||||||
|
&:after, &:before {
|
||||||
z-index: 2;
|
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
Loading…
x
Reference in New Issue
Block a user