<template>
  <div class="btn" @click="$emit('click')">
    <img class="icon" src="" alt="">
    <div class="text">
      {{ text }}
    </div>
  </div>
</template>

<script>
export default {
  props: {
    text: {
      type: String,
      default: '按钮',
    },
  },
  data() {
    return {}
  },
}
</script>

<style lang="scss" scoped>
.btn {
  border-radius: 100px;
  border: 2px solid #0f8388;
  padding: 4px;
  display: flex;
  line-height: 16px;
  font-size: 12px;
  color: #16bcc6;
  .icon {
    height: 16px;
  }
  .text {
    flex: 1;
    text-align: center;
  }
}
</style>
