mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 18:36:51 +08:00
docs(Search): update desc of shape prop
This commit is contained in:
parent
da0c92f36f
commit
10db0100bb
@ -69,7 +69,7 @@ Search support all native properties of input tag,such as `maxlength`、`place
|
|||||||
| Attribute | Description | Type | Default | Version |
|
| Attribute | Description | Type | Default | Version |
|
||||||
|------|------|------|------|------|
|
|------|------|------|------|------|
|
||||||
| label | Search label | *string* | - | - |
|
| 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` | - |
|
| background | Background color | *string* | `#f2f2f2` | - |
|
||||||
| clearable | Whether to be clearable | *boolean* | `true` | - |
|
| clearable | Whether to be clearable | *boolean* | `true` | - |
|
||||||
| show-action | Whether to show right button | *boolean* | `false` | - |
|
| show-action | Whether to show right button | *boolean* | `false` | - |
|
||||||
|
@ -62,7 +62,7 @@ Search 默认支持 Input 标签所有的原生属性,比如 `maxlength`、`pl
|
|||||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||||
|------|------|------|------|------|
|
|------|------|------|------|------|
|
||||||
| label | 搜索框左侧文本 | *string* | - | - |
|
| label | 搜索框左侧文本 | *string* | - | - |
|
||||||
| shape | 形状,可选值为 `round` | *string* | `square` | - |
|
| shape | 搜索框形状,可选值为 `round` | *string* | `square` | - |
|
||||||
| background | 搜索框背景色 | *string* | `#f2f2f2` | - |
|
| background | 搜索框背景色 | *string* | `#f2f2f2` | - |
|
||||||
| clearable | 是否启用清除控件 | *boolean* | `true` | - |
|
| clearable | 是否启用清除控件 | *boolean* | `true` | - |
|
||||||
| show-action | 是否在搜索框右侧显示取消按钮 | *boolean* | `false` | - |
|
| show-action | 是否在搜索框右侧显示取消按钮 | *boolean* | `false` | - |
|
||||||
|
@ -10,7 +10,7 @@ import { DefaultSlots, ScopedSlot } from '../utils/types';
|
|||||||
const [createComponent, bem, t] = createNamespace('search');
|
const [createComponent, bem, t] = createNamespace('search');
|
||||||
|
|
||||||
export type SearchProps = {
|
export type SearchProps = {
|
||||||
shape: string;
|
shape: 'sqaure' | 'round';
|
||||||
value?: string;
|
value?: string;
|
||||||
label?: string;
|
label?: string;
|
||||||
leftIcon: string;
|
leftIcon: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user