<template>
	<view :class="[Tab?'tabpage':'page']">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: "Page",
		props: {
			Tab: {
				type: Boolean,
				default: false
			}
		},
		data() {
			return {
				_curPage: {},
				_curDeep: 0
			}
		},
		mounted() {
			const pages = getCurrentPages();
			const len = pages.length
			this.curPage = pages[len - 1];
			this._curDeep = len;
		},
		methods: {

		}
	}
</script>