mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-06-11 07:29:16 +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)}>
|
<div class={bem('content', props.shape)}>
|
||||||
{Label()}
|
{Label()}
|
||||||
<Field
|
<Field
|
||||||
|
v-slots={{
|
||||||
|
'left-icon': slots['left-icon'],
|
||||||
|
'right-icon': slots['right-icon'],
|
||||||
|
}}
|
||||||
type="search"
|
type="search"
|
||||||
border={false}
|
border={false}
|
||||||
leftIcon={props.leftIcon}
|
leftIcon={props.leftIcon}
|
||||||
@ -100,10 +104,6 @@ export default createComponent({
|
|||||||
clearable={props.clearable}
|
clearable={props.clearable}
|
||||||
modelValue={props.modelValue}
|
modelValue={props.modelValue}
|
||||||
clearTrigger={props.clearTrigger}
|
clearTrigger={props.clearTrigger}
|
||||||
scopedSlots={{
|
|
||||||
'left-icon': slots['left-icon'],
|
|
||||||
'right-icon': slots['right-icon'],
|
|
||||||
}}
|
|
||||||
{...fieldData}
|
{...fieldData}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user