mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-21 14:13:36 +08:00
perf: dict perfect
This commit is contained in:
@@ -58,6 +58,9 @@ VXETable.setup({
|
||||
// 鼠标移到行是否要高亮显示
|
||||
highlightHoverRow: true,
|
||||
},
|
||||
input: {
|
||||
clearable: true,
|
||||
},
|
||||
// 对组件内置的提示语进行国际化翻译
|
||||
i18n: (key, args) => i18n.global.t(key, args),
|
||||
// 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
|
||||
@@ -66,6 +69,9 @@ VXETable.setup({
|
||||
if (key && key.indexOf("message.") > -1) {
|
||||
return i18n.global.t(key, args);
|
||||
}
|
||||
if (key && key.indexOf("el.") > -1) {
|
||||
return i18n.global.t(key, args);
|
||||
}
|
||||
return key;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user