dongyukun
9 天以前 23c8b8154fcf7c9251d07f028f3e14737ba4cecd
src/directives/index.ts
@@ -11,3 +11,14 @@
  hasRole(app)
  hasPermi(app)
}
/**
 * 导出指令:v-mountedFocus
 */
export const setupMountedFocus = (app: App<Element>) => {
  app.directive('mountedFocus', {
    mounted(el) {
      el.focus()
    }
  })
}