wujingjing
2024-09-14 2b74f9e5d2da522bc8b44f4b3d499a059f8a59ce
src/directive/customDirective.ts
@@ -202,3 +202,13 @@
      },
   });
};
export const eleFocusDirective = (app: App) => {
   app.directive('elInputFocus', {
      mounted: (el) => {
         el.querySelector('input.el-input__inner')?.focus();
      },
   });
};