提交 | 用户 | 时间
|
0ca254
|
1 |
import hasRole from './permission/hasRole' |
A |
2 |
import hasPermi from './permission/hasPermi' |
|
3 |
import dialogDrag from './dialog/drag' |
|
4 |
import dialogDragWidth from './dialog/dragWidth' |
|
5 |
import dialogDragHeight from './dialog/dragHeight' |
|
6 |
import clipboard from './module/clipboard' |
|
7 |
|
|
8 |
const install = function(Vue) { |
|
9 |
Vue.directive('hasRole', hasRole) |
|
10 |
Vue.directive('hasPermi', hasPermi) |
|
11 |
Vue.directive('clipboard', clipboard) |
|
12 |
Vue.directive('dialogDrag', dialogDrag) |
|
13 |
Vue.directive('dialogDragWidth', dialogDragWidth) |
|
14 |
Vue.directive('dialogDragHeight', dialogDragHeight) |
|
15 |
} |
|
16 |
|
|
17 |
if (window.Vue) { |
|
18 |
window['hasRole'] = hasRole |
|
19 |
window['hasPermi'] = hasPermi |
|
20 |
Vue.use(install); // eslint-disable-line |
|
21 |
} |
|
22 |
|
|
23 |
export default install |