mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
e4bb9daf4f
* fix(select): Fix select.focus is undefined bug * fix(select): Add hook test Co-authored-by: bastarder <jie.qian@blockheaders.com>
10 lines
139 B
TypeScript
10 lines
139 B
TypeScript
import { Ref } from 'vue'
|
|
|
|
export default (el: Ref<HTMLElement>) => {
|
|
return {
|
|
focus: () => {
|
|
el.value?.focus?.()
|
|
},
|
|
}
|
|
}
|