docs(rate, button) (#408)

* chore

* test(menu): add menu render-label dropdown test (#404)

* test(menu): clean codes

* doc(n-rate,n-button)

* doc(n-rate,n-button)

* Revert "chore"

This reverts commit 1593b37d10.

* Revert "test(menu): clean codes"

This reverts commit 6841e05087.

* Revert "test(menu): add menu render-label dropdown test (#404)"

This reverts commit b245e56b5f.

* doc(n-rate,n-button)

Co-authored-by: 07akioni <07akioni2@gmail.com>
Co-authored-by: cyn <chenyinan@moqipobing.com>
This commit is contained in:
doom-9 2021-07-06 23:55:44 +08:00 committed by GitHub
parent 1768f310e1
commit 946b753f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 12 deletions

View File

@ -31,7 +31,7 @@ icon-button
| block | `boolean` | `false` | Whether the button is displayed as block. |
| bordered | `boolean` | `true` | Whether the button shows the border. |
| circle | `boolean` | `false` | Whether the button is round. |
| color | `string` | `undefined` | Only support `#FFF`, `#FFFFFF`, `rgb(0, 0, 0)` formatted colors. |
| color | `string` | `undefined` | Button color(support `#FFF`, `#FFFFFF`, `yellow`,`rgb(0, 0, 0)` formatted colors). |
| dashed | `boolean` | `false` | Whether the button border is a dashed line. |
| disabled | `boolean` | `false` | Whether the button is disabled. |
| ghost | `boolean` | `false` | Whether the button is ghost. |

View File

@ -33,7 +33,7 @@ debug
| block | `boolean` | `false` | 按钮是否显示为块级 |
| bordered | `boolean` | `true` | 按钮是否显示 border |
| circle | `boolean` | `false` | 按钮是否为圆形 |
| color | `string` | `undefined` | 只支持形如 `#FFF`, `#FFFFFF`, `rgb(0, 0, 0)` 的颜色 |
| color | `string` | `undefined` | 按钮颜色(支持形如 `#FFF` `#FFFFFF` `yellow``rgb(0, 0, 0)` 的颜色) |
| dashed | `boolean` | `false` | 按钮 border 是否为虚线 |
| disabled | `boolean` | `false` | 按钮是否禁用 |
| ghost | `boolean` | `false` | 按钮是否透明 |

View File

@ -15,11 +15,12 @@ icon
| 名称 | 类型 | 默认值 | 说明 |
| --- | --- | --- | --- |
| count | `number` | `5` | |
| value | `number` | `undefined` | |
| default-value | `number` | `0` | |
| size | `'small' \| 'medium' \| 'large' \| number` | `'medium'` | |
| on-update:value | `(value: number) => void` | `undefined` | |
| color | `string` | `undefined` | Icon color activated(support `#FFF`, `#FFFFFF`, `yellow`,`rgb(0, 0, 0)` formatted colors). |
| count | `number` | `5` | Icon count. |
| default-value | `number` | `0` | Value of activated icons by default. |
| size | `'small' \| 'medium' \| 'large' \| number` | `'medium'` | Icon size. |
| value | `number` | `undefined` | Value of activated icons. |
| on-update:value | `(value: number) => void` | `undefined` | Callback when update value. |
## Slots

View File

@ -15,11 +15,12 @@ icon
| 名称 | 类型 | 默认值 | 说明 |
| --- | --- | --- | --- |
| count | `number` | `5` | |
| value | `number` | `undefined` | |
| default-value | `number` | `0` | |
| size | `'small' \| 'medium' \| 'large' \| number` | `'medium'` | |
| on-update:value | `(value: number) => void` | `undefined` | |
| color | `string` | `undefined` | 已激活图标颜色(支持形如 `#FFF` `#FFFFFF` `yellow``rgb(0, 0, 0)` 的颜色) |
| count | `number` | `5` | 图标个数 |
| default-value | `number` | `0` | 默认已激活图标个数 |
| size | `'small' \| 'medium' \| 'large' \| number` | `'medium'` | 图标尺寸 |
| value | `number` | `undefined` | 绑定已激活图标个数 |
| on-update:value | `(value: number) => void` | `undefined` | 激活图标个数改变时触发 |
## Slots