hzj18279462576@163.com 3 anni fa
parent
commit
46b65ba510
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      admin/src/main.js

+ 6 - 0
admin/src/main.js

@@ -16,6 +16,12 @@ Vue.component('IconSvg', require('./components/SvgIcon').default)
 
 Vue.config.productionTip = false
 Vue.use(ElementUI);
+Vue.directive('fo', {
+  inserted(el, binding, vnode) {
+    // 聚焦元素
+    el.querySelector('input').focus()
+  }
+})
 
 /* eslint-disable no-new */
 new Vue({