yangyin
2024-10-17 7c3df89867ab9fa019c6a5fae6d309763d14d26c
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();
      },
   });
};