mooho-base-admin-plus 0.4.0 → 0.4.3
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.
- package/dist/mooho-base-admin-plus.min.esm.js +16 -32
- package/dist/mooho-base-admin-plus.min.js +6 -7
- package/dist/setting.js +2 -15
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/public/setting.js +2 -15
- package/src/components/view/column-edit.vue +1 -1
- package/src/components/view/filter-edit.vue +1 -1
- package/src/components/view/view-table.vue +0 -1
- package/src/index.js +2 -2
- package/src/layouts/basic-layout/header-breadcrumb/index.vue +4 -4
- package/src/pages/system/rolePropertyEdit.vue +1 -1
- package/src/setting.js +1 -14
- package/src/store/modules/admin/modules/account.js +3 -4
- package/src/store/modules/admin/modules/i18n.js +2 -18
- package/test/main.js +1 -1
- package/src/layouts/basic-layout/i18n.js +0 -50
|
@@ -1147,18 +1147,7 @@ const Setting = {
|
|
|
1147
1147
|
i18n: {
|
|
1148
1148
|
default: "zh-CN",
|
|
1149
1149
|
auto: false,
|
|
1150
|
-
refresh: false
|
|
1151
|
-
list: [
|
|
1152
|
-
{
|
|
1153
|
-
locale: "zh-CN",
|
|
1154
|
-
language: "\u7B80\u4F53\u4E2D\u6587"
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
locale: "en-US",
|
|
1158
|
-
language: "English"
|
|
1159
|
-
}
|
|
1160
|
-
],
|
|
1161
|
-
remote: false
|
|
1150
|
+
refresh: false
|
|
1162
1151
|
},
|
|
1163
1152
|
lodop: {
|
|
1164
1153
|
name: "\u5357\u4EAC\u6469\u8D6B\u4FE1\u606F\u6280\u672F\u6709\u9650\u516C\u53F8",
|
|
@@ -12221,12 +12210,11 @@ var account = {
|
|
|
12221
12210
|
}
|
|
12222
12211
|
if (confirm2) {
|
|
12223
12212
|
Swal.fire({
|
|
12224
|
-
title: "
|
|
12213
|
+
title: window.$t("Front_Msg_Sure_To_Logout"),
|
|
12225
12214
|
icon: "question",
|
|
12226
12215
|
showCancelButton: true,
|
|
12227
|
-
confirmButtonText: "
|
|
12228
|
-
|
|
12229
|
-
cancelButtonText: "\u53D6\u6D88 Cancel"
|
|
12216
|
+
confirmButtonText: window.$t("Front_Btn_OK"),
|
|
12217
|
+
cancelButtonText: window.$t("Front_Btn_Cancel")
|
|
12230
12218
|
}).then((result2) => {
|
|
12231
12219
|
if (result2.value) {
|
|
12232
12220
|
logout();
|
|
@@ -18124,7 +18112,7 @@ var i18n = {
|
|
|
18124
18112
|
});
|
|
18125
18113
|
}
|
|
18126
18114
|
},
|
|
18127
|
-
async load({ state }) {
|
|
18115
|
+
async load({ state }, app) {
|
|
18128
18116
|
let locale2;
|
|
18129
18117
|
const db2 = util$2.db.get(
|
|
18130
18118
|
pathInit({
|
|
@@ -18151,7 +18139,7 @@ var i18n = {
|
|
|
18151
18139
|
db2.set(savedLocaleKey, locale2).write();
|
|
18152
18140
|
}
|
|
18153
18141
|
state.locale = locale2;
|
|
18154
|
-
i18n
|
|
18142
|
+
app.config.globalProperties.$i18n.locale = locale2;
|
|
18155
18143
|
const ViewUIPlusLocale = { "../../../../i18n/locale/en-US.js": __glob_5_0, "../../../../i18n/locale/zh-CN.js": __glob_5_1 };
|
|
18156
18144
|
let res2 = await i18nTextApi.getAll();
|
|
18157
18145
|
state.languages = {};
|
|
@@ -26069,8 +26057,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26069
26057
|
columns: $options.parpamColumns,
|
|
26070
26058
|
data: $data.params,
|
|
26071
26059
|
stripe: "",
|
|
26072
|
-
size: "small"
|
|
26073
|
-
"no-data-text": "\u6682\u65E0\u6570\u636E..."
|
|
26060
|
+
size: "small"
|
|
26074
26061
|
}, {
|
|
26075
26062
|
command: withCtx(({ row, index: index2 }) => [
|
|
26076
26063
|
createVNode$1(_component_Button, {
|
|
@@ -28099,8 +28086,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28099
28086
|
columns: $data.parpamColumns,
|
|
28100
28087
|
data: $data.params,
|
|
28101
28088
|
stripe: "",
|
|
28102
|
-
size: "small"
|
|
28103
|
-
"no-data-text": "\u6682\u65E0\u6570\u636E..."
|
|
28089
|
+
size: "small"
|
|
28104
28090
|
}, {
|
|
28105
28091
|
command: withCtx(({ index: index2 }) => [
|
|
28106
28092
|
createVNode$1(_component_Button, {
|
|
@@ -35267,8 +35253,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35267
35253
|
columns: $data.parpamColumns,
|
|
35268
35254
|
data: $data.params,
|
|
35269
35255
|
stripe: "",
|
|
35270
|
-
size: "small"
|
|
35271
|
-
"no-data-text": "\u6682\u65E0\u6570\u636E..."
|
|
35256
|
+
size: "small"
|
|
35272
35257
|
}, {
|
|
35273
35258
|
command: withCtx(({ index: index2 }) => [
|
|
35274
35259
|
createVNode$1(_component_Button, {
|
|
@@ -39144,7 +39129,6 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39144
39129
|
"show-summary": $data.tableView.showSummary,
|
|
39145
39130
|
"summary-method": $props.summaryMethod,
|
|
39146
39131
|
"page-size-opts": $props.pageSizeOpts,
|
|
39147
|
-
"no-data-text": "\u6682\u65E0\u6570\u636E...",
|
|
39148
39132
|
onOnColumnWidthResize: $options.columnWidthResize,
|
|
39149
39133
|
onOnSortChange: $options.sortChange,
|
|
39150
39134
|
onOnSelectionChange: $options.onSelectionChange,
|
|
@@ -39626,7 +39610,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39626
39610
|
], 2)
|
|
39627
39611
|
], 2);
|
|
39628
39612
|
}
|
|
39629
|
-
var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-
|
|
39613
|
+
var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-dea04f24"]]);
|
|
39630
39614
|
const _sfc_main$p = {
|
|
39631
39615
|
mixins: [mixinPage],
|
|
39632
39616
|
components: { columnSelect, columnEdit },
|
|
@@ -49081,14 +49065,14 @@ const _sfc_main$a = {
|
|
|
49081
49065
|
}
|
|
49082
49066
|
return newItems;
|
|
49083
49067
|
},
|
|
49084
|
-
title() {
|
|
49085
|
-
return Setting.info.title;
|
|
49086
|
-
},
|
|
49087
49068
|
topItem() {
|
|
49088
|
-
return
|
|
49069
|
+
return this.header.find((item) => item.name === this.headerName);
|
|
49089
49070
|
},
|
|
49090
49071
|
allSiderMenu() {
|
|
49091
49072
|
return flattenSiderMenu(this.menuSider, []);
|
|
49073
|
+
},
|
|
49074
|
+
title() {
|
|
49075
|
+
return Setting.layout.showI18n ? this.$t("Front_Label_Setting_Info_Title") : Setting.info.title;
|
|
49092
49076
|
}
|
|
49093
49077
|
},
|
|
49094
49078
|
data() {
|
|
@@ -121336,8 +121320,8 @@ const pages = {};
|
|
|
121336
121320
|
Object.keys(files).forEach((key) => {
|
|
121337
121321
|
pages[key.replace(/(\.\/pages\/)/g, "")] = files[key].default;
|
|
121338
121322
|
});
|
|
121339
|
-
const created = async (
|
|
121340
|
-
await store.dispatch("admin/i18n/load",
|
|
121323
|
+
const created = async (app) => {
|
|
121324
|
+
await store.dispatch("admin/i18n/load", app);
|
|
121341
121325
|
store.commit("admin/menu/setHeader", menuHeader);
|
|
121342
121326
|
store.dispatch("admin/account/load");
|
|
121343
121327
|
store.dispatch("admin/layout/listenFullscreen");
|