From 83518c05aad97b8cf388b5a04bacf0c9981691b5 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期四, 04 七月 2024 13:46:30 +0800 Subject: [PATCH] 修改文件名 --- src/directive/customDirective.ts | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/directive/customDirective.ts b/src/directive/customDirective.ts index 83738b5..b6eb85d 100644 --- a/src/directive/customDirective.ts +++ b/src/directive/customDirective.ts @@ -53,13 +53,13 @@ }); } -export const eleFocusDirective =(app:App)=>{ - app.directive('elInputFocus',{ - mounted:(el)=>{ - el.querySelector('input.el-input__inner')?.focus() - } - }) -} +export const eleFocusDirective = (app: App) => { + app.directive('elInputFocus', { + mounted: (el) => { + el.querySelector('input.el-input__inner')?.focus(); + }, + }); +}; /** * 鑷畾涔夋嫋鍔ㄦ寚浠� -- Gitblit v1.9.3