yangyin
2024-07-15 0e982d78030d36d6048532f5d4a848ad9a22a13f
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();
      },
   });
};
/**
 * 自定义拖动指令