Commit 532d94ab authored by salitedfish's avatar salitedfish

ui优化

parent a1f0ab7f
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
:src="showUploadFile" :src="showUploadFile"
alt="" alt=""
class="mx-auto" class="mx-auto"
@click="showFullImg" @click.stop="showFullImg"
/> />
</div> </div>
...@@ -75,6 +75,15 @@ ...@@ -75,6 +75,15 @@
></app-btn> ></app-btn>
</div> </div>
<div class="fullImgBox" v-if="showFull" @click="showFull = !showFull">
<!-- <div class="fullImgCover"></div> -->
<img
:src="showUploadFile"
alt=""
class="mx-auto"
/>
</div>
</Layout-Child> </Layout-Child>
</template> </template>
...@@ -105,6 +114,7 @@ export default Vue.extend({ ...@@ -105,6 +114,7 @@ export default Vue.extend({
coverstatus: uploadStatus.NULL, coverstatus: uploadStatus.NULL,
// accept: // accept:
show: false, show: false,
showFull: false,
actions: [ actions: [
{ name: '本地相册'}, { name: '本地相册'},
{ name: '拍照'}, { name: '拍照'},
...@@ -231,7 +241,7 @@ export default Vue.extend({ ...@@ -231,7 +241,7 @@ export default Vue.extend({
} }
}, },
showFullImg(){ showFullImg(){
console.log('图片预览') this.showFull = !this.showFull
}, },
clearUpload(){ clearUpload(){
if(this.uploadType == '封面图片'){ if(this.uploadType == '封面图片'){
...@@ -290,4 +300,27 @@ export default Vue.extend({ ...@@ -290,4 +300,27 @@ export default Vue.extend({
.hiddenBorder { .hiddenBorder {
border: none; border: none;
} }
.fullImgBox {
position: fixed;
top:0;
left: 0;
height: calc(100vh);
width: calc(100vw);
background: black;
display: flex;
align-items: center;
z-index: 100;
// .fullImgCover {
// display: fixed;
// top:0;
// right: 0;
// left: 0;
// right: 0;
// }
img {
max-height: 100%;
max-width: 100%;
display: block;
}
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment