wujingjing
2024-10-31 28b72064712a3d97b44511206a2dca07f2d37a23
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();
      },
   });
};