<template>
  <div class="uif-corner-count">{{count}}</div>
</template>

<script>
import {toNumber} from '@uif/hq/src/utils/format'
export default {
  name: 'u-corner-count',
  props: {
    value: {
      type: [String, Number],
      default: 0
    }
  },
  computed: {
    count () {
      return Math.min(toNumber(this.value), 99)
    }
  }
}
</script>
