kz-ui-base 1.0.155 → 1.0.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -241,9 +241,6 @@ export default {
241
241
  console.log("editDialog");
242
242
  },
243
243
  methods: {
244
- t(key) {
245
- return this.$t(key) || key
246
- },
247
244
  //当前绑定实体字段值变更事件
248
245
  onChangeEvent(args) {
249
246
  this.$emit("change", args);
@@ -77,9 +77,6 @@ export default {
77
77
  }
78
78
  },
79
79
  methods: {
80
- t(key) {
81
- return this.$t(key) || key
82
- },
83
80
  getLabelByKey(key) {
84
81
  const labelMap = {
85
82
  configName: this.t('config.config_name'),
@@ -8,7 +8,7 @@
8
8
  opMenu.permission,
9
9
  `${moduleName}:${serviceName}:${opMenu.permission}`,
10
10
  ]">
11
- {{ opMenu.text }}
11
+ {{ opMenu.text || t(opMenu.i18nKey) }}
12
12
  </el-button>
13
13
  </el-col>
14
14
  </template>
@@ -20,7 +20,7 @@
20
20
  opMenu.permission,
21
21
  `${moduleName}:${serviceName}:${opMenu.permission}`,
22
22
  ]">
23
- {{ opMenu.text }}
23
+ {{ opMenu.text || t(opMenu.i18nKey) }}
24
24
  </el-button>
25
25
  </el-col>
26
26
  </template>
@@ -69,7 +69,7 @@ export default {
69
69
  default:()=>[
70
70
  {
71
71
  visible: true,
72
- text: "添加",
72
+ i18nKey: "opMenus.add",
73
73
  icon: "el-icon-plus",
74
74
  permission: "add",
75
75
  name: "add",
@@ -79,7 +79,7 @@ export default {
79
79
  },
80
80
  {
81
81
  visible: true,
82
- text: "修改",
82
+ i18nKey: "opMenus.update",
83
83
  icon: "el-icon-edit",
84
84
  permission: "edit",
85
85
  name: "update",
@@ -89,7 +89,7 @@ export default {
89
89
  },
90
90
  {
91
91
  visible: true,
92
- text: "删除",
92
+ i18nKey: "opMenus.delete",
93
93
  icon: "el-icon-delete",
94
94
  permission: "remove",
95
95
  name: "delete",
@@ -1294,7 +1294,7 @@ import { getToken } from "@utils/auth";
1294
1294
  import _ from "lodash";
1295
1295
  import KZ_DropDownList from "@srcComponents/customForm/dropDownList.vue";
1296
1296
  import KZ_TextBox from "@srcComponents/customForm/textBox.vue";
1297
- import EditDialog from "@components/base/dialog/editDialog.vue";
1297
+ import EditDialog from "./common/src/components/base/dialog/editDialog.vue";
1298
1298
  import KZ_CheckBox from "@srcComponents/customForm/checkBox.vue";
1299
1299
  import KZ_DatePicker from "@srcComponents/customForm/datePicker.vue";
1300
1300
  import KZ_Switch from "@srcComponents/customForm/switch.vue";
@@ -1305,7 +1305,7 @@ import KZ_Radio from "@srcComponents/customForm/radio.vue";
1305
1305
  import UploadDialog from "@srcComponents/customForm/uploadDialog.vue";
1306
1306
  import PrintDialog from "@srcComponents/customForm/printDialog.vue";
1307
1307
  import KZ_Lookup from "@srcComponents/customForm/lookup.vue";
1308
- import MultiLanguageDialog from "@srcComponents/base/dialog/MultiLanguageDialog.vue";
1308
+ import MultiLanguageDialog from ".components/base/dialog/MultiLanguageDialog.vue";
1309
1309
  import { batchGetTranslation } from "@srcComponents/base/dialog/config.js";
1310
1310
  @Component({
1311
1311
  components: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kz-ui-base",
3
- "version": "1.0.155",
3
+ "version": "1.0.156",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {