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