<template>
	  <view class="images" :style="{backgroundImage: 'url(' + src + ')'}">
	
	  	</view>
</template>

<script>
	export default {
		name: "zw-img",
		props: {
			// :src="$getImgPath(item.icon)"
			src: {
				type: String,
				default: ''
			},
			mode: {
				type: String,
				default: 'aspectFit'
			}
		},
		data() {
			return {

	// <image class="images" :src="src" :mode="mode" />
			};
		}
	}
</script>

<style lang="scss" scoped>
	.images {
		width: 100%;
		height: 100%;
	}
</style>