<template>
  <div class="btn" :style="{ left: attrs.left, top: attrs.top }">
    <button>{{attrs.title || ''}}</button>
  </div>
</template>
<script>
export default {
  props: {
    attrs: {
      type: Object,
      default() {
        return {}
      }
    }
  }
}
</script>
<style scoped>
.btn{
  position:absolute;
  left:0;
  top:0;
}
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);
}
</style>
