<template>
  <van-sticky class="sticky">
    <div class="header flex">
      <div class="left flex">
        <backIcon1/>
        <div class="text">
          {{ title }}
        </div>
      </div>
      <div class="right"><slot></slot></div>
    </div>
  </van-sticky>
</template>
<script>
import backIcon1 from "@/components/backIcon1";
export default {
  components: {
    backIcon1
  },
  props: {
    title: {
      default: ''
    }
  }
}
</script>
<style lang="less" scoped>
.sticky {
  background-color: var(--bg-);
}
.header {
  position: relative;
  font-size: 16px;
  height: 50px;
  background-color: var(--bg-);
  justify-content: space-between;
  column-gap: 6px;
  padding: 0 16px;
  .left {
    flex: 1;
    min-width: 0px;
    column-gap: 14px;
    .text {
      flex: 1;
      min-width: 0px;
      line-height: 16px;
    }
  }
}
</style>