🔨 命令发送.

This commit is contained in:
lijiahangmax
2024-12-16 23:20:57 +08:00
parent 1227ed1770
commit 786d07907d
13 changed files with 116 additions and 73 deletions

View File

@@ -1,9 +1,10 @@
import type { VNodeRef } from 'vue';
import { nextTick } from 'vue';
// 设置 ref 自动聚焦
export const setAutoFocus = (el: HTMLElement) => {
export const setAutoFocus: VNodeRef = ((el: HTMLElement) => {
// 自动聚焦
nextTick(() => {
el && el.focus();
});
};
}) as unknown as VNodeRef;