<style lang="less">
	.pswp__caption{
		position:fixed;
		left:0;
		right:0;
		bottom:0;
		top:0;
		display: none;
	}
	.pswp__caption__center{
		.layui-layim-photos{
			position:absolute;
			max-width:100%;
			max-height:100%;
			margin:auto;
			left:0;
			top:0;
			bottom:0;
			right:0;
		}
	} 
</style>
<template>
	<div @longtap="longtap" id="gallery" class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
		<div class="pswp__bg"></div>

		<div class="pswp__scroll-wrap">

			<div class="pswp__container">
				<div class="pswp__item"></div>
				<div class="pswp__item"></div>
				<div class="pswp__item"></div>
			</div>

			<div class="pswp__ui pswp__ui--hidden">

				<div class="pswp__top-bar">

					<div class="pswp__counter"></div>

					<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

					<!--<button class="pswp__button pswp__button--share" title="Share"></button>

					<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>-->

					<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

					<div class="pswp__preloader">
						<div class="pswp__preloader__icn">
							<div class="pswp__preloader__cut">
								<div class="pswp__preloader__donut"></div>
							</div>
						</div>
					</div>
				</div>

				<!-- <div class="pswp__loading-indicator"><div class="pswp__loading-indicator__line"></div></div> -->

				<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
					<div class="pswp__share-tooltip">
						<!-- <a href="#" class="pswp__share--facebook"></a>
					<a href="#" class="pswp__share--twitter"></a>
					<a href="#" class="pswp__share--pinterest"></a>
					<a href="#" download class="pswp__share--download"></a> -->
					</div>
				</div>

				<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>
				<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>
				<div class="pswp__caption">
					<div class="pswp__caption__center">
					</div>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
	import { PhotoSwipeUI_Default, PhotoSwipe } from '%/modules/PhoneSwiper';
	export default {
		mounted() {
		},
		methods:{
			longtap(e){
				this.$poper.bottom({
					btn: ['拍照', '从手机相册中选择'],
					confirm(i) {
						switch(i) {
							case "0":
								
								break;
							case "1":
								
								break;
						}
					}
				})
			}
		}
	}
</script>
