wujingjing
2024-09-09 40b6e643f30a4032d4a69d8eb0e79fe471954cbf
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();
      },
   });
};