index.js 402 Bytes
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2
import hasRole from './hasRole'
import hasPermi from './hasPermi'
3
import unContent from './unContent'
耿迪迪's avatar
耿迪迪 committed
4 5 6 7

const install = function(Vue) {
  Vue.directive('hasRole', hasRole)
  Vue.directive('hasPermi', hasPermi)
8
  Vue.directive('un-content', unContent)
耿迪迪's avatar
耿迪迪 committed
9 10 11 12 13 14 15 16 17
}

if (window.Vue) {
  window['hasRole'] = hasRole
  window['hasPermi'] = hasPermi
  Vue.use(install); // eslint-disable-line
}

export default install