File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div class =" af-universal-search flex items-center gap-1" >
33 <slot name =" prefix" />
4- < input
5- v-model = " localValue "
6- type = " text "
7- :placeholder = " props.meta?.placeholder ?? '' "
8- class = " border rounded px-2 py-1 text-sm dark:bg-gray-800 dark:border-gray-600 "
9- : class =" localValue ? 'w-[222px]' : 'w-64' "
10- @keyup.enter =" applyImmediate"
11- / >
12- < button
13- v-if =" localValue"
14- @click =" clear"
15- class =" flex items-center py-1 px-2 text-sm font-medium text-lightListViewButtonText focus:outline-none bg-lightListViewButtonBackground rounded border border-lightListViewButtonBorder hover:bg-lightListViewButtonBackgroundHover hover:text-lightListViewButtonTextHover focus:z-10 focus:ring-4 focus:ring-lightListViewButtonFocusRing dark:focus:ring-darkListViewButtonFocusRing dark:bg-darkListViewButtonBackground dark: text-darkListViewButtonText dark:border-darkListViewButtonBorder dark: hover:text-darkListViewButtonTextHover dark:hover:bg-darkListViewButtonBackgroundHover rounded-default "
16- type = " button "
17- >
18- ✕
19- </ button >
4+ < div class = " relative w-64 " >
5+ < input
6+ v-model = " localValue "
7+ type = " text "
8+ :placeholder = " props.meta?.placeholder ?? '' "
9+ class =" w-full border rounded text-sm dark:bg-gray-800 dark:border-gray-600 dark:text-white px-2 py-1 pr-6 "
10+ @keyup.enter =" applyImmediate"
11+ >
12+ < p
13+ v-if =" localValue"
14+ @click =" clear"
15+ class =" absolute right-2 top-1/2 -translate-y-1/2 hover:cursor-pointer hover:text-gray-600 dark:text-white dark:hover:text-gray-400 "
16+ >
17+ ✕
18+ </ p >
19+ </ div >
2020 <slot name =" suffix" />
2121 </div >
2222</template >
You can’t perform that action at this time.
0 commit comments