mirror of
https://github.com/koel/koel
synced 2024-12-29 22:13: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()
|
|
}
|