wangzhaoqiang
2021-08-14 7b6ccd9b22384c1ef2bb8e9f6dfc69010a293dff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import hasRole from './permission/hasRole'
import hasPermi from './permission/hasPermi'
import dialogDrag from './dialog/drag'
 
const install = function(Vue) {
  Vue.directive('hasRole', hasRole)
  Vue.directive('hasPermi', hasPermi)
  Vue.directive('dialogDrag', dialogDrag)
}
 
if (window.Vue) {
  window['hasRole'] = hasRole
  window['hasPermi'] = hasPermi
  window['dialogDrag'] = dialogDrag
  Vue.use(install); // eslint-disable-line
}
 
export default install