TaskStandard.vue 1.35 KB
<template>
  <div class="page-data">
    <div class="page-title">
      <slot name="header-left">
        <div></div>
      </slot>
      <span class="header">{{ $route.meta.title }}</span>
      <div class="header-right">
        <slot name="header-right">
          <header-button icon="arrow-left" type="no-line" @click="goBack()">
            返回
          </header-button>
        </slot>
      </div>
    </div>
    <div class="page-box">
      <div class="box-card" shadow="never">
        <template v-if="$slots.tab && $slots.tab.length">
          <div class="tabList mb10">
            <slot name="tab"> </slot>
          </div>
        </template>
        <slot> </slot>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'standard',
  props: {
    total: {}
  },
  data() {
    return {}
  },
  methods: {
    goBack() {
      this.$router.back()
    }
  }
}
</script>
<style lang="scss" scoped>
.page-data {
  padding: 0 24px;
  padding-bottom: 24px;
}

.card-box {
  // background: #303133;
}

.header .box-card {
  min-height: 80vh;
  // background-color: #000;
}

.header {
  font-size: 20px;
  font-weight: 700;
  color: #303133;
}

.page-title {
  padding: 40px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-right {
  ::v-deep .header-button {
    margin-left: 24px;
  }
}
</style>