2023-11-27 08:29:42 +00:00
|
|
|
import hasRole from './permission/hasRole'
|
|
|
|
|
import hasPermi from './permission/hasPermi'
|
|
|
|
|
import dialogDrag from './dialog/drag'
|
|
|
|
|
import dialogDragWidth from './dialog/dragWidth'
|
|
|
|
|
import dialogDragHeight from './dialog/dragHeight'
|
2024-05-24 01:48:56 +00:00
|
|
|
import dialogFullScreen from './dialog/fullScreen'
|
2023-11-27 08:29:42 +00:00
|
|
|
import clipboard from './module/clipboard'
|
2024-04-22 05:33:25 +00:00
|
|
|
import elSelectLoadmore from './ext/elSelectLoadmore'
|
2024-05-25 09:36:22 +00:00
|
|
|
import elTableResizeHeight from './table/resizeHeight'
|
2023-11-27 08:29:42 +00:00
|
|
|
|
|
|
|
|
const install = function(Vue) {
|
|
|
|
|
Vue.directive('hasRole', hasRole)
|
|
|
|
|
Vue.directive('hasPermi', hasPermi)
|
|
|
|
|
Vue.directive('clipboard', clipboard)
|
|
|
|
|
Vue.directive('dialogDrag', dialogDrag)
|
|
|
|
|
Vue.directive('dialogDragWidth', dialogDragWidth)
|
|
|
|
|
Vue.directive('dialogDragHeight', dialogDragHeight)
|
2024-05-24 01:48:56 +00:00
|
|
|
Vue.directive('dialogFullScreen', dialogFullScreen)
|
2024-05-26 00:45:32 +00:00
|
|
|
Vue.directive('doTableResizeHeight', elTableResizeHeight)
|
|
|
|
|
// v-doTableResizeHeight="{topSearchFormRef: 'queryForm'}"
|
2024-05-24 01:48:56 +00:00
|
|
|
|
2024-04-22 05:33:25 +00:00
|
|
|
Vue.directive('el-select-loadmore', elSelectLoadmore);
|
2023-11-27 08:29:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (window.Vue) {
|
|
|
|
|
window['hasRole'] = hasRole
|
|
|
|
|
window['hasPermi'] = hasPermi
|
|
|
|
|
Vue.use(install); // eslint-disable-line
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default install
|