<template>
  <div class="column-item">
    <MyTitle v-if="!!title" :title="title" :showIcon="showIcon">
      <template #right>
        <slot name="right"></slot>
      </template>
    </MyTitle>
    <div class="cont">
      <slot></slot>
    </div>
  </div>
</template>

<script setup>
  import { ref, inject } from 'vue'
  import MyTitle from '../myTitle/MyTitle.vue'
  const props = defineProps({
    title: {
      type: String,
      default: ''
    },
    showIcon: {
      type: Boolean,
      default: () => true
    }
  })
</script>

<style lang="scss" scoped>
  .column-item {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 20px;

    .cont {
      padding: 20px;
    }
  }
</style>
