Compare commits
2 Commits
72d91f981f
...
759fc69fd7
| Author | SHA1 | Date |
|---|---|---|
|
|
759fc69fd7 | |
|
|
227ea607cb |
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<el-input v-model="keyword" style="width:100%;height: 100%" @input="changeInput" :disabled="disabled"
|
<el-input v-model="keyword" style="width:100%;height: 100%" @input="changeInput" :disabled="disabled" @click="changeInput"
|
||||||
placeholder="诊断选择" ref="inputRef" @focus="focus"></el-input>
|
placeholder="诊断选择" ref="inputRef" @focus="focus"></el-input>
|
||||||
|
|
||||||
<el-popover placement="bottom-start" trigger="click" :width="props.width" ref="popoverRef" @before-enter="beforeShow" :virtual-ref="inputRef" @hide ="afterShow">
|
<el-popover placement="bottom-start" trigger="click" :width="props.width" ref="popoverRef" @before-enter="beforeShow" :virtual-ref="inputRef" @hide ="afterShow">
|
||||||
|
|
||||||
<div class="container" v-if="searchList.length > 0">
|
<div class="container">
|
||||||
<el-table :data="searchList" style="width: 100%" @row-click="clickRow" :show-header="props.showHeader" size="small"
|
<el-table :data="searchList" style="width: 100%" @row-click="clickRow" :show-header="props.showHeader" size="small"
|
||||||
max-height="250px">
|
max-height="250px">
|
||||||
<el-table-column v-for="item in showConfig" :prop="item.prop" :label="item.label"
|
<el-table-column v-for="item in showConfig" :prop="item.prop" :label="item.label"
|
||||||
|
|
@ -88,9 +88,9 @@ const clickRow = (row: any) => {
|
||||||
popoverRef.value.hide()
|
popoverRef.value.hide()
|
||||||
}
|
}
|
||||||
const beforeShow = () => {
|
const beforeShow = () => {
|
||||||
if (searchList.value.length === 0) {
|
// if (searchList.value.length === 0) {
|
||||||
popoverRef.value.hide()
|
// popoverRef.value.hide()
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
const afterShow = () => {
|
const afterShow = () => {
|
||||||
if (nameList.value.length === 0){
|
if (nameList.value.length === 0){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue