This repository has been archived on 2025-02-25. You can view files and clone it, but cannot push or open issues or pull requests.
2021-07-09 09:12:29 +00:00
|
|
|
import hasRole from './permission/hasRole'
|
|
|
|
import hasPermi from './permission/hasPermi'
|
|
|
|
import dialogDrag from './dialog/drag'
|
2021-08-20 09:45:25 +00:00
|
|
|
import dialogDragWidth from './dialog/dragWidth'
|
2021-08-20 09:57:44 +00:00
|
|
|
import dialogDragHeight from './dialog/dragHeight'
|
2019-10-08 01:14:38 +00:00
|
|
|
|
|
|
|
const install = function(Vue) {
|
|
|
|
Vue.directive('hasRole', hasRole)
|
|
|
|
Vue.directive('hasPermi', hasPermi)
|
2021-07-09 09:12:29 +00:00
|
|
|
Vue.directive('dialogDrag', dialogDrag)
|
2021-08-20 09:45:25 +00:00
|
|
|
Vue.directive('dialogDragWidth', dialogDragWidth)
|
2021-08-20 09:57:44 +00:00
|
|
|
Vue.directive('dialogDragHeight', dialogDragHeight)
|
2019-10-08 01:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (window.Vue) {
|
|
|
|
window['hasRole'] = hasRole
|
|
|
|
window['hasPermi'] = hasPermi
|
|
|
|
Vue.use(install); // eslint-disable-line
|
|
|
|
}
|
|
|
|
|
|
|
|
export default install
|