You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
439 B

<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>