renovate
40538df392
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #3766 Co-authored-by: renovate <renovatebot@kolaente.de> Co-committed-by: renovate <renovatebot@kolaente.de>
17 lines
290 B
TypeScript
17 lines
290 B
TypeScript
import type {Directive} from 'vue'
|
|
import {install, uninstall} from '@github/hotkey'
|
|
|
|
const directive = <Directive<HTMLElement,string>>{
|
|
mounted(el, {value}) {
|
|
if(value === '') {
|
|
return
|
|
}
|
|
install(el, value)
|
|
},
|
|
beforeUnmount(el) {
|
|
uninstall(el)
|
|
},
|
|
}
|
|
|
|
export default directive
|