|
|
@ -2,12 +2,14 @@ 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 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('dialogDragWidth', dialogDragWidth)
|
|
|
|
|
|
|
|
Vue.directive('dialogDragHeight', dialogDragHeight)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (window.Vue) {
|
|
|
|
if (window.Vue) {
|
|
|
|