diff --git a/packages/vant/src/badge/README.zh-CN.md b/packages/vant/src/badge/README.zh-CN.md index e29637229..6c42830fb 100644 --- a/packages/vant/src/badge/README.zh-CN.md +++ b/packages/vant/src/badge/README.zh-CN.md @@ -184,3 +184,17 @@ import type { BadgeProps, BadgePosition } from 'vant'; | --van-badge-dot-color | _var(--van-danger-color)_ | - | | --van-badge-dot-size | _8px_ | - | | --van-badge-font-family | _-apple-system-font, Helvetica Neue, Arial, sans-serif_ | - | + +## 常见问题 + +### 设置 show-zero 属性为 false 不生效? + +注意 `show-zero` 属性仅对数字类型的 `0` 有效,对字符串类型的 `'0'` 无效。 + +```html + + + + + +```