-
-
diff --git a/src/local/index.js b/src/local/index.js
index 2fd0f73bf1f0b1d80f70e74f9d848cdd277fad87..5cd2aea8a5c3e12acb13f00fe01c87e7427ebb06 100644
--- a/src/local/index.js
+++ b/src/local/index.js
@@ -1,4 +1,5 @@
import selectLang from './select';
+import TableLang from './table';
const zh_CN = {};
const en_US = {};
@@ -12,5 +13,6 @@ function formatLang(langObject) {
}
formatLang(selectLang);
+formatLang(TableLang);
export { en_US, zh_CN };
diff --git a/src/local/table.js b/src/local/table.js
new file mode 100644
index 0000000000000000000000000000000000000000..875567c13dfb0fe662c1e528e37a134c3c13f20d
--- /dev/null
+++ b/src/local/table.js
@@ -0,0 +1,7 @@
+export default {
+ 'table.operation': ['操作', 'Operation'],
+ 'table.moreSearch': ['更多查询', 'More Search'],
+ 'table.reset': ['重置', 'Reset'],
+ 'table.add': ['新增', 'Add'],
+ 'table.search': ['查询', 'Search'],
+};
diff --git a/src/pages/frame/components/setting/Setting.vue b/src/pages/frame/components/setting/Setting.vue
index fd5a45d21e8170886e3b51ae391b34b45a8811a0..3825e7c0812eb0b87d7581f2846a6ed6a1c05b4f 100644
--- a/src/pages/frame/components/setting/Setting.vue
+++ b/src/pages/frame/components/setting/Setting.vue
@@ -8,7 +8,7 @@
setTheme({ ...theme, mode: values[0] })"
+ @change="(values) => setTheme({ ...theme, mode: values[0] })"
:default-values="[theme.mode]"
>
- setLayout(values[0])" :default-values="[layout]">
+ setLayout(values[0])" :default-values="[layout]">
setAnimate({ ...animate, disabled: val })"
+ @change="(val) => setAnimate({ ...animate, disabled: val })"
/>
@@ -113,7 +113,7 @@
setAnimate({ ...animate, name: val })"
+ @change="(val) => setAnimate({ ...animate, name: val })"
class="select-item"
size="small"
slot="actions"
@@ -128,7 +128,7 @@
setAnimate({ ...animate, direction: val })"
+ @change="(val) => setAnimate({ ...animate, direction: val })"
class="select-item"
size="small"
slot="actions"
@@ -238,7 +238,7 @@ export default {
},
computed: {
directions() {
- return this.animates.find(item => item.name == this.animate.name).directions;
+ return this.animates.find((item) => item.name == this.animate.name).directions;
},
...mapState('settingModule', [
'theme',
@@ -254,7 +254,7 @@ export default {
]),
},
watch: {
- 'animate.name': function(val) {
+ 'animate.name': function (val) {
this.setAnimate({ name: val, direction: this.directions[0] });
},
},
@@ -282,7 +282,7 @@ export default {
let config = {};
let mySetting = this.$store.state.settingModule;
let dftSetting = local ? settingConfig : settingConfig;
- Object.keys(mySetting).forEach(key => {
+ Object.keys(mySetting).forEach((key) => {
const dftValue = dftSetting[key],
myValue = mySetting[key];
if (dftValue != undefined && !fastEqual(dftValue, myValue)) {
@@ -309,6 +309,7 @@ export default {