<template>
  <div class="default-alert">
    <div class="top">{{AlertTitle}}
      <i class="el-icon-close" @click="closeAlert()"></i>
    </div>
    <div class="content">
      <slot>

      </slot>
    </div>
  </div>
</template>

<script>
  export default {
    props: {
      AlertTitle: {
        type: String,
        default: '新增公司地址'
      }
    },
    methods: {
      closeAlert() {
        this.$emit('closeAlert')
      }
    }
  }
</script>

<style lang="scss" scoped>
  .default-alert {
    width: 618px;
    border-radius: 5px;
    box-shadow: 0 5px 5px #bcd2ff;
    overflow: hidden;
    position: fixed;
    left: 50%;
    top: 10%;
    transform: translate3d(-50%, 0%, 0);
    z-index: 999;
    .top {
      color: #fff;
      font-size: 14px;
      line-height: 30px;
      position: relative;
      text-indent: 12px;
      margin-bottom: 0px;
      background: #6093f6;
      i {
        position: absolute;
        color: #fff;
        font-size: 14px;
        right: 10px;
        top: 10px;
        cursor: pointer;
      }
    }
    .content {
      padding: 20px;
      background: #fff;
    }
  }
</style>
