vxe-table.js
809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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)