<template>
  <div class="ioc-card">
    <div class="card_title">
      <slot name="title">{{ title }}</slot>
      <span style="float: right">
        <slot name="title-extra"></slot>
      </span>
    </div>
    <slot v-if="show"></slot>
  </div>
</template>

<script>
export default {
  props: {
    title: String,
  },
  data() {
    return {
      show: true,
    };
  },
  mounted() {
    this.$nextTick(()=>{
      //this.show = true;
      this.$forceUpdate()
    })
  }
};
</script>

<style lang="less" scoped>
.ioc-card {
  border-radius: 4px;
  background-color: #ffffff;
  .card_title {
    padding: 10px 0px 10px 15px;
    font-size: 16px;
    font-family: PingFangSC-Bold,serif;
    color: #333333;
  }
}

</style>