dongyukun
7 天以前 4a92d33eb3157e8f31d4429eead1c7dfd3cacc13
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()
    }
  })
}