<template>
  <q-dialog v-model="persistent" full-height maximized position="right" persistent @hide="closeCutomer"
    transition-show="slide-left">
    <div class="MycustomMain">
      <div class="myCustomBottom">
        <div class="myDetail-info">
          <student-left :save-obj="saveObj" :AddType="1" @success="refreshStudentPage" @close="closeCutomer">
          </student-left>
        </div>
      </div>
      <div class="dialog-out-close" @click="closeCutomer">
        <i class="iconfont icon-close" style="font-size:26px;" />
      </div>
    </div>
  </q-dialog>
</template>
<script>
  import studentLeft from '../student/student-left';
  export default {
    meta: {
      title: "学员管理"
    },
    components: {
      studentLeft
    },
    props: {
      saveObj: {
        type: Object,
        default: null
      }
    },
    data() {
      return {
        persistent: true,
        baseObj: {},
      }
    },
    mounted() {
      this.baseObj = this.saveObj;
    },
    methods: {
      closeCutomer() {
        this.$emit('close')
      },
      //刷新列表
      refreshStudentPage() {
        this.$emit('success');
      }
    },
  }
</script>
<style>
  .MycustomMain {
    width: auto !important;
    display: flex;
    flex-direction: column;
    height: 100 vh;
    padding: 15px 17px 0 17px;
    background-color: #f4f4f6;
  }

  .myCustomBottom {
    flex: 1;
    display: flex;
    overflow: hidden;
  }

  .myDetail-info {
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 100%;
    padding: 28px 0;
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow: auto;
  }

  .myDetail-info::-webkit-scrollbar {
    display: none;
  }
</style>