<template>
  <div class="FormArea">
    <div class="FormArea-title">{{title}}</div>
    <div class="FormArea-content">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'form-area',
  props: {
    title: {
      type: String,
      default: '题目',
    },
  },
};
</script>

<style lang="scss">
@import '../../assets/styles/variables.scss';

.FormArea {
  .FormArea-title {
    height: 18px;
    line-height: 18px;
    font-size: 12px;
    color: #0177d5;
    border-left: 2px solid #0177d5;
    text-indent: 6px;
  }
  .FormArea-content {
    padding: 10px 0 13px;
  }
}
@media screen and (min-width: $bigScreenWidth) {
  .FormArea {
    .FormArea-title {
      height: 30px;
      line-height: 30px;
      font-size: 22px;
      text-indent: 12px;
    }
    .FormArea-content {
      padding: 10px 0 20px;
    }
  }
}
</style>
