mirror of
https://github.com/koel/koel
synced 2024-12-24 19:43:06 +00:00
8 lines
192 B
TypeScript
8 lines
192 B
TypeScript
import { Directive } from 'vue'
|
|
|
|
/**
|
|
* A simple directive to set focus into an input field when it's shown.
|
|
*/
|
|
export const focus: Directive = {
|
|
mounted: (el: HTMLElement) => el.focus()
|
|
}
|