mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-06-10 15:19:14 +08:00
fix(Search): icon slot not work
This commit is contained in:
parent
f978642277
commit
b4e02668cf
@ -93,6 +93,10 @@ export default createComponent({
|
||||
<div class={bem('content', props.shape)}>
|
||||
{Label()}
|
||||
<Field
|
||||
v-slots={{
|
||||
'left-icon': slots['left-icon'],
|
||||
'right-icon': slots['right-icon'],
|
||||
}}
|
||||
type="search"
|
||||
border={false}
|
||||
leftIcon={props.leftIcon}
|
||||
@ -100,10 +104,6 @@ export default createComponent({
|
||||
clearable={props.clearable}
|
||||
modelValue={props.modelValue}
|
||||
clearTrigger={props.clearTrigger}
|
||||
scopedSlots={{
|
||||
'left-icon': slots['left-icon'],
|
||||
'right-icon': slots['right-icon'],
|
||||
}}
|
||||
{...fieldData}
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user