ant-design-vue/components/badge/demo/overflow.md

719 B

#### 封顶数字 超过 `overflowCount` 的会显示为 `${overflowCount}+`,默认的 `overflowCount` 为 `99`。 #### Overflow Count `${overflowCount}+` is displayed when count is larger than `overflowCount`. The default value of `overflowCount` is `99`.
<template>
  <div>
    <a-badge :count="99">
      <a href="#" class="head-example"></a>
    </a-badge>
    <a-badge :count="100">
      <a href="#" class="head-example"></a>
    </a-badge>
    <a-badge :count="99" :overflowCount="10">
      <a href="#" class="head-example"></a>
    </a-badge>
    <a-badge :count="1000" :overflowCount="999">
      <a href="#" class="head-example"></a>
    </a-badge>
  </div>
</template>