/
config.ts
106 lines (102 loc) · 2.57 KB
/
config.ts
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// 表格中使用到的国际化文本信息
export default function () {
const _this = this;
// order
_this['order-text'] = {
'zh-cn': '序号',
'zh-tw': '序號',
'en-us': 'order'
};
// ajax page
_this['first-page'] = {
'zh-cn': '首页',
'zh-tw': '首頁',
'en-us': 'first'
};
_this['previous-page'] = {
'zh-cn': '上一页',
'zh-tw': '上一頁',
'en-us': 'previous'
};
_this['next-page'] = {
'zh-cn': '下一页',
'zh-tw': '下一頁',
'en-us': 'next'
};
_this['last-page'] = {
'zh-cn': '尾页',
'zh-tw': '尾頁',
'en-us': 'last'
};
// page-info 会传入五个值
// 0: 当前页从多少条开始显示
// 1: 当前页到多少条结束显示
// 2: 总条数
// 3: 当前页
// 4: 总页数
_this['page-info'] = {
'zh-cn': '此页显示 {0}-{1}<span class="page-info-totals"> 共{2}条</span>',
'zh-tw': '此頁顯示 {0}-{1}<span class="page-info-totals"> 共{2}條</span>',
'en-us': 'this page show {0}-{1}<span class="page-info-totals"> count {2}</span>'
};
_this['checked-info'] = {
'zh-cn': '已选 {0} 条',
'zh-tw': '已選 {0} 條',
'en-us': 'selected {0}'
};
_this['goto-first-text'] = {
'zh-cn': '跳转至',
'zh-tw': '跳轉至',
'en-us': 'goto'
};
_this['goto-last-text'] = {
'zh-cn': '页',
'zh-tw': '頁',
'en-us': 'page'
};
_this['refresh'] = {
'zh-cn': '重新加载',
'zh-tw': '重新加載',
'en-us': 'Refresh'
};
_this['export'] = {
'zh-cn': '导出',
'zh-tw': '導出',
'en-us': 'Export'
};
_this['export-checked'] = {
'zh-cn': '导出选中项',
'zh-tw': '導出選中項',
'en-us': 'Export selected'
};
_this['config'] = {
'zh-cn': '配置表',
'zh-tw': '配置表',
'en-us': 'Setting Grid'
};
_this['print'] = {
'zh-cn': '打印',
'zh-tw': '打印',
'en-us': 'Print'
};
_this['copy'] = {
'zh-cn': '复制',
'zh-tw': '復制',
'en-us': 'Copy'
};
_this['hide-row'] = {
'zh-cn': '隐藏行',
'zh-tw': '隱藏行',
'en-us': 'Hidden Row'
};
_this['ok'] = {
'zh-cn': '确定',
'zh-tw': '確定',
'en-us': 'OK'
};
_this['reset'] = {
'zh-cn': '重置',
'zh-tw': '重置',
'en-us': 'Reset'
};
};