mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
10 lines
144 B
TypeScript
10 lines
144 B
TypeScript
import type { Ref } from 'vue'
|
|
|
|
export default (el: Ref<HTMLElement>) => {
|
|
return {
|
|
focus: () => {
|
|
el.value?.focus?.()
|
|
},
|
|
}
|
|
}
|