<template>
  <!-- 弹框 -->
  <div class="bounced-body-only">
    <el-dialog
      title="title"
      v-dialogDrag
      :visible.sync="dialogVisible"
      :width="bouncedWidth"
      :before-close="handleClose"
      :close-on-click-modal='false'
    >
      <div class="title-nav" slot="title">
        <span class="hr"></span>
        <span class="title">{{ titleName }}</span>
      </div>
      <div class="content">
        <slot name="from"></slot>
      </div>
      <div class="content">
        <slot name="wangeditot"></slot>
      </div>
      <div class="content">
        <slot name="list"></slot>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    dialogVisible: {
      //控制弹框显示
      type: Boolean,
      default: false,
    },
    bouncedWidth: {
      //弹框宽度
      type: String,
      default: "30%",
    },
    titleName: {
      //弹框标题
      type: String,
      default: "弹框标题",
    },
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {
    handleClose() {
      //点击蒙层和×关闭弹框
      this.$emit("shut");
    },
  },
};
</script>

<style lang="scss" scoped>
::v-deep .el-dialog__header {
    padding: 0;
  }
  ::v-deep .el-dialog__body {
    padding: 0;
  }
  ::v-deep .el-dialog__headerbtn {
    font-size: 24px;
  }
  ::v-deep [class*=" el-icon-"],
  [class^="el-icon-"] {
    line-height: 40px;
  }
  .innerDialog{
    font-size: 20px;
  }
.bounced-body-only {

  .title-nav {
    width: 100%;
    height: 80px;
    background: #eaecf6;
    text-align: left;
    display: flex;
    align-items: center;
    .hr {
      width: 4px;
      height: 24px;
      background: #5473e8;
      margin: 0 10px 0 40px;
      display: inline-block;
      border-radius: 100px;
    }
    .title {
      color: #778ca2;
      font-size: 24px;
    }
  }
  .content {
    width: 100%;
    height: auto;
  }
}
</style>
