Compare commits

..

No commits in common. "759fc69fd719da6dc620deb948b20a8d69444965" and "72d91f981f3b73f5ebb6dd1ea784d09d2314ba14" have entirely different histories.

1 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
<template> <template>
<el-input v-model="keyword" style="width:100%;height: 100%" @input="changeInput" :disabled="disabled" @click="changeInput" <el-input v-model="keyword" style="width:100%;height: 100%" @input="changeInput" :disabled="disabled"
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"> <div class="container" v-if="searchList.length > 0">
<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){