|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<ElPopover placement="bottom" popper-class="global-input-search-popover" :popperOptions="popperOptions" |
|
|
|
<ElPopover ref="PopoverRef" placement="bottom" popper-class="global-input-search-popover" :popperOptions="popperOptions" |
|
|
|
:visibleArrow="false" :width="this.width" trigger="click" @show="handleShow"> |
|
|
|
<div class='InputSearch' slot="reference" ref="ReferenceInputRef"> |
|
|
|
<span>{{ placeholder }}</span> |
|
|
@ -77,11 +77,14 @@ export default { |
|
|
|
handleResetForm() { |
|
|
|
this.$refs.FormConfigRef?.reset(); |
|
|
|
|
|
|
|
this.$refs.PopoverRef.doClose(); |
|
|
|
|
|
|
|
this.$emit('handleSearch', cloneDeep(this.$refs.FormConfigRef?.formData)); |
|
|
|
}, |
|
|
|
handleSearch() { |
|
|
|
this.$refs.FormConfigRef.validate() |
|
|
|
.then((result) => { |
|
|
|
this.$refs.PopoverRef.doClose(); |
|
|
|
this.$emit('handleSearch', result); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|