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