<template>
  <div class="option-item">
    <img />
    {{text}}
  </div>
</template>

<script>
export default {
  props: {
    text: {
      type: String,
      default: ''
    }
  },
  methods: {
    handleTap (index) {
      this.$emit('click', index)
    }
  }
}
</script>

<style>
.option-item {
  width: 80%;
  border: 2rpx solid #eee;
  border-radius: 12rpx;
  height: 100rpx;
  line-height: 100rpx;
  text-align: center;
  margin: 20rpx auto;
}
</style>
