diff --git a/src/search/README.md b/src/search/README.md index 6586563d7..71c1faf95 100644 --- a/src/search/README.md +++ b/src/search/README.md @@ -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` | - | diff --git a/src/search/README.zh-CN.md b/src/search/README.zh-CN.md index 17587c8b9..a0f158ce2 100644 --- a/src/search/README.zh-CN.md +++ b/src/search/README.zh-CN.md @@ -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` | - | diff --git a/src/search/index.tsx b/src/search/index.tsx index b86434ac1..1bc2d9f0f 100644 --- a/src/search/index.tsx +++ b/src/search/index.tsx @@ -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;