mirror of
https://github.com/koel/koel
synced 2024-12-21 10:03:10 +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()
|
|
}
|