潘志宝
6 天以前 ca22cdd5550cfa0defb0f430c538698182cdaec1
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()
    }
  })
}