<template>
  <div class="border-box-style box-content-style" :style="borderBox">
    <div class="justify-style">
      <div class="justify-style-left">
        <div class="icon"></div>
        <div class="title inline-left">{{$t(title)}}</div>
        <slot name="operation"></slot>
      </div>
      <div class="detail-title justify-style-right" @click="detailClick">
        <div>{{$t(detailTitle)}}</div>
        <div style="margin-left: 0.260vw"> > </div>
      </div>
    </div>
    <slot name="content"></slot>
  </div>
</template>

<script>
export default {
  name: "borderTemplate",
  props:["borderBox","title","detailTitle"],
  methods:{
    detailClick(){
      this.$emit('detailClick')
    }
  },
  mounted() {
  }
}
</script>

<style scoped>
  .border-box-style{
    background: linear-gradient( 180deg, #00244D 0%, #001E41 100%);
    box-shadow: 0.000vw 0.104vw 0.208vw 0.052vw rgba(0,0,0,0.15);
    border-radius: 0.208vw 0.208vw 0.208vw 0.208vw;
    border: 0.104vw solid #3D73BA;
    opacity: 0.8;
    box-sizing: border-box;
  }
  .justify-style-left{
    display: flex;
    justify-content: left;
  }
  .justify-style-right{
    display: flex;
    justify-content: right;
  }
  .justify-style{
    display: flex;
    justify-content: space-between;
  }
  .inline-left{
    margin-left: 1.042vw;
  }
  .box-content-style{
    padding: 1.042vw;
  }
  .box-content-style .icon {
    width: 0.313vw;
    height: 0.938vw;
    background: #E6F4FF;
    border-radius: 0.104vw 0.104vw 0.104vw 0.104vw;
  }
  .box-content-style .title{
    /*width: 7.350vw;*/
    height: 1.615vw;
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: bold;
    font-size: 1.250vw;
    color: #E6F4FF;
    text-align: left;
    line-height: 0.9vw;
    vertical-align: middle;
  }
  .box-content-style .detail-title{
    /*width: 8.333vw;*/
    height: 1.094vw;
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 400;
    font-size: 0.833vw;
    color: #CFDCE5;
    line-height: 0.9vw;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }
</style>
