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