<template name="pic">
	<view class="cover cover-height">
		<image @click="Dever.viewPic([item.pic], item.pic)" :src="item.pic" mode="widthFix" :class="['default', 'slide-image-'+item.type]"></image>
		<position :item="item.text" :down="item.pic" :button="item.is_button"></position>
	</view>
</template>

<script>
import position from "@/lib/dever/components/position.vue";
export default {
	name: "pic",
	props: {
		control : {
			type : Object,
			value : null
		},
		item : {
			type    : Object,
			value	: null
		},
	},
	methods:{
		
	},
	components:{
		position
	}
}
</script>

<style>
.cover{
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.cover-height{
  overflow: auto;
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}
.slide-image-1 {
  width: 750rpx;
  height: 1386rpx;
  display: block;
}
.slide-image-2 {
  width: 2000rpx;
  height: 100%;
  display: block;
}
.long-wrapper {
  position: relative;
}
</style>
