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.
|
|
|
<template>
|
|
|
|
<view class="container">
|
|
|
|
<s-header :title="title" :isTab="isTab" :isCustom="isCustom" @goback="$emit('goback')">
|
|
|
|
<slot name="header"></slot>
|
|
|
|
</s-header>
|
|
|
|
<view class="view">
|
|
|
|
<view class="inner">
|
|
|
|
<slot></slot>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<s-tabber :selected="selected" :isTab="isTab" />
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'cs-page',
|
|
|
|
props: {
|
|
|
|
selected: Number,
|
|
|
|
title: String,
|
|
|
|
isTab: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
isCustom: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.container {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
grid-template-rows: auto 1fr auto;
|
|
|
|
height: 100vh;
|
|
|
|
width: 100vw;
|
|
|
|
overflow: hidden;
|
|
|
|
.view {
|
|
|
|
position: relative;
|
|
|
|
.inner {
|
|
|
|
position: absolute;
|
|
|
|
overflow: hidden;
|
|
|
|
inset: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|