<template>
	<view>
		<view class="itemStyle active" v-for="(item, index) in itemList" :key="index" @tap="openWin(item.path)" :style="item.style||''">
			<view>{{item.name}}</view>
			<uni-icon type="arrowright" color="#999999" :size="30"/>
		</view>
	</view>
</template>

<script>
	import uniIcon from './QS-inputs-split/uniIcons/uni-icons.vue';
	export default {
		components: { uniIcon },
		props: {
			itemList: {
				type: Array,
				default() {
					return [];
				}
			}
		},
		methods: {
			openWin(path) {
				uni.navigateTo({
					url: path
				})
			}
		}
	}
</script>

<style>
</style>
