<template>
  <div class="title">
    {{ title }}
    <div class="right-slot">
      <slot name="right-slot"></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: "Title",
  props: {
    title: {
      type: String,
      default: "",
    },
  },
};
</script>
<style lang="less" scoped>
.title {
  font-size: 18px;
  color: #fff;
  line-height: 40px !important;
  text-align: center;
  background: url("@/assets/images/index/icon_toubg@2x.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: relative;
}
.right-slot {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #43bcd2;
  font-size: 14px;
}
</style>