docs(Search): update desc of shape prop

This commit is contained in:
陈嘉涵 2019-09-02 10:59:11 +08:00
parent da0c92f36f
commit 10db0100bb
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ Search support all native properties of input tagsuch as `maxlength`、`place
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| label | Search label | *string* | - | - |
| shape | Can be set to `round` | *string* | `square` | - |
| shape | Shape of input, can be set to `round` | *string* | `square` | - |
| background | Background color | *string* | `#f2f2f2` | - |
| clearable | Whether to be clearable | *boolean* | `true` | - |
| show-action | Whether to show right button | *boolean* | `false` | - |

View File

@ -62,7 +62,7 @@ Search 默认支持 Input 标签所有的原生属性,比如 `maxlength`、`pl
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| label | 搜索框左侧文本 | *string* | - | - |
| shape | 形状,可选值为 `round` | *string* | `square` | - |
| shape | 搜索框形状,可选值为 `round` | *string* | `square` | - |
| background | 搜索框背景色 | *string* | `#f2f2f2` | - |
| clearable | 是否启用清除控件 | *boolean* | `true` | - |
| show-action | 是否在搜索框右侧显示取消按钮 | *boolean* | `false` | - |

View File

@ -10,7 +10,7 @@ import { DefaultSlots, ScopedSlot } from '../utils/types';
const [createComponent, bem, t] = createNamespace('search');
export type SearchProps = {
shape: string;
shape: 'sqaure' | 'round';
value?: string;
label?: string;
leftIcon: string;