vxe-table.js 1.64 KB
/*
 * @Description  :挂载js方法
 * @Autor        : miaofang
 * @LastEditTime : 2023-05-17 14:35:06
 */
import Vue from 'vue'
import XEUtils from 'xe-utils'
import VXETablePluginElement from 'vxe-table-plugin-element'
import {
  VXETable,
  Icon,
  Header,
  Column,
  Table,
  Colgroup,
  Input,
  Select,
  Edit,
  Keyboard,
  Toolbar,
  Tooltip
} from 'vxe-table'

import zhCNLocat from 'vxe-table/lib/locale/lang/zh-CN'

import 'vxe-table-plugin-element/dist/style.css'
// 导入默认的国际化(如果项目中使用多语言,则应该导入到 vue-i18n 中)

VXETable.setup({
  i18n: (key, args) => XEUtils.toFormatString(XEUtils.get(zhCNLocat, key), args)
})

import $deepCopy from '../utils/tool'

Vue.use($deepCopy)

import $dealArrChildren from '../utils/tool'

Vue.use($dealArrChildren)

import $filterNullObj from '../utils/tool'

Vue.use($filterNullObj)

import $getNodeRoute from '../utils/tool'

Vue.use($getNodeRoute)

import $dealArrDisabled from '../utils/tool'

Vue.use($dealArrDisabled)

import $dealArrNotDisabled from '../utils/tool'

Vue.use($dealArrNotDisabled)

import $treeConvertToArr from '../utils/tool'

Vue.use($treeConvertToArr)

import $setChildArr from '../utils/tool'

Vue.use($setChildArr)

import $findParent from '../utils/tool'

Vue.use($findParent)

import $findChildren from '../utils/tool'

Vue.use($findChildren)

import $getLocalStorage from '../utils/tool'

Vue.use($getLocalStorage)


Vue.use(Icon)

Vue.use(Header)
Vue.use(Toolbar)
Vue.use(Tooltip)

Vue.use(Column)

Vue.use(Colgroup)

Vue.use(Input)

Vue.use(Edit)
Vue.use(Select)

Vue.use(Keyboard)

Vue.use(Table)
Vue.use(VXETable)

VXETable.use(VXETablePluginElement)