ant-design-vue/antdv-demo/docs/badge/demo/overflow.md

712 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-badge>
    <a-badge :count="100">
      <a href="#" class="head-example" />
    </a-badge>
    <a-badge :count="99" :overflow-count="10">
      <a href="#" class="head-example" />
    </a-badge>
    <a-badge :count="1000" :overflow-count="999">
      <a href="#" class="head-example" />
    </a-badge>
  </div>
</template>