<template>
  <div>
    <i v-if="required || !prop || isEdit(prop)" class="triangle-top-left" />
  </div>
</template>

<script>
import { isEdit } from '@/components/hrhx/approval/utils/set-form-control.js'

export default {
  name: 'AdminRequiredSign',
  props: {
    prop: {
      type: String,
      required: false,
      default: ''
    },
    required: {
      type: Boolean,
      required: false,
      default: false
    }
  },
  methods: {
    isEdit
  }
}
</script>
