<template>
  <div :class="[`${namespace}-float-panel`, pos]">
    <div class="content">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  name: 'FloatPanel',
  inject: ['namespace'],
  provide() {
    return {
      pos: this.pos
    }
  },
  props: {
    pos: {
      type: 'left' | 'right',
      default: 'left'
    }
  },
}
</script>

<style lang="less" scoped>
@import "@/assets/styles/config.less";

  .@{namespace}-float-panel {
    position: absolute;
      padding: 0px 19px;
    
    .content {

    }
    
  }

  .left {
    left: 0px;
  }

  .right {
    right: 0px;
  }

</style>
