🎨
This commit is contained in:
		
							parent
							
								
									c550dafb81
								
							
						
					
					
						commit
						b93e56d2e5
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -1,7 +1,7 @@ | ||||||
| <template> | <template> | ||||||
| <div class="vblkjoeq"> | <div class="vblkjoeq"> | ||||||
| 	<div class="label" @click="focus"><slot name="label"></slot></div> | 	<div class="label" @click="focus"><slot name="label"></slot></div> | ||||||
| 	<div ref="container" class="input" :class="{ inline, disabled, focused }" @click.prevent="onClick"> | 	<div ref="container" class="input" :class="{ inline, disabled, focused }" @click.prevent="show" @mousedown.prevent="show"> | ||||||
| 		<div ref="prefixEl" class="prefix"><slot name="prefix"></slot></div> | 		<div ref="prefixEl" class="prefix"><slot name="prefix"></slot></div> | ||||||
| 		<select | 		<select | ||||||
| 			ref="inputEl" | 			ref="inputEl" | ||||||
|  | @ -118,7 +118,7 @@ onMounted(() => { | ||||||
| 	}); | 	}); | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| const onClick = (ev: MouseEvent) => { | function show(ev: MouseEvent) { | ||||||
| 	focused.value = true; | 	focused.value = true; | ||||||
| 	opening.value = true; | 	opening.value = true; | ||||||
| 
 | 
 | ||||||
|  | @ -166,7 +166,7 @@ const onClick = (ev: MouseEvent) => { | ||||||
| 	}).then(() => { | 	}).then(() => { | ||||||
| 		focused.value = false; | 		focused.value = false; | ||||||
| 	}); | 	}); | ||||||
| }; | } | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <style lang="scss" scoped> | <style lang="scss" scoped> | ||||||
|  | @ -285,7 +285,7 @@ const onClick = (ev: MouseEvent) => { | ||||||
| 
 | 
 | ||||||
| <style lang="scss" module> | <style lang="scss" module> | ||||||
| .chevron { | .chevron { | ||||||
| 	transition: transform 0.5s ease; | 	transition: transform 0.1s ease-out; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .chevronOpening { | .chevronOpening { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue