mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 12:07:15 +01:00
Vue Autocomplete: Show search icon to make autocomplete more obvious
This commit is contained in:
parent
761b316bdc
commit
a18038c326
@ -91,4 +91,18 @@
|
||||
color: #212529;
|
||||
background: #ffffff;
|
||||
font-weight: 600;
|
||||
}
|
||||
input[type=text].p-autocomplete-dd-input {
|
||||
border-bottom-right-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
.p-autocomplete-dd .p-autocomplete-dropdown {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0px;
|
||||
margin: 0;
|
||||
padding: 3px;
|
||||
}
|
||||
.p-autocomplete-dd .p-autocomplete-dropdown svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
@ -32,6 +32,6 @@
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.grid input {
|
||||
.grid input[type=text] {
|
||||
width: 100%;
|
||||
}
|
@ -8,6 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
import {ref} from "vue";
|
||||
import AutoComplete from "primevue/autocomplete";
|
||||
import axios from "axios";
|
||||
import SearchIcon from "primevue/icons/search";
|
||||
|
||||
const props = defineProps({
|
||||
ajaxFilter: String,
|
||||
@ -40,5 +41,10 @@ async function search(event) {
|
||||
@complete="search"
|
||||
dataKey="id"
|
||||
:forceSelection="forceSelection"
|
||||
/>
|
||||
dropdown
|
||||
>
|
||||
<template #dropdownicon>
|
||||
<SearchIcon />
|
||||
</template>
|
||||
</AutoComplete>
|
||||
</template>
|
Loading…
Reference in New Issue
Block a user