12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <template>
- <div :class="{'hidden': !hidden.status}" @click="hidden.status=false" class="heibox">
- <div class="imgs" @click.stop="">
- <img :src="urls" alt="" class="img">
- </div>
- </div>
- </template>
- <script>
- import {
- scrollTo
- } from '@/utils/scroll-to'
- export default {
- name: 'BigPicture',
- props: {
- urls: {
- default: '',
- type: String
- },
- hidden: {
- type: Object,
- default: () => {
- return {
- status: ''
- }
- }
- }
- },
- methods: {
- }
- }
- </script>
- <style lang="scss" scoped>
- .heibox {
- width: 100vw;
- height: 100vh;
- background-color: rgba(0,0,0,.8);
- position: fixed;
- z-index: 99999;
- top: 0;
- left: 0;
- .imgs{
- width: 80%;
- position: absolute;
- left: 50%;
- height: auto;
- top: 50%;
- transform: translate(-50%,-50%);
- .img{
- width: 100%;
- object-fit: contain;
- }
- }
- }
- .hidden {
- display: none;
- }
- </style>
|