forked from liweijie/education
全局自适应以及表格横向拖动优化
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import hasRole from './permission/hasRole'
|
||||
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'
|
||||
import clipboard from './module/clipboard'
|
||||
import tableDrag from './tableDrag'
|
||||
|
||||
const install = function(Vue) {
|
||||
Vue.directive('hasRole', hasRole)
|
||||
@@ -12,6 +13,8 @@ const install = function(Vue) {
|
||||
Vue.directive('dialogDrag', dialogDrag)
|
||||
Vue.directive('dialogDragWidth', dialogDragWidth)
|
||||
Vue.directive('dialogDragHeight', dialogDragHeight)
|
||||
// 全局表格横向拖拽滚动:通过 document 事件委托自动作用于所有 el-table
|
||||
tableDrag()
|
||||
}
|
||||
|
||||
if (window.Vue) {
|
||||
|
||||
Reference in New Issue
Block a user