<!--
 * @desc 拒绝原因 标签
 * @author linyuanjie
 * @date 2023/11/29
-->

<template>
  <div class="refuse-reason clear_fix pl100">
    <div
      v-for="(item, index) in refuseReason"
      :key="index"
      class="refuse-reason-item mr12 mb8 fl pl6 pr6 pointer"
      @click="selectFn(item)"
    >
      {{ item }}
    </div>
  </div>
</template>

<script>
import refuseReason from "@/const/constants/refuseReason";

export default {
  name: "index",
  data() {
    return {
      refuseReason
    };
  },
  methods: {
    selectFn(item) {
      this.$emit("selectRefuseReason", item);
    }
  }
};
</script>

<style lang="scss" scoped>
.refuse-reason {
  .refuse-reason-item {
    background-color: #6eb657;
    color: white;
    border-radius: 2px;
    &:hover {
      background-color: #66b1ff;
    }
  }
}
</style>
