mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-04 15:16:34 +08:00
feat(search): add new event click-input (#4357)
* Update index.wxml * Update index.ts
This commit is contained in:
parent
35b90ed23c
commit
859f37c425
@ -83,5 +83,9 @@ VantComponent({
|
|||||||
onClear(event: WechatMiniprogram.CustomEvent) {
|
onClear(event: WechatMiniprogram.CustomEvent) {
|
||||||
this.$emit('clear', event.detail);
|
this.$emit('clear', event.detail);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onClickInput: function (event) {
|
||||||
|
this.$emit('click-input', event.detail);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
bind:change="onChange"
|
bind:change="onChange"
|
||||||
bind:confirm="onSearch"
|
bind:confirm="onSearch"
|
||||||
bind:clear="onClear"
|
bind:clear="onClear"
|
||||||
|
bind:click-input="onClickInput"
|
||||||
>
|
>
|
||||||
<slot wx:if="{{ useLeftIconSlot }}" name="left-icon" slot="left-icon" />
|
<slot wx:if="{{ useLeftIconSlot }}" name="left-icon" slot="left-icon" />
|
||||||
<slot wx:if="{{ useRightIconSlot }}" name="right-icon" slot="right-icon" />
|
<slot wx:if="{{ useRightIconSlot }}" name="right-icon" slot="right-icon" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user