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'
|
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)
|
2019-10-08 01:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (window.Vue) {
|
|
|
|
window['hasRole'] = hasRole
|
|
|
|
window['hasPermi'] = hasPermi
|
2021-07-09 09:12:29 +00:00
|
|
|
window['dialogDrag'] = dialogDrag
|
2019-10-08 01:14:38 +00:00
|
|
|
Vue.use(install); // eslint-disable-line
|
|
|
|
}
|
|
|
|
|
|
|
|
export default install
|