fix autocomplete not show dropdown (#477)

This commit is contained in:
Sijie.Sun
2024-11-16 21:31:19 +08:00
committed by GitHub
parent 15ad92aef2
commit 89093167c6
2 changed files with 8 additions and 2 deletions
@@ -95,7 +95,7 @@ function searchInetSuggestions(e: { query: string }) {
const listenerSuggestions = ref([''])
function searchListenerSuggestiong(e: { query: string }) {
function searchListenerSuggestions(e: { query: string }) {
const ret = []
for (const proto in protos) {
@@ -242,7 +242,7 @@ function searchListenerSuggestiong(e: { query: string }) {
<AutoComplete id="listener_urls" v-model="curNetwork.listener_urls" :suggestions="listenerSuggestions"
class="w-full" dropdown :complete-on-focus="true"
:placeholder="t('chips_placeholder', ['tcp://1.1.1.1:11010'])" multiple
@complete="searchListenerSuggestiong" />
@complete="searchListenerSuggestions" />
</div>
</div>
@@ -32,6 +32,12 @@ export default {
}
},
},
zIndex: {
modal: 1100, //dialog, drawer
overlay: 1200, //select, popover
menu: 1300, //overlay menus
tooltip: 1400 //tooltip
}
});
app.component('Config', Config);