From 946b753f09479b195afbfde168b96889909626bd Mon Sep 17 00:00:00 2001 From: doom-9 <65016011+doom-9@users.noreply.github.com> Date: Tue, 6 Jul 2021 23:55:44 +0800 Subject: [PATCH] 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 1593b37d10fa18c0921ab068647fd46583e203cd. * Revert "test(menu): clean codes" This reverts commit 6841e050878bd837d04364cbe0520e791bba95b7. * Revert "test(menu): add menu render-label dropdown test (#404)" This reverts commit b245e56b5f29c63eae05b32d20eb72e03107fadf. * doc(n-rate,n-button) Co-authored-by: 07akioni <07akioni2@gmail.com> Co-authored-by: cyn --- src/button/demos/enUS/index.demo-entry.md | 2 +- src/button/demos/zhCN/index.demo-entry.md | 2 +- src/rate/demos/enUS/index.demo-entry.md | 11 ++++++----- src/rate/demos/zhCN/index.demo-entry.md | 11 ++++++----- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/button/demos/enUS/index.demo-entry.md b/src/button/demos/enUS/index.demo-entry.md index 99273b2ea..23231222c 100644 --- a/src/button/demos/enUS/index.demo-entry.md +++ b/src/button/demos/enUS/index.demo-entry.md @@ -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. | diff --git a/src/button/demos/zhCN/index.demo-entry.md b/src/button/demos/zhCN/index.demo-entry.md index c139f0471..d68a3ba97 100644 --- a/src/button/demos/zhCN/index.demo-entry.md +++ b/src/button/demos/zhCN/index.demo-entry.md @@ -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` | 按钮是否透明 | diff --git a/src/rate/demos/enUS/index.demo-entry.md b/src/rate/demos/enUS/index.demo-entry.md index 81a765177..9ae2d3220 100644 --- a/src/rate/demos/enUS/index.demo-entry.md +++ b/src/rate/demos/enUS/index.demo-entry.md @@ -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 diff --git a/src/rate/demos/zhCN/index.demo-entry.md b/src/rate/demos/zhCN/index.demo-entry.md index 4c67312ac..e0274b193 100644 --- a/src/rate/demos/zhCN/index.demo-entry.md +++ b/src/rate/demos/zhCN/index.demo-entry.md @@ -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