<!--
 * @Author: changjun
 * @FilePath: /qingdao-safety-product/src/views/threatIntelligenceManagement/components/CommonCard.vue
 * @Date: 2022-08-08 11:36:50
 * @Description: 
 * @LastEditTime: 2023-09-01 17:03:12
 * @LastEditors: 曹文丽
-->
<script setup lang="ts">
import { defineProps } from 'vue'

interface CommonCardProps {
  title: string;
}
const { title = '' } = defineProps<CommonCardProps>()
</script>

<template>
  <div class="ya-card">
    <div class="title prefix">{{ title }}</div>
    <slot></slot>
  </div>
</template>


<style lang="scss" scoped>
.ya-card {
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  position: relative;

  .prefix {
    position: relative;
  }

  .prefix::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto 0;
    width: 3px;
    height: 14px;
    background: #0095FF;
  }

  .title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6500);
    padding-left: 11px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

}
</style>
