gerson
2024-06-30 839461b04197f781ff8627d75824dacbbb76230f
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();
      },
   });
};
/**
 * 自定义拖动指令