✨ 删除文件.
This commit is contained in:
9
orion-ops-ui/src/utils/dom.ts
Normal file
9
orion-ops-ui/src/utils/dom.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { nextTick } from 'vue';
|
||||
|
||||
// 设置 ref 自动聚焦
|
||||
export const setAutoFocus = (el: HTMLElement) => {
|
||||
// 自动聚焦
|
||||
nextTick(() => {
|
||||
el && el.focus();
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user