bmp-layout 0.0.25-beta.7 → 0.0.25-beta.9
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/bmp-layout.es.js +206 -18
- package/bmp-layout.umd.js +2 -2
- package/package.json +1 -1
- package/style.css +1 -1
- package/svgs//344/270/211/344/270/252/346/235/241.svg +5 -0
- package/zh-TW-DYC8NCr4.mjs +101 -0
package/bmp-layout.es.js
CHANGED
|
@@ -933,7 +933,7 @@ const useAppStore = defineStore("layout-app", {
|
|
|
933
933
|
// 折叠图标
|
|
934
934
|
search: false,
|
|
935
935
|
// 搜索图标
|
|
936
|
-
locale:
|
|
936
|
+
locale: true,
|
|
937
937
|
// 多语言图标
|
|
938
938
|
setting: true,
|
|
939
939
|
// 偏好设置
|
|
@@ -1224,20 +1224,20 @@ function buildChildPaths(router) {
|
|
|
1224
1224
|
function prependPathToRoutes(routes, parentPath) {
|
|
1225
1225
|
if (!parentPath || !routes)
|
|
1226
1226
|
return routes;
|
|
1227
|
+
const base = parentPath === "/" ? "" : parentPath.replace(/\/$/, "");
|
|
1227
1228
|
return routes.map((route) => {
|
|
1228
1229
|
let newPath;
|
|
1229
1230
|
if (!route.path) {
|
|
1230
|
-
newPath =
|
|
1231
|
+
newPath = base || "/";
|
|
1231
1232
|
} else {
|
|
1232
|
-
newPath =
|
|
1233
|
+
newPath = base + (route.path.startsWith("/") ? route.path : `/${route.path}`);
|
|
1233
1234
|
}
|
|
1234
1235
|
if (newPath.length > 1 && newPath.endsWith("/")) {
|
|
1235
1236
|
newPath = newPath.slice(0, -1);
|
|
1236
1237
|
}
|
|
1237
1238
|
return {
|
|
1238
1239
|
...route,
|
|
1239
|
-
path: newPath
|
|
1240
|
-
children: route.children ? prependPathToRoutes(route.children, newPath) : route.children
|
|
1240
|
+
path: newPath
|
|
1241
1241
|
};
|
|
1242
1242
|
});
|
|
1243
1243
|
}
|
|
@@ -8744,7 +8744,8 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
|
|
|
8744
8744
|
router.push(normalizedPath);
|
|
8745
8745
|
} else {
|
|
8746
8746
|
const currentOrigin = window.location.origin;
|
|
8747
|
-
const
|
|
8747
|
+
const rawModulePath = ((_d = (_c = productList.value[activeProductIndex.value]) == null ? void 0 : _c.children[activeModuleIndex.value]) == null ? void 0 : _d.modulePath) || "";
|
|
8748
|
+
const modulePath = rawModulePath === "/" ? "" : rawModulePath;
|
|
8748
8749
|
const hasModulePrefix = modulePath && (fullPath === modulePath || fullPath.startsWith(modulePath + "/"));
|
|
8749
8750
|
const finalPath = hasModulePrefix ? normalizedPath : `${modulePath}${normalizedPath}`;
|
|
8750
8751
|
const targetUrl = `${currentOrigin}${finalPath.startsWith("/") ? finalPath : `/${finalPath}`}`;
|
|
@@ -9003,7 +9004,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
|
|
|
9003
9004
|
};
|
|
9004
9005
|
}
|
|
9005
9006
|
});
|
|
9006
|
-
const ProductServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
9007
|
+
const ProductServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-f9a0a896"]]);
|
|
9007
9008
|
const _sfc_main$q = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
|
|
9008
9009
|
__name: "Logo",
|
|
9009
9010
|
emits: ["logo-click"],
|
|
@@ -9830,10 +9831,189 @@ var English = {
|
|
|
9830
9831
|
}
|
|
9831
9832
|
}
|
|
9832
9833
|
};
|
|
9834
|
+
var zhTw = {
|
|
9835
|
+
name: "zh-tw",
|
|
9836
|
+
el: {
|
|
9837
|
+
breadcrumb: {
|
|
9838
|
+
label: "面包屑"
|
|
9839
|
+
},
|
|
9840
|
+
colorpicker: {
|
|
9841
|
+
confirm: "確認",
|
|
9842
|
+
clear: "清空",
|
|
9843
|
+
defaultLabel: "色彩選擇器",
|
|
9844
|
+
description: "目前色彩為 {color}。按一下 Enter 以選擇新色彩。",
|
|
9845
|
+
alphaLabel: "選擇透明度的值"
|
|
9846
|
+
},
|
|
9847
|
+
datepicker: {
|
|
9848
|
+
now: "現在",
|
|
9849
|
+
today: "今天",
|
|
9850
|
+
cancel: "取消",
|
|
9851
|
+
clear: "清空",
|
|
9852
|
+
confirm: "確認",
|
|
9853
|
+
dateTablePrompt: "使用方向鍵與 Enter 鍵以選擇日期",
|
|
9854
|
+
monthTablePrompt: "使用方向鍵與 Enter 鍵以選擇月份",
|
|
9855
|
+
yearTablePrompt: "使用方向鍵與 Enter 鍵以選擇年份",
|
|
9856
|
+
selectedDate: "已選日期",
|
|
9857
|
+
selectDate: "選擇日期",
|
|
9858
|
+
selectTime: "選擇時間",
|
|
9859
|
+
startDate: "開始日期",
|
|
9860
|
+
startTime: "開始時間",
|
|
9861
|
+
endDate: "結束日期",
|
|
9862
|
+
endTime: "結束時間",
|
|
9863
|
+
prevYear: "前一年",
|
|
9864
|
+
nextYear: "後一年",
|
|
9865
|
+
prevMonth: "上個月",
|
|
9866
|
+
nextMonth: "下個月",
|
|
9867
|
+
year: "年",
|
|
9868
|
+
month1: "1 月",
|
|
9869
|
+
month2: "2 月",
|
|
9870
|
+
month3: "3 月",
|
|
9871
|
+
month4: "4 月",
|
|
9872
|
+
month5: "5 月",
|
|
9873
|
+
month6: "6 月",
|
|
9874
|
+
month7: "7 月",
|
|
9875
|
+
month8: "8 月",
|
|
9876
|
+
month9: "9 月",
|
|
9877
|
+
month10: "10 月",
|
|
9878
|
+
month11: "11 月",
|
|
9879
|
+
month12: "12 月",
|
|
9880
|
+
weeks: {
|
|
9881
|
+
sun: "日",
|
|
9882
|
+
mon: "一",
|
|
9883
|
+
tue: "二",
|
|
9884
|
+
wed: "三",
|
|
9885
|
+
thu: "四",
|
|
9886
|
+
fri: "五",
|
|
9887
|
+
sat: "六"
|
|
9888
|
+
},
|
|
9889
|
+
weeksFull: {
|
|
9890
|
+
sun: "星期日",
|
|
9891
|
+
mon: "星期一",
|
|
9892
|
+
tue: "星期二",
|
|
9893
|
+
wed: "星期三",
|
|
9894
|
+
thu: "星期四",
|
|
9895
|
+
fri: "星期五",
|
|
9896
|
+
sat: "星期六"
|
|
9897
|
+
},
|
|
9898
|
+
months: {
|
|
9899
|
+
jan: "一月",
|
|
9900
|
+
feb: "二月",
|
|
9901
|
+
mar: "三月",
|
|
9902
|
+
apr: "四月",
|
|
9903
|
+
may: "五月",
|
|
9904
|
+
jun: "六月",
|
|
9905
|
+
jul: "七月",
|
|
9906
|
+
aug: "八月",
|
|
9907
|
+
sep: "九月",
|
|
9908
|
+
oct: "十月",
|
|
9909
|
+
nov: "十一月",
|
|
9910
|
+
dec: "十二月"
|
|
9911
|
+
}
|
|
9912
|
+
},
|
|
9913
|
+
inputNumber: {
|
|
9914
|
+
decrease: "減少數值",
|
|
9915
|
+
increase: "增加數值"
|
|
9916
|
+
},
|
|
9917
|
+
select: {
|
|
9918
|
+
loading: "載入中",
|
|
9919
|
+
noMatch: "無相符資料",
|
|
9920
|
+
noData: "無資料",
|
|
9921
|
+
placeholder: "請選擇"
|
|
9922
|
+
},
|
|
9923
|
+
mention: {
|
|
9924
|
+
loading: "載入中"
|
|
9925
|
+
},
|
|
9926
|
+
dropdown: {
|
|
9927
|
+
toggleDropdown: "切換下拉選單"
|
|
9928
|
+
},
|
|
9929
|
+
cascader: {
|
|
9930
|
+
noMatch: "無相符資料",
|
|
9931
|
+
loading: "載入中",
|
|
9932
|
+
placeholder: "請選擇",
|
|
9933
|
+
noData: "無資料"
|
|
9934
|
+
},
|
|
9935
|
+
pagination: {
|
|
9936
|
+
goto: "前往",
|
|
9937
|
+
pagesize: "項/頁",
|
|
9938
|
+
total: "共 {total} 項",
|
|
9939
|
+
pageClassifier: "頁",
|
|
9940
|
+
page: "頁",
|
|
9941
|
+
prev: "上一頁",
|
|
9942
|
+
next: "下一頁",
|
|
9943
|
+
currentPage: "第 {pager} 頁",
|
|
9944
|
+
prevPages: "向前 {pager} 頁",
|
|
9945
|
+
nextPages: "向後 {pager} 頁",
|
|
9946
|
+
deprecationWarning: "偵測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊"
|
|
9947
|
+
},
|
|
9948
|
+
dialog: {
|
|
9949
|
+
close: "關閉此對話框"
|
|
9950
|
+
},
|
|
9951
|
+
drawer: {
|
|
9952
|
+
close: "關閉此對話框"
|
|
9953
|
+
},
|
|
9954
|
+
messagebox: {
|
|
9955
|
+
title: "提示",
|
|
9956
|
+
confirm: "確定",
|
|
9957
|
+
cancel: "取消",
|
|
9958
|
+
error: "輸入的資料不符合規定!",
|
|
9959
|
+
close: "關閉此對話框"
|
|
9960
|
+
},
|
|
9961
|
+
upload: {
|
|
9962
|
+
deleteTip: "按 Delete 鍵以刪除",
|
|
9963
|
+
delete: "刪除",
|
|
9964
|
+
preview: "查看圖片",
|
|
9965
|
+
continue: "繼續上傳"
|
|
9966
|
+
},
|
|
9967
|
+
slider: {
|
|
9968
|
+
defaultLabel: "滑桿介於 {min} 至 {max}",
|
|
9969
|
+
defaultRangeStartLabel: "選擇起始值",
|
|
9970
|
+
defaultRangeEndLabel: "選擇結束值"
|
|
9971
|
+
},
|
|
9972
|
+
table: {
|
|
9973
|
+
emptyText: "暫無資料",
|
|
9974
|
+
confirmFilter: "篩選",
|
|
9975
|
+
resetFilter: "重置",
|
|
9976
|
+
clearFilter: "全部",
|
|
9977
|
+
sumText: "合計"
|
|
9978
|
+
},
|
|
9979
|
+
tour: {
|
|
9980
|
+
next: "下一步",
|
|
9981
|
+
previous: "上一步",
|
|
9982
|
+
finish: "結束導覽"
|
|
9983
|
+
},
|
|
9984
|
+
tree: {
|
|
9985
|
+
emptyText: "暫無資料"
|
|
9986
|
+
},
|
|
9987
|
+
transfer: {
|
|
9988
|
+
noMatch: "無相符資料",
|
|
9989
|
+
noData: "無資料",
|
|
9990
|
+
titles: ["列表 1", "列表 2"],
|
|
9991
|
+
filterPlaceholder: "請輸入搜尋內容",
|
|
9992
|
+
noCheckedFormat: "共 {total} 項",
|
|
9993
|
+
hasCheckedFormat: "已選 {checked}/{total} 項"
|
|
9994
|
+
},
|
|
9995
|
+
image: {
|
|
9996
|
+
error: "載入失敗"
|
|
9997
|
+
},
|
|
9998
|
+
pageHeader: {
|
|
9999
|
+
title: "返回"
|
|
10000
|
+
},
|
|
10001
|
+
popconfirm: {
|
|
10002
|
+
confirmButtonText: "確認",
|
|
10003
|
+
cancelButtonText: "取消"
|
|
10004
|
+
},
|
|
10005
|
+
carousel: {
|
|
10006
|
+
leftArrow: "上一張投影片",
|
|
10007
|
+
rightArrow: "下一張投影片",
|
|
10008
|
+
indicator: "投影片切換至索引 {index}"
|
|
10009
|
+
}
|
|
10010
|
+
}
|
|
10011
|
+
};
|
|
9833
10012
|
const { wsCache } = useCache();
|
|
9834
10013
|
const elLocaleMap = {
|
|
9835
10014
|
"zh-CN": zhCn,
|
|
9836
|
-
en: English
|
|
10015
|
+
en: English,
|
|
10016
|
+
"zh-TW": zhTw
|
|
9837
10017
|
};
|
|
9838
10018
|
const useLocaleStore = defineStore("layout-locales", {
|
|
9839
10019
|
state: () => {
|
|
@@ -9848,6 +10028,10 @@ const useLocaleStore = defineStore("layout-locales", {
|
|
|
9848
10028
|
lang: "zh-CN",
|
|
9849
10029
|
name: "简体中文"
|
|
9850
10030
|
},
|
|
10031
|
+
{
|
|
10032
|
+
lang: "zh-TW",
|
|
10033
|
+
name: "繁體中文"
|
|
10034
|
+
},
|
|
9851
10035
|
{
|
|
9852
10036
|
lang: "en",
|
|
9853
10037
|
name: "English"
|
|
@@ -9903,7 +10087,7 @@ const setI18nLanguage = (locale) => {
|
|
|
9903
10087
|
const useLocale = () => {
|
|
9904
10088
|
const changeLocale = async (locale) => {
|
|
9905
10089
|
const globalI18n = i18n.global;
|
|
9906
|
-
const langModule = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../locales/en.js": () => import("./en-BLMsUBCM.mjs"), "../../locales/zh-CN.js": () => import("./zh-CN-i4M-o5m6.mjs") }), `../../locales/${locale}.js`);
|
|
10090
|
+
const langModule = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../locales/en.js": () => import("./en-BLMsUBCM.mjs"), "../../locales/zh-CN.js": () => import("./zh-CN-i4M-o5m6.mjs"), "../../locales/zh-TW.js": () => import("./zh-TW-DYC8NCr4.mjs") }), `../../locales/${locale}.js`);
|
|
9907
10091
|
globalI18n.setLocaleMessage(locale, langModule.default);
|
|
9908
10092
|
setI18nLanguage(locale);
|
|
9909
10093
|
};
|
|
@@ -9911,7 +10095,7 @@ const useLocale = () => {
|
|
|
9911
10095
|
changeLocale
|
|
9912
10096
|
};
|
|
9913
10097
|
};
|
|
9914
|
-
const _sfc_main$l = /* @__PURE__ */ Object.assign({ name: "LocaleDropdown" }, {
|
|
10098
|
+
const _sfc_main$l = /* @__PURE__ */ Object.assign({ name: "LocaleDropdown", inheritAttrs: false }, {
|
|
9915
10099
|
__name: "LocaleDropdown",
|
|
9916
10100
|
props: {
|
|
9917
10101
|
color: {
|
|
@@ -9961,12 +10145,16 @@ const _sfc_main$l = /* @__PURE__ */ Object.assign({ name: "LocaleDropdown" }, {
|
|
|
9961
10145
|
})
|
|
9962
10146
|
]),
|
|
9963
10147
|
default: withCtx(() => [
|
|
9964
|
-
|
|
9965
|
-
class: normalizeClass(
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
10148
|
+
createElementVNode("div", {
|
|
10149
|
+
class: normalizeClass(_ctx.$attrs.class)
|
|
10150
|
+
}, [
|
|
10151
|
+
createVNode(_component_Icon, {
|
|
10152
|
+
color: __props.color,
|
|
10153
|
+
size: 18,
|
|
10154
|
+
class: "!p-0",
|
|
10155
|
+
icon: "svg-icon:language"
|
|
10156
|
+
}, null, 8, ["color"])
|
|
10157
|
+
], 2)
|
|
9970
10158
|
]),
|
|
9971
10159
|
_: 1
|
|
9972
10160
|
}, 8, ["class"]);
|
|
@@ -10484,7 +10672,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
10484
10672
|
"color": iconColor.value,
|
|
10485
10673
|
"onClearCacheLogoutClick": props.onClearCacheLogoutClick
|
|
10486
10674
|
}, null) : void 0, locale.value ? createVNode(_sfc_main$l, {
|
|
10487
|
-
"class": "custom-hover",
|
|
10675
|
+
"class": "custom-hover cursor-pointer",
|
|
10488
10676
|
"color": "var(--top-header-text-color)"
|
|
10489
10677
|
}, null) : void 0, createVNode("div", {
|
|
10490
10678
|
"class": `h-12px mx-10px`,
|
|
@@ -10502,7 +10690,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
10502
10690
|
};
|
|
10503
10691
|
}
|
|
10504
10692
|
});
|
|
10505
|
-
const ToolHeader = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
10693
|
+
const ToolHeader = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-caca6e2e"]]);
|
|
10506
10694
|
const {
|
|
10507
10695
|
getPrefixCls: getPrefixCls$1
|
|
10508
10696
|
} = useDesign();
|