<template>
  <div class="en-panel">
    <div class="en-panel-title">
      <div class="test-icon"></div>
      <span v-html="title"></span>
      <img src="@/assets/images/engineering/title_icon2.png" />
    </div>
    <div class="en-panel-content">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  name: 'ENPanel',
  props: {
    title: {
      type: String,
      default: '标题'
    }
  }
}
</script>

<style lang="scss" scoped>
.en-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  color: #fff;
  .en-panel-title {
    @include f_ac1;
    position: relative;
    padding: 11px;
    background-color: rgba(134, 158, 192, 0.1);
    font-size: 18px;
    font-weight: 700;
    .test-icon {
      width: 18px;
      height: 18px;
      margin-right: 4px;
      background: url("~@/assets/images/engineering/icon_huangse.png") no-repeat
        center / 100% 100%;
    }
    img {
      margin-left: 4px;
    }
  }
  .en-panel-content {
    flex: 1;
    position: relative;
    padding: 10px;
    font-size: 16px;
  }
}
</style>
