mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Search: add left-icon slot (#1974)
This commit is contained in:
parent
aecfdc87b4
commit
1835da736a
@ -77,3 +77,4 @@ Search support all native events of input tag,such as `focus`、`blur`、`keyp
|
||||
| name | Description |
|
||||
|------|------|
|
||||
| action | Custom right button, displayed when `showAction` is true |
|
||||
| left-icon | Custom left icon |
|
||||
|
@ -8,7 +8,9 @@
|
||||
:value="value"
|
||||
:border="false"
|
||||
left-icon="search"
|
||||
/>
|
||||
>
|
||||
<slot name="left-icon" slot="left-icon" />
|
||||
</field>
|
||||
<div v-if="showAction" :class="b('action')">
|
||||
<slot name="action">
|
||||
<div @click="onBack">{{ $t('cancel') }}</div>
|
||||
|
@ -71,3 +71,4 @@ Search 默认支持 Input 标签所有的原生事件,如 `focus`、`blur`、`
|
||||
| 名称 | 说明 |
|
||||
|------|------|
|
||||
| action | 自定义搜索框右侧按钮,需要在`showAction`为 true 时才会显示 |
|
||||
| left-icon | 自定义输入框头部图标 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user