c-page.vue 800 Bytes
Newer Older
fukai committed
1
<template>
潘际乾 committed
2
  <div class="c-page-container">
潘际乾 committed
3
    <!-- <div class="title" v-if="showTitle">
4
      <i class="el-icon-location" style="color: #409eff;"></i>
潘际乾 committed
5
      <span>{{ title }}</span>
6
    </div> -->
liushikai committed
7
    <div style="flex: 1; padding: 5px 15px; position: relative">
潘际乾 committed
8 9 10
      <slot></slot>
    </div>
  </div>
fukai committed
11 12 13 14
</template>

<script>
export default {
潘际乾 committed
15
  props: ["title"],
潘际乾 committed
16 17 18 19 20
  computed: {
    // showTitle() {
    //   return this.$route.path.startsWith('/review');
    // }
  }
潘际乾 committed
21
};
fukai committed
22 23
</script>
<style scoped>
潘际乾 committed
24 25 26 27 28 29 30 31 32 33 34 35 36
.title {
  margin: 0;
  padding: 8px;
  padding-left: 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--darkbgcolor);
  background-color: var(--darkbgcolor);
}
.c-page-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* overflow-x: hidden; */
zhengxiaokui committed
37
  overflow: hidden;
潘际乾 committed
38
}
fukai committed
39
</style>