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