diff --git a/src/search/index.js b/src/search/index.js index c16f5b557..990c06eab 100644 --- a/src/search/index.js +++ b/src/search/index.js @@ -36,7 +36,7 @@ export default createComponent({ }, }, - emits: ['search', 'cancel'], + emits: ['update:modelValue', 'search', 'cancel'], setup(props, { emit, slots, attrs }) { const filedRef = ref(); @@ -109,6 +109,10 @@ export default createComponent({ style: null, class: null, }; + + const onInput = (value) => { + emit('update:modelValue', value); + }; return ( ); };