

<template>
  <div class="cusbutton" @click="$emit('click')" :class="{ flex, selected }">
    <slot></slot>
  </div>
</template>
<script>
export default {
  name: "CusButton5",
  props: {
    flex: {
      type: Boolean,
      default: false
    },
    selected: {
      type: Boolean,
      default: false
    }
  }
}
</script>
<style scoped lang="less">
  .cusbutton {
    display: inline-block;
    border-radius: 2.56px;
    padding: 10px 13px;
    /** 文本1 */
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0px;
    color: #fff;
    text-align: center;
    vertical-align: top;
    cursor: pointer;




    background: rgba(0, 128, 247, 0.2);



    &.flex {
      flex: 1;
    }

    &.selected {
      background: rgba(0, 128, 247, 0.5);

    }

    &:hover {
      background: rgba(0, 128, 247, 0.5);
    }



  }
</style>
