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