<template>
  <div class="four-border-bg">
    <!-- 四个角的边框效果 -->
    <div class="border_corner border_corner_left_top"></div>
    <div class="border_corner border_corner_right_top"></div>
    <div class="border_corner border_corner_left_bottom"></div>
    <div class="border_corner border_corner_right_bottom"></div>
    <div class="main-container">
      <!-- 这里写内容 -->
      <slot></slot>
    </div>
  </div>
</template>
<script>
import { defineComponent } from 'vue'
export default defineComponent ({
  name: 'FourBorderBg',
  setup(){

  }
})
</script>

<style lang="less" scoped>
.four-border-bg {
  position: relative;
  .main-container {
    min-width: 60px;
    border: 1px solid #4D7AD855;
    border-radius: 2px;
    background-color: #001d3055;
    // backdrop-filter: blur(2px);
    box-shadow: 0 0 10px #5984E055 inset;
    padding: 5px 8px;
    color: #ffffffee;
  }
  .border_corner{
    z-index: 2500;
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(0,0,0,0);
    border: 2px solid #6788CE;
  }
  .border_corner_left_top{
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 2px;
  }
  .border_corner_right_top{
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 2px;
  }
  .border_corner_left_bottom{
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 2px;
  }
  .border_corner_right_bottom{
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 2px;

  }
}

</style>
