feat(search): round and clearable searchbar
This commit is contained in:
		
							parent
							
								
									d55329f3ab
								
							
						
					
					
						commit
						b112f5f226
					
				| @ -33,17 +33,15 @@ function onSelect(path: string) { | |||||||
| 
 | 
 | ||||||
| <template> | <template> | ||||||
|     <div> |     <div> | ||||||
|         <n-auto-complete |         <n-auto-complete :options="options" v-model:value="queryString" :input-props="{ autocomplete: 'disabled' }" | ||||||
|             placeholder="Search a tool..." |             :on-select="onSelect"> | ||||||
|             :options="options" |             <template #default="{ handleInput, handleBlur, handleFocus, value: slotValue }"> | ||||||
|             v-model:value="queryString" |                 <n-input round clearable placeholder="Search a tool..." :value="slotValue" @input="handleInput" | ||||||
|             :input-props="{ autocomplete: 'disabled' }" |                     @focus="handleFocus" @blur="handleBlur"> | ||||||
|             :on-select="onSelect" |  | ||||||
|         > |  | ||||||
|                     <template #prefix> |                     <template #prefix> | ||||||
|                 <n-icon> |                         <n-icon :component="SearchRound" /> | ||||||
|                     <search-round /> |                     </template> | ||||||
|                 </n-icon> |                 </n-input> | ||||||
|             </template> |             </template> | ||||||
|         </n-auto-complete> |         </n-auto-complete> | ||||||
|     </div> |     </div> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user