|
|
@ -1,17 +1,20 @@
|
|
|
|
import hasRole from './permission/hasRole'
|
|
|
|
import hasRole from './permission/hasRole'
|
|
|
|
import hasPermi from './permission/hasPermi'
|
|
|
|
import hasPermi from './permission/hasPermi'
|
|
|
|
import dialogDrag from './dialog/drag'
|
|
|
|
import dialogDrag from './dialog/drag'
|
|
|
|
|
|
|
|
import dialogDragWidth from './dialog/dragWidth'
|
|
|
|
|
|
|
|
import dialogDragHeight from './dialog/dragHeight'
|
|
|
|
|
|
|
|
|
|
|
|
const install = function(Vue) {
|
|
|
|
const install = function(Vue) {
|
|
|
|
Vue.directive('hasRole', hasRole)
|
|
|
|
Vue.directive('hasRole', hasRole)
|
|
|
|
Vue.directive('hasPermi', hasPermi)
|
|
|
|
Vue.directive('hasPermi', hasPermi)
|
|
|
|
Vue.directive('dialogDrag', dialogDrag)
|
|
|
|
Vue.directive('dialogDrag', dialogDrag)
|
|
|
|
|
|
|
|
Vue.directive('dialogDragWidth', dialogDragWidth)
|
|
|
|
|
|
|
|
Vue.directive('dialogDragHeight', dialogDragHeight)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (window.Vue) {
|
|
|
|
if (window.Vue) {
|
|
|
|
window['hasRole'] = hasRole
|
|
|
|
window['hasRole'] = hasRole
|
|
|
|
window['hasPermi'] = hasPermi
|
|
|
|
window['hasPermi'] = hasPermi
|
|
|
|
window['dialogDrag'] = dialogDrag
|
|
|
|
|
|
|
|
Vue.use(install); // eslint-disable-line
|
|
|
|
Vue.use(install); // eslint-disable-line
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|