Browse Source

no message

xiaochan 1 year ago
parent
commit
aca19a5447
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main.js

+ 2 - 1
src/main.js

@@ -1,5 +1,5 @@
 import {createApp} from 'vue'
-import ElementPlus, {useZIndex, ClickOutside} from 'element-plus'
+import ElementPlus, {useZIndex, ClickOutside, TrapFocus} from 'element-plus'
 import 'element-plus/dist/index.css'
 import 'element-plus/theme-chalk/dark/css-vars.css'
 import 'normalize.css' // css初始化
@@ -59,6 +59,7 @@ app.directive('el-btn', VElBtn)
 app.directive('title', VTitle)
 app.directive('ClickOutside', ClickOutside)
 app.directive('Waves', VWaves)
+app.directive('TrapFocus', TrapFocus)
 app.use(print)
 app.use(VXETable)
 app.use(JsonViewer);