Skip to content

Commit

Permalink
docs(Search): update desc of shape prop
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Sep 2, 2019
1 parent da0c92f commit 10db010
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Search support all native properties of input tag,such 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` | - |
Expand Down
2 changes: 1 addition & 1 deletion src/search/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` | - |
Expand Down
2 changes: 1 addition & 1 deletion src/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 10db010

Please sign in to comment.