mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
docs(Badge): refine the description of 'props' (#12936)
This commit is contained in:
parent
948c793d79
commit
5c8e098a47
@ -135,7 +135,7 @@ Use `position` prop to set the position of badge.
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
| --- | --- | --- | --- |
|
||||
| content | Badge content | _number \| string_ | - |
|
||||
| content | Badge content (Effective when `dot` is `false`) | _number \| string_ | - |
|
||||
| color | Background color | _string_ | `#ee0a24` |
|
||||
| dot | Whether to show dot | _boolean_ | `false` |
|
||||
| max | Max value, show `{max}+` when exceed, only works when content is number | _number \| string_ | - |
|
||||
|
@ -143,7 +143,7 @@ app.use(Badge);
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
| --- | --- | --- | --- |
|
||||
| content | 徽标内容 | _number \| string_ | - |
|
||||
| content | 徽标内容(`dot` 为 `fasle` 时生效) | _number \| string_ | - |
|
||||
| color | 徽标背景颜色 | _string_ | `#ee0a24` |
|
||||
| dot | 是否展示为小红点 | _boolean_ | `false` |
|
||||
| max | 最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效 | _number \| string_ | - |
|
||||
|
Loading…
x
Reference in New Issue
Block a user