vxe-table.js 809 Bytes
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)
})

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)