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.
 
 
 

44 lines
637 B

<template>
<view :class="[className, Tab?'tabpage':'page']" :style="inStyle">
<slot></slot>
</view>
</template>
<script>
export default {
name: "Page",
props: {
Tab: {
type: Boolean,
default: false
},
className: {
type: String || Array,
default: ''
},
inStyle:{
type: String || Object,
default: ''
}
},
data() {
return {
_curPage: {},
_curDeep: 0
}
},
mounted() {
const pages = getCurrentPages();
const len = pages.length
this.curPage = pages[len - 1];
this._curDeep = len;
},
methods:{
}
}
</script>
<style lang="scss" scoped>
</style>