<template>
  <div class="btn" :style="{ left: attrs.left, top: attrs.top }">
    <button :class="{ disabled: disabled }">{{attrs.title || ''}}</button>
  </div>
</template>
<script>
export default {
  props: {
    disabled: {
      type: Boolean,
      default: false
    },
    attrs: {
      type: Object,
      default() {
        return {}
      }
    }
  }
}
</script>
<style scoped>
.btn{
  position:absolute;
  left:0;
  top:0;
  background:#fff;
  border-radius: 16px;
}
.btn::before, .btn::after{
  content: '';
  display:block;
  width:3px;
  height:15px;
  background:#333;
  position:absolute;
  left:35%;
  top:-15px;
  border-radius:1px;
}
.btn::after{
  left:65%;
}
button{
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #60A797;
  border: 1px solid #a7a7a7;
  color: #fff;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0;
  transition: .1s;
  font-weight: 500;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  font-size: 14px;
  line-height:32px;
  height:32px;
  width:120px;
  border-radius: 16px;
}
button:hover{
  background:rgba(96,167,151, .8);
}
button.disabled{
  background:#b4dcd2;
  border-color:#c3c3c3;
  cursor: not-allowed;
}
</style>
