@fmdeui/fmui 1.0.1 → 1.0.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/es/api/base/index.d.ts +1 -1
- package/es/api/index.d.ts +0 -1
- package/es/{version.css → component.css} +0 -9
- package/es/components/button/index.d.ts +3 -3
- package/es/components/button/src/index.vue.d.ts +1 -1
- package/es/components/button/style/css.d.ts +0 -1
- package/es/components/button/style/index.d.ts +0 -1
- package/es/components/chart/style/css.d.ts +0 -1
- package/es/components/chart/style/index.d.ts +0 -1
- package/es/components/form/style/css.d.ts +0 -1
- package/es/components/form/style/index.d.ts +0 -1
- package/es/components/input/style/css.d.ts +0 -1
- package/es/components/input/style/index.d.ts +0 -1
- package/es/components/layout-page/style/css.d.ts +0 -1
- package/es/components/layout-page/style/index.d.ts +0 -1
- package/es/components/layout-page-item/style/css.d.ts +0 -1
- package/es/components/layout-page-item/style/index.d.ts +0 -1
- package/es/components/query-condition/index.d.ts +12 -12
- package/es/components/query-condition/src/index.vue.d.ts +4 -4
- package/es/components/query-condition/style/css.d.ts +0 -1
- package/es/components/query-condition/style/index.d.ts +0 -1
- package/es/components/select/index.d.ts +5 -5
- package/es/components/select/src/index.vue.d.ts +2 -2
- package/es/components/select/style/css.d.ts +0 -1
- package/es/components/select/style/index.d.ts +0 -1
- package/es/components/select-table/index.d.ts +6 -6
- package/es/components/select-table/src/index.vue.d.ts +2 -2
- package/es/components/select-table/style/css.d.ts +0 -1
- package/es/components/select-table/style/index.d.ts +0 -1
- package/es/hooks/other.d.ts +1 -1
- package/es/hooks/useLocale.d.ts +1 -1
- package/es/hooks/useVxeTableOptionsHook.d.ts +2 -2
- package/es/index.d.ts +7 -8
- package/es/index.mjs +0 -10
- package/es/packages/api/index.mjs +0 -1
- package/es/packages/utils/index.mjs +1 -0
- package/es/stores/keepAliveNames.d.ts +1 -1
- package/es/stores/requestOldRoutes.d.ts +1 -1
- package/es/stores/routesList.d.ts +1 -1
- package/es/stores/tagsViewRoutes.d.ts +1 -1
- package/es/stores/themeConfig.d.ts +1 -1
- package/es/stores/userInfo.d.ts +1 -1
- package/index.js +259 -268
- package/index.min.js +4 -4
- package/index.min.mjs +4 -4
- package/index.mjs +257 -257
- package/lib/api/base/index.d.ts +1 -1
- package/lib/api/index.d.ts +0 -1
- package/lib/components/button/index.d.ts +3 -3
- package/lib/components/button/src/index.vue.d.ts +1 -1
- package/lib/components/button/style/css.d.ts +0 -1
- package/lib/components/button/style/index.d.ts +0 -1
- package/lib/components/chart/style/css.d.ts +0 -1
- package/lib/components/chart/style/index.d.ts +0 -1
- package/lib/components/form/style/css.d.ts +0 -1
- package/lib/components/form/style/index.d.ts +0 -1
- package/lib/components/input/style/css.d.ts +0 -1
- package/lib/components/input/style/index.d.ts +0 -1
- package/lib/components/layout-page/style/css.d.ts +0 -1
- package/lib/components/layout-page/style/index.d.ts +0 -1
- package/lib/components/layout-page-item/style/css.d.ts +0 -1
- package/lib/components/layout-page-item/style/index.d.ts +0 -1
- package/lib/components/query-condition/index.d.ts +12 -12
- package/lib/components/query-condition/src/index.vue.d.ts +4 -4
- package/lib/components/query-condition/style/css.d.ts +0 -1
- package/lib/components/query-condition/style/index.d.ts +0 -1
- package/lib/components/select/index.d.ts +5 -5
- package/lib/components/select/src/index.vue.d.ts +2 -2
- package/lib/components/select/style/css.d.ts +0 -1
- package/lib/components/select/style/index.d.ts +0 -1
- package/lib/components/select-table/index.d.ts +6 -6
- package/lib/components/select-table/src/index.vue.d.ts +2 -2
- package/lib/components/select-table/style/css.d.ts +0 -1
- package/lib/components/select-table/style/index.d.ts +0 -1
- package/lib/hooks/other.d.ts +1 -1
- package/lib/hooks/useLocale.d.ts +1 -1
- package/lib/hooks/useVxeTableOptionsHook.d.ts +2 -2
- package/lib/{other.css → index.css} +0 -9
- package/lib/index.d.ts +7 -8
- package/lib/index.js +15 -34
- package/lib/packages/api/index.js +0 -17
- package/lib/packages/utils/index.js +17 -0
- package/lib/stores/keepAliveNames.d.ts +1 -1
- package/lib/stores/requestOldRoutes.d.ts +1 -1
- package/lib/stores/routesList.d.ts +1 -1
- package/lib/stores/tagsViewRoutes.d.ts +1 -1
- package/lib/stores/themeConfig.d.ts +1 -1
- package/lib/stores/userInfo.d.ts +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- package/es/packages/components/button/style/css.mjs +0 -1
- package/es/packages/components/button/style/index.mjs +0 -1
- package/es/packages/components/chart/style/css.mjs +0 -1
- package/es/packages/components/chart/style/index.mjs +0 -1
- package/es/packages/components/form/style/css.mjs +0 -1
- package/es/packages/components/form/style/index.mjs +0 -1
- package/es/packages/components/index.mjs +0 -9
- package/es/packages/components/input/style/css.mjs +0 -1
- package/es/packages/components/input/style/index.mjs +0 -1
- package/es/packages/components/layout-page/style/css.mjs +0 -1
- package/es/packages/components/layout-page/style/index.mjs +0 -1
- package/es/packages/components/layout-page-item/style/css.mjs +0 -1
- package/es/packages/components/layout-page-item/style/index.mjs +0 -1
- package/es/packages/components/query-condition/style/css.mjs +0 -1
- package/es/packages/components/query-condition/style/index.mjs +0 -1
- package/es/packages/components/select/style/css.mjs +0 -1
- package/es/packages/components/select/style/index.mjs +0 -1
- package/es/packages/components/select-table/style/css.mjs +0 -1
- package/es/packages/components/select-table/style/index.mjs +0 -1
- package/es/packages/components/svgIcon/index.vue.mjs +0 -5
- package/es/packages/components/svgIcon/index.vue2.mjs +0 -91
- package/es/packages/components/utils/install.mjs +0 -17
- package/es/packages/hooks/dateTimeShortCust.mjs +0 -23
- package/es/packages/hooks/idleTimeout.mjs +0 -127
- package/es/packages/hooks/other.mjs +0 -146
- package/es/packages/hooks/sysInfo.mjs +0 -59
- package/es/packages/hooks/useInfo.mjs +0 -44
- package/es/packages/theme-chalk/assets/logo.png.mjs +0 -3
- package/es/packages/theme-chalk/src/button.scss.mjs +0 -3
- package/es/packages/theme-chalk/src/chart.scss.mjs +0 -3
- package/es/packages/theme-chalk/src/form.scss.mjs +0 -3
- package/es/packages/theme-chalk/src/input.scss.mjs +0 -3
- package/es/packages/theme-chalk/src/layout-page-item.scss.mjs +0 -3
- package/es/packages/theme-chalk/src/layout-page.scss.mjs +0 -3
- package/es/packages/theme-chalk/src/query-condition.scss.mjs +0 -3
- package/es/packages/theme-chalk/src/select-table.scss.mjs +0 -3
- package/es/packages/theme-chalk/src/select.scss.mjs +0 -3
- package/es/packages/utils/signalR.mjs +0 -47
- package/lib/packages/components/button/style/css.js +0 -4
- package/lib/packages/components/button/style/index.js +0 -4
- package/lib/packages/components/chart/style/css.js +0 -4
- package/lib/packages/components/chart/style/index.js +0 -4
- package/lib/packages/components/form/style/css.js +0 -4
- package/lib/packages/components/form/style/index.js +0 -4
- package/lib/packages/components/index.js +0 -23
- package/lib/packages/components/input/style/css.js +0 -4
- package/lib/packages/components/input/style/index.js +0 -4
- package/lib/packages/components/layout-page/style/css.js +0 -4
- package/lib/packages/components/layout-page/style/index.js +0 -4
- package/lib/packages/components/layout-page-item/style/css.js +0 -4
- package/lib/packages/components/layout-page-item/style/index.js +0 -4
- package/lib/packages/components/query-condition/style/css.js +0 -4
- package/lib/packages/components/query-condition/style/index.js +0 -4
- package/lib/packages/components/select/style/css.js +0 -4
- package/lib/packages/components/select/style/index.js +0 -4
- package/lib/packages/components/select-table/style/css.js +0 -4
- package/lib/packages/components/select-table/style/index.js +0 -4
- package/lib/packages/components/svgIcon/index.vue.js +0 -9
- package/lib/packages/components/svgIcon/index.vue2.js +0 -95
- package/lib/packages/components/utils/install.js +0 -19
- package/lib/packages/hooks/dateTimeShortCust.js +0 -25
- package/lib/packages/hooks/idleTimeout.js +0 -131
- package/lib/packages/hooks/other.js +0 -178
- package/lib/packages/hooks/sysInfo.js +0 -62
- package/lib/packages/hooks/useInfo.js +0 -64
- package/lib/packages/theme-chalk/assets/logo.png.js +0 -7
- package/lib/packages/theme-chalk/src/button.scss.js +0 -7
- package/lib/packages/theme-chalk/src/chart.scss.js +0 -7
- package/lib/packages/theme-chalk/src/form.scss.js +0 -7
- package/lib/packages/theme-chalk/src/input.scss.js +0 -7
- package/lib/packages/theme-chalk/src/layout-page-item.scss.js +0 -7
- package/lib/packages/theme-chalk/src/layout-page.scss.js +0 -7
- package/lib/packages/theme-chalk/src/query-condition.scss.js +0 -7
- package/lib/packages/theme-chalk/src/select-table.scss.js +0 -7
- package/lib/packages/theme-chalk/src/select.scss.js +0 -7
- package/lib/packages/utils/signalR.js +0 -68
package/locale/zh-cn.js
CHANGED
package/locale/zh-cn.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.3 */(function(u,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e():typeof define=="function"&&define.amd?define(e):(u=typeof globalThis!="undefined"?globalThis:u||self,u.fmdeuiPlusLocaleZhCn=e())})(this,(function(){"use strict";var u={name:"zh-cn",plus:{datepicker:{date:"\u8BF7\u9009\u62E9\u65E5\u671F",dates:"\u8BF7\u9009\u62E9\u65E5\u671F",week:"\u8BF7\u9009\u62E9\u5468",month:"\u8BF7\u9009\u62E9\u6708\u4EFD",months:"\u8BF7\u9009\u62E9\u6708\u4EFD",year:"\u8BF7\u9009\u62E9\u5E74\u4EFD",years:"\u8BF7\u9009\u62E9\u5E74\u4EFD",startDatePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endDatePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",datetime:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",startMonthPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u6708\u4EFD",endMonthPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u6708\u4EFD",startTimePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",endTimePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",shortcutsDate:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDaterange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"},shortcutsMonthrange:{thisMonth:"\u672C\u6708",thisYear:"\u4ECA\u5E74\u81F3\u4ECA",pastSixMonths:"\u6700\u8FD1\u516D\u4E2A\u6708"},shortcutsDatetime:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDatetimerange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"}},form:{pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9"},input:{placeholder:"\u8BF7\u8F93\u5165",appendTitle:"\u5143",validatePhone:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801",validateIdCard:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801",validateInteger:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6574\u6570",format:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684",amount:"\u91D1\u989D",numbers:"\u6570\u5B57",digitUppercase:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u91D1\u989D\u683C\u5F0F",validateError:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u683C\u5F0F",escaped:{0:"\u89D2",1:"\u5206",2:"\u96F6",3:"\u58F9",4:"\u8D30",5:"\u53C1",6:"\u8086",7:"\u4F0D",8:"\u9646",9:"\u67D2",10:"\u634C",11:"\u7396",12:"\u5143",13:"\u4E07",14:"\u4EBF",15:"\u5146",16:"\u62FE",17:"\u4F70",18:"\u4EDF",19:"\u6B20",20:"\u6574"}},moduleForm:{save:"\u4FDD\u5B58",back:"\u8FD4\u56DE"},search:{searchText:"\u67E5\u8BE2",resetText:"\u91CD\u7F6E",expand:"\u5C55\u5F00",retract:"\u6536\u8D77",pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",popoverAttrs:{showTxt:"\u66F4\u591A",title:"\u6240\u6709\u6761\u4EF6",allTxt:"\u5168\u9009",reverseTxt:"\u53CD\u9009",clearTxt:"\u6E05\u7A7A"}},select:{selectAllTxt:"\u5168\u9009"},selectIcon:{placeholder:"\u8BF7\u9009\u62E9\u56FE\u6807",dialogTitle:"\u8BF7\u9009\u62E9\u56FE\u6807",searchPlaceholder:"\u641C\u7D22\u56FE\u6807",emptyDescription:"\u672A\u641C\u7D22\u5230\u60A8\u8981\u627E\u7684\u56FE\u6807"},copy:{copySuccess:"\u590D\u5236\u6210\u529F",copyFail:"\u590D\u5236\u5931\u8D25",invalidCopyContent:"\u65E0\u6548\u7684\u590D\u5236\u5185\u5BB9"},selectTable:{searchBtnTxt:"\u5173\u95ED\u4E0B\u62C9\u6846",radioTxt:"\u5355\u9009",loadingTxt:"\u52A0\u8F7D\u4E2D..."},stepWizard:{lastBtnTitle:"\u5B8C\u6210"},table:{columnBind:{btnTxt:"\u5217\u8BBE\u7F6E",title:"\u5217\u8BBE\u7F6E"},fistColumn:{label:"\u5E8F\u53F7",radio:"\u5355\u9009"},operator:{label:"\u64CD\u4F5C",more:"\u66F4\u591A",sum:"\u5F53\u9875\u5408\u8BA1",total:"\u5408\u8BA1",allSum:"\u5168\u90E8\u5408\u8BA1"},singleEdit:{tipText:"\u5355\u51FB\u53EF\u7F16\u8F91"},pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",loadingTxt:"\u52A0\u8F7D\u4E2D...",saveBtnTxt:"\u4FDD\u5B58",dragTxt:"\u62D6\u52A8",density:"\u5BC6\u5EA6",default:"\u9ED8\u8BA4",loose:"\u5BBD\u677E",compact:"\u7D27\u51D1"},list:{idleTimeoutMessage:"\u957F\u65F6\u95F4\u672A\u64CD\u4F5C\uFF0C\u5DF2\u9000\u51FA\u7CFB\u7EDF\u3002",sysMessage:"\u7CFB\u7EDF\u6D88\u606F"}}};return u}));
|
package/locale/zh-cn.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.3 */var u={name:"zh-cn",plus:{datepicker:{date:"\u8BF7\u9009\u62E9\u65E5\u671F",dates:"\u8BF7\u9009\u62E9\u65E5\u671F",week:"\u8BF7\u9009\u62E9\u5468",month:"\u8BF7\u9009\u62E9\u6708\u4EFD",months:"\u8BF7\u9009\u62E9\u6708\u4EFD",year:"\u8BF7\u9009\u62E9\u5E74\u4EFD",years:"\u8BF7\u9009\u62E9\u5E74\u4EFD",startDatePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endDatePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",datetime:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",startMonthPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u6708\u4EFD",endMonthPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u6708\u4EFD",startTimePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",endTimePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",shortcutsDate:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDaterange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"},shortcutsMonthrange:{thisMonth:"\u672C\u6708",thisYear:"\u4ECA\u5E74\u81F3\u4ECA",pastSixMonths:"\u6700\u8FD1\u516D\u4E2A\u6708"},shortcutsDatetime:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDatetimerange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"}},form:{pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9"},input:{placeholder:"\u8BF7\u8F93\u5165",appendTitle:"\u5143",validatePhone:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801",validateIdCard:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801",validateInteger:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6574\u6570",format:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684",amount:"\u91D1\u989D",numbers:"\u6570\u5B57",digitUppercase:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u91D1\u989D\u683C\u5F0F",validateError:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u683C\u5F0F",escaped:{0:"\u89D2",1:"\u5206",2:"\u96F6",3:"\u58F9",4:"\u8D30",5:"\u53C1",6:"\u8086",7:"\u4F0D",8:"\u9646",9:"\u67D2",10:"\u634C",11:"\u7396",12:"\u5143",13:"\u4E07",14:"\u4EBF",15:"\u5146",16:"\u62FE",17:"\u4F70",18:"\u4EDF",19:"\u6B20",20:"\u6574"}},moduleForm:{save:"\u4FDD\u5B58",back:"\u8FD4\u56DE"},search:{searchText:"\u67E5\u8BE2",resetText:"\u91CD\u7F6E",expand:"\u5C55\u5F00",retract:"\u6536\u8D77",pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",popoverAttrs:{showTxt:"\u66F4\u591A",title:"\u6240\u6709\u6761\u4EF6",allTxt:"\u5168\u9009",reverseTxt:"\u53CD\u9009",clearTxt:"\u6E05\u7A7A"}},select:{selectAllTxt:"\u5168\u9009"},selectIcon:{placeholder:"\u8BF7\u9009\u62E9\u56FE\u6807",dialogTitle:"\u8BF7\u9009\u62E9\u56FE\u6807",searchPlaceholder:"\u641C\u7D22\u56FE\u6807",emptyDescription:"\u672A\u641C\u7D22\u5230\u60A8\u8981\u627E\u7684\u56FE\u6807"},copy:{copySuccess:"\u590D\u5236\u6210\u529F",copyFail:"\u590D\u5236\u5931\u8D25",invalidCopyContent:"\u65E0\u6548\u7684\u590D\u5236\u5185\u5BB9"},selectTable:{searchBtnTxt:"\u5173\u95ED\u4E0B\u62C9\u6846",radioTxt:"\u5355\u9009",loadingTxt:"\u52A0\u8F7D\u4E2D..."},stepWizard:{lastBtnTitle:"\u5B8C\u6210"},table:{columnBind:{btnTxt:"\u5217\u8BBE\u7F6E",title:"\u5217\u8BBE\u7F6E"},fistColumn:{label:"\u5E8F\u53F7",radio:"\u5355\u9009"},operator:{label:"\u64CD\u4F5C",more:"\u66F4\u591A",sum:"\u5F53\u9875\u5408\u8BA1",total:"\u5408\u8BA1",allSum:"\u5168\u90E8\u5408\u8BA1"},singleEdit:{tipText:"\u5355\u51FB\u53EF\u7F16\u8F91"},pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",loadingTxt:"\u52A0\u8F7D\u4E2D...",saveBtnTxt:"\u4FDD\u5B58",dragTxt:"\u62D6\u52A8",density:"\u5BC6\u5EA6",default:"\u9ED8\u8BA4",loose:"\u5BBD\u677E",compact:"\u7D27\u51D1"},list:{idleTimeoutMessage:"\u957F\u65F6\u95F4\u672A\u64CD\u4F5C\uFF0C\u5DF2\u9000\u51FA\u7CFB\u7EDF\u3002",sysMessage:"\u7CFB\u7EDF\u6D88\u606F"}}};export{u as default};
|
package/locale/zh-cn.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@fmdeui/theme-chalk/f-button.css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../../theme-chalk/src/button.scss.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@fmdeui/theme-chalk/f-chart.css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../../theme-chalk/src/chart.scss.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@fmdeui/theme-chalk/f-form.css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../../theme-chalk/src/form.scss.mjs';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { FButton } from './button/index.mjs';
|
|
2
|
-
export { FInput } from './input/index.mjs';
|
|
3
|
-
export { FLayoutPage } from './layout-page/index.mjs';
|
|
4
|
-
export { FLayoutPageItem } from './layout-page-item/index.mjs';
|
|
5
|
-
export { FChart } from './chart/index.mjs';
|
|
6
|
-
export { FSelect } from './select/index.mjs';
|
|
7
|
-
export { FSelectTable } from './select-table/index.mjs';
|
|
8
|
-
export { FQueryCondition } from './query-condition/index.mjs';
|
|
9
|
-
export { FForm } from './form/index.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@fmdeui/theme-chalk/f-input.css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../../theme-chalk/src/input.scss.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@fmdeui/theme-chalk/f-layout-page.css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../../theme-chalk/src/layout-page.scss.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@fmdeui/theme-chalk/f-layout-page-item.css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../../theme-chalk/src/layout-page-item.scss.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@fmdeui/theme-chalk/f-query-condition.css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../../theme-chalk/src/query-condition.scss.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@fmdeui/theme-chalk/f-select.css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../../theme-chalk/src/select.scss.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@fmdeui/theme-chalk/f-select-table.css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../../theme-chalk/src/select-table.scss.mjs';
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, createBlock, resolveDynamicComponent, createElementVNode, normalizeClass } from 'vue';
|
|
2
|
-
|
|
3
|
-
const _hoisted_1 = ["src"];
|
|
4
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "index",
|
|
6
|
-
props: {
|
|
7
|
-
// svg 图标组件名字
|
|
8
|
-
name: {
|
|
9
|
-
type: String
|
|
10
|
-
},
|
|
11
|
-
// svg 大小
|
|
12
|
-
size: {
|
|
13
|
-
type: Number,
|
|
14
|
-
default: () => 14
|
|
15
|
-
},
|
|
16
|
-
// svg 颜色
|
|
17
|
-
color: {
|
|
18
|
-
type: String
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(__props) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
const linesString = ["https", "http", "/src", "/assets", "data:image", window.__env__.VITE_PUBLIC_PATH];
|
|
24
|
-
const getIconName = computed(() => {
|
|
25
|
-
return props == null ? void 0 : props.name;
|
|
26
|
-
});
|
|
27
|
-
const isShowIconSvg = computed(() => {
|
|
28
|
-
var _a;
|
|
29
|
-
return (_a = props == null ? void 0 : props.name) == null ? void 0 : _a.startsWith("ele-");
|
|
30
|
-
});
|
|
31
|
-
const isShowIconImg = computed(() => {
|
|
32
|
-
return linesString.find((str) => {
|
|
33
|
-
var _a;
|
|
34
|
-
return (_a = props.name) == null ? void 0 : _a.startsWith(str);
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
const setIconSvgStyle = computed(() => {
|
|
38
|
-
return `font-size: ${props.size}px;color: ${props.color};`;
|
|
39
|
-
});
|
|
40
|
-
const setIconImgOutStyle = computed(() => {
|
|
41
|
-
return `width: ${props.size}px;height: ${props.size}px;display: inline-block;overflow: hidden;`;
|
|
42
|
-
});
|
|
43
|
-
const setIconSvgInsStyle = computed(() => {
|
|
44
|
-
const filterStyle = [];
|
|
45
|
-
const compatibles = ["-webkit", "-ms", "-o", "-moz"];
|
|
46
|
-
compatibles.forEach((j) => filterStyle.push(`${j}-filter: drop-shadow(${props.color} ${props.size}px 0);`));
|
|
47
|
-
return `width: ${props.size}px;height: ${props.size}px;position: relative;left: -${props.size}px;${filterStyle.join("")}`;
|
|
48
|
-
});
|
|
49
|
-
return (_ctx, _cache) => {
|
|
50
|
-
return isShowIconSvg.value ? (openBlock(), createElementBlock(
|
|
51
|
-
"i",
|
|
52
|
-
{
|
|
53
|
-
key: 0,
|
|
54
|
-
class: "el-icon",
|
|
55
|
-
style: normalizeStyle(setIconSvgStyle.value)
|
|
56
|
-
},
|
|
57
|
-
[
|
|
58
|
-
(openBlock(), createBlock(resolveDynamicComponent(getIconName.value)))
|
|
59
|
-
],
|
|
60
|
-
4
|
|
61
|
-
/* STYLE */
|
|
62
|
-
)) : isShowIconImg.value ? (openBlock(), createElementBlock(
|
|
63
|
-
"div",
|
|
64
|
-
{
|
|
65
|
-
key: 1,
|
|
66
|
-
style: normalizeStyle(setIconImgOutStyle.value)
|
|
67
|
-
},
|
|
68
|
-
[
|
|
69
|
-
createElementVNode("img", {
|
|
70
|
-
src: getIconName.value,
|
|
71
|
-
style: normalizeStyle(setIconSvgInsStyle.value)
|
|
72
|
-
}, null, 12, _hoisted_1)
|
|
73
|
-
],
|
|
74
|
-
4
|
|
75
|
-
/* STYLE */
|
|
76
|
-
)) : (openBlock(), createElementBlock(
|
|
77
|
-
"i",
|
|
78
|
-
{
|
|
79
|
-
key: 2,
|
|
80
|
-
class: normalizeClass(getIconName.value),
|
|
81
|
-
style: normalizeStyle(setIconSvgStyle.value)
|
|
82
|
-
},
|
|
83
|
-
null,
|
|
84
|
-
6
|
|
85
|
-
/* CLASS, STYLE */
|
|
86
|
-
));
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
export { _sfc_main as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const withInstall = (main, extra) => {
|
|
2
|
-
;
|
|
3
|
-
main.install = (app) => {
|
|
4
|
-
for (const comp of [main, ...Object.values(extra != null ? extra : {})]) {
|
|
5
|
-
app.component(comp.name, comp);
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
if (extra) {
|
|
9
|
-
for (const [key, comp] of Object.entries(extra)) {
|
|
10
|
-
;
|
|
11
|
-
main[key] = comp;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
return main;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export { withInstall };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const useDateTimeShortCust = () => {
|
|
2
|
-
return [
|
|
3
|
-
{ text: "\u4ECA\u5929", value: /* @__PURE__ */ new Date() },
|
|
4
|
-
{
|
|
5
|
-
text: "\u6628\u5929",
|
|
6
|
-
value: () => {
|
|
7
|
-
const date = /* @__PURE__ */ new Date();
|
|
8
|
-
date.setTime(date.getTime() - 3600 * 1e3 * 24);
|
|
9
|
-
return date;
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
text: "\u4E0A\u5468",
|
|
14
|
-
value: () => {
|
|
15
|
-
const date = /* @__PURE__ */ new Date();
|
|
16
|
-
date.setTime(date.getTime() - 3600 * 1e3 * 24 * 7);
|
|
17
|
-
return date;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
];
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export { useDateTimeShortCust };
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { debounce } from 'lodash-es';
|
|
2
|
-
import { Local, Session } from '../utils/storage.mjs';
|
|
3
|
-
import { ElMessageBox } from 'element-plus';
|
|
4
|
-
import { accessTokenKey, refreshAccessTokenKey } from '../utils/request.mjs';
|
|
5
|
-
import { useLocale } from './useLocale.mjs';
|
|
6
|
-
|
|
7
|
-
var __defProp = Object.defineProperty;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
-
let signalR;
|
|
11
|
-
async function loadSignalR() {
|
|
12
|
-
if (!signalR) {
|
|
13
|
-
const module = await import('../utils/signalR.mjs');
|
|
14
|
-
signalR = module.signalR;
|
|
15
|
-
}
|
|
16
|
-
return signalR;
|
|
17
|
-
}
|
|
18
|
-
const { t } = useLocale();
|
|
19
|
-
class IdleTimeoutManager {
|
|
20
|
-
constructor(config = {}) {
|
|
21
|
-
__publicField(this, "timerId", null);
|
|
22
|
-
__publicField(this, "config");
|
|
23
|
-
__publicField(this, "debouncedReset");
|
|
24
|
-
/** 检查闲置超时时间间隔 */
|
|
25
|
-
__publicField(this, "checkTimeoutInterval", 2 * 1e3);
|
|
26
|
-
__publicField(this, "handleVisibilityChange", () => {
|
|
27
|
-
if (document.visibilityState === "visible") {
|
|
28
|
-
this.setLastActivityTime();
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
this.config = {
|
|
32
|
-
timeout: 30 * 60,
|
|
33
|
-
events: ["mousewheel", "keydown", "click"],
|
|
34
|
-
onTimeout: this.timeOutExec.bind(this),
|
|
35
|
-
debounceInterval: 200,
|
|
36
|
-
...config
|
|
37
|
-
};
|
|
38
|
-
this.debouncedReset = this.config.debounceInterval > 0 ? debounce(this.setLastActivityTime.bind(this), this.config.debounceInterval) : this.setLastActivityTime.bind(this);
|
|
39
|
-
this.init();
|
|
40
|
-
}
|
|
41
|
-
init() {
|
|
42
|
-
this.config.events.forEach((event) => {
|
|
43
|
-
window.addEventListener(event, this.debouncedReset);
|
|
44
|
-
});
|
|
45
|
-
document.addEventListener("visibilitychange", this.handleVisibilityChange);
|
|
46
|
-
this.setLastActivityTime();
|
|
47
|
-
this.updateIdleTimeout(this.config.timeout);
|
|
48
|
-
}
|
|
49
|
-
/** 设置最后活动时间 */
|
|
50
|
-
setLastActivityTime() {
|
|
51
|
-
Local.set("lastActivityTime", (/* @__PURE__ */ new Date()).getTime());
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* 更新空闲超时时间
|
|
55
|
-
* @param timeout - 新的超时时间(毫秒)
|
|
56
|
-
*/
|
|
57
|
-
updateIdleTimeout(timeout) {
|
|
58
|
-
this.config.timeout = timeout;
|
|
59
|
-
if (this.config.timeout > 0 && this.timerId == null) {
|
|
60
|
-
this.timerId = window.setInterval(this.checkTimeout.bind(this), this.checkTimeoutInterval);
|
|
61
|
-
} else if (this.config.timeout == 0 && this.timerId != null) {
|
|
62
|
-
window.clearInterval(this.timerId);
|
|
63
|
-
this.timerId = null;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/** 检查是否超时 */
|
|
67
|
-
checkTimeout() {
|
|
68
|
-
const currentTime = (/* @__PURE__ */ new Date()).getTime();
|
|
69
|
-
const lastActivityTime = Number(Local.get("lastActivityTime"));
|
|
70
|
-
if (lastActivityTime == 0) return;
|
|
71
|
-
const accessToken = Local.get(accessTokenKey);
|
|
72
|
-
if (!accessToken || accessToken == "invalid_token") return;
|
|
73
|
-
const timeout = this.config.timeout * 1e3;
|
|
74
|
-
if (currentTime - lastActivityTime > timeout) {
|
|
75
|
-
this.destroy();
|
|
76
|
-
this.config.onTimeout();
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
/** 销毁实例 */
|
|
80
|
-
destroy() {
|
|
81
|
-
this.config.events.forEach((event) => {
|
|
82
|
-
window.removeEventListener(event, this.debouncedReset);
|
|
83
|
-
});
|
|
84
|
-
document.removeEventListener("visibilitychange", this.handleVisibilityChange);
|
|
85
|
-
if (this.timerId !== null) {
|
|
86
|
-
window.clearInterval(this.timerId);
|
|
87
|
-
this.timerId = null;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
/** 超时时执行 */
|
|
91
|
-
timeOutExec() {
|
|
92
|
-
const appEl = document.getElementById("app");
|
|
93
|
-
appEl == null ? void 0 : appEl.remove();
|
|
94
|
-
loadSignalR().then((signalR2) => {
|
|
95
|
-
signalR2.stop();
|
|
96
|
-
});
|
|
97
|
-
Local.remove(accessTokenKey);
|
|
98
|
-
Local.remove(refreshAccessTokenKey);
|
|
99
|
-
Session.clear();
|
|
100
|
-
ElMessageBox.alert(t("plus.list.idleTimeoutMessage"), t("plus.list.sysMessage"), {
|
|
101
|
-
type: "warning",
|
|
102
|
-
draggable: true,
|
|
103
|
-
callback: () => {
|
|
104
|
-
window.location.reload();
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function initIdleTimeout(config) {
|
|
110
|
-
if (!window.__IDLE_TIMEOUT__) {
|
|
111
|
-
window.__IDLE_TIMEOUT__ = new IdleTimeoutManager(config);
|
|
112
|
-
}
|
|
113
|
-
return window.__IDLE_TIMEOUT__;
|
|
114
|
-
}
|
|
115
|
-
function destroyIdleTimeout() {
|
|
116
|
-
if (window.__IDLE_TIMEOUT__) {
|
|
117
|
-
window.__IDLE_TIMEOUT__.destroy();
|
|
118
|
-
window.__IDLE_TIMEOUT__ = void 0;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function updateIdleTimeout(timeout) {
|
|
122
|
-
if (window.__IDLE_TIMEOUT__) {
|
|
123
|
-
window.__IDLE_TIMEOUT__.updateIdleTimeout(timeout);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export { destroyIdleTimeout, initIdleTimeout, updateIdleTimeout };
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent, nextTick } from 'vue';
|
|
2
|
-
import * as svg from '@element-plus/icons-vue';
|
|
3
|
-
import '../router/index.mjs';
|
|
4
|
-
import pinia from '../stores/inpinia.mjs';
|
|
5
|
-
import { storeToRefs } from 'pinia';
|
|
6
|
-
import { useThemeConfig } from '../stores/themeConfig.mjs';
|
|
7
|
-
import { i18n } from '../locale/index.mjs';
|
|
8
|
-
import { verifyUrl } from '../utils/toolsValidate.mjs';
|
|
9
|
-
import { router } from '../router/createRouter.mjs';
|
|
10
|
-
|
|
11
|
-
const SvgIcon = defineAsyncComponent(() => import('../components/svgIcon/index.vue.mjs'));
|
|
12
|
-
function elSvg(app) {
|
|
13
|
-
const icons = svg;
|
|
14
|
-
for (const i in icons) {
|
|
15
|
-
app.component(`ele-${icons[i].name}`, icons[i]);
|
|
16
|
-
}
|
|
17
|
-
app.component("SvgIcon", SvgIcon);
|
|
18
|
-
}
|
|
19
|
-
function useTitle() {
|
|
20
|
-
const stores = useThemeConfig(pinia);
|
|
21
|
-
const { themeConfig } = storeToRefs(stores);
|
|
22
|
-
nextTick(() => {
|
|
23
|
-
let webTitle = "";
|
|
24
|
-
let globalTitle = themeConfig.value.globalTitle;
|
|
25
|
-
const { path, meta } = router.currentRoute.value;
|
|
26
|
-
if (path === "/login") {
|
|
27
|
-
webTitle = meta.title;
|
|
28
|
-
} else {
|
|
29
|
-
webTitle = setTagsViewNameI18n(router.currentRoute.value);
|
|
30
|
-
}
|
|
31
|
-
document.title = `${webTitle} - ${globalTitle}` || globalTitle;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function setTagsViewNameI18n(item) {
|
|
35
|
-
let tagsViewName = "";
|
|
36
|
-
const { query, params, meta } = item;
|
|
37
|
-
const pattern = /^\{("(zh-CN|en|zh-TW)":"[^,]+",?){1,3}}$/;
|
|
38
|
-
if ((query == null ? void 0 : query.tagsViewName) || (params == null ? void 0 : params.tagsViewName)) {
|
|
39
|
-
if (pattern.test(query == null ? void 0 : query.tagsViewName) || pattern.test(params == null ? void 0 : params.tagsViewName)) {
|
|
40
|
-
const urlTagsParams = (query == null ? void 0 : query.tagsViewName) && JSON.parse(query == null ? void 0 : query.tagsViewName) || (params == null ? void 0 : params.tagsViewName) && JSON.parse(params == null ? void 0 : params.tagsViewName);
|
|
41
|
-
tagsViewName = urlTagsParams[i18n.global.locale.value];
|
|
42
|
-
} else {
|
|
43
|
-
tagsViewName = (query == null ? void 0 : query.tagsViewName) || (params == null ? void 0 : params.tagsViewName);
|
|
44
|
-
}
|
|
45
|
-
} else {
|
|
46
|
-
tagsViewName = i18n.global.t(`message.menu.${meta.title}`);
|
|
47
|
-
}
|
|
48
|
-
return tagsViewName;
|
|
49
|
-
}
|
|
50
|
-
const lazyImg = (el, arr) => {
|
|
51
|
-
const io = new IntersectionObserver((res) => {
|
|
52
|
-
res.forEach((v) => {
|
|
53
|
-
if (v.isIntersecting) {
|
|
54
|
-
const { img, key } = v.target.dataset;
|
|
55
|
-
v.target.src = img;
|
|
56
|
-
v.target.onload = () => {
|
|
57
|
-
io.unobserve(v.target);
|
|
58
|
-
arr[key]["loading"] = false;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
nextTick(() => {
|
|
64
|
-
document.querySelectorAll(el).forEach((img) => io.observe(img));
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
const globalComponentSize = () => {
|
|
68
|
-
const stores = useThemeConfig(pinia);
|
|
69
|
-
const { themeConfig } = storeToRefs(stores);
|
|
70
|
-
return themeConfig.value.globalComponentSize;
|
|
71
|
-
};
|
|
72
|
-
function deepClone(obj) {
|
|
73
|
-
let newObj;
|
|
74
|
-
try {
|
|
75
|
-
newObj = obj.push ? [] : {};
|
|
76
|
-
} catch (error) {
|
|
77
|
-
newObj = {};
|
|
78
|
-
}
|
|
79
|
-
for (let attr in obj) {
|
|
80
|
-
if (obj[attr] && typeof obj[attr] === "object") {
|
|
81
|
-
newObj[attr] = deepClone(obj[attr]);
|
|
82
|
-
} else {
|
|
83
|
-
newObj[attr] = obj[attr];
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return newObj;
|
|
87
|
-
}
|
|
88
|
-
function isMobile() {
|
|
89
|
-
if (navigator.userAgent.match(/('phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone')/i)) {
|
|
90
|
-
return true;
|
|
91
|
-
} else {
|
|
92
|
-
return false;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
function handleEmpty(list) {
|
|
96
|
-
const arr = [];
|
|
97
|
-
for (const i in list) {
|
|
98
|
-
const d = [];
|
|
99
|
-
for (const j in list[i]) {
|
|
100
|
-
d.push(list[i][j]);
|
|
101
|
-
}
|
|
102
|
-
const leng = d.filter((item) => item === "").length;
|
|
103
|
-
if (leng !== d.length) {
|
|
104
|
-
arr.push(list[i]);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return arr;
|
|
108
|
-
}
|
|
109
|
-
function handleOpenLink(val) {
|
|
110
|
-
var _a, _b, _c;
|
|
111
|
-
const { origin, pathname } = window.location;
|
|
112
|
-
router.push(val.path);
|
|
113
|
-
if (verifyUrl((_a = val.meta) == null ? void 0 : _a.isLink)) window.open((_b = val.meta) == null ? void 0 : _b.isLink);
|
|
114
|
-
else window.open(`${origin}${pathname}#${(_c = val.meta) == null ? void 0 : _c.isLink}`);
|
|
115
|
-
}
|
|
116
|
-
const other = {
|
|
117
|
-
elSvg: (app) => {
|
|
118
|
-
elSvg(app);
|
|
119
|
-
},
|
|
120
|
-
useTitle: () => {
|
|
121
|
-
useTitle();
|
|
122
|
-
},
|
|
123
|
-
setTagsViewNameI18n(route) {
|
|
124
|
-
return setTagsViewNameI18n(route);
|
|
125
|
-
},
|
|
126
|
-
lazyImg: (el, arr) => {
|
|
127
|
-
lazyImg(el, arr);
|
|
128
|
-
},
|
|
129
|
-
globalComponentSize: () => {
|
|
130
|
-
return globalComponentSize();
|
|
131
|
-
},
|
|
132
|
-
deepClone: (obj) => {
|
|
133
|
-
return deepClone(obj);
|
|
134
|
-
},
|
|
135
|
-
isMobile: () => {
|
|
136
|
-
return isMobile();
|
|
137
|
-
},
|
|
138
|
-
handleEmpty: (list) => {
|
|
139
|
-
return handleEmpty(list);
|
|
140
|
-
},
|
|
141
|
-
handleOpenLink: (val) => {
|
|
142
|
-
handleOpenLink(val);
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
export { deepClone, other as default, elSvg, globalComponentSize, handleEmpty, handleOpenLink, isMobile, lazyImg, setTagsViewNameI18n, useTitle };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Local } from '../utils/storage.mjs';
|
|
2
|
-
import { storeToRefs } from 'pinia';
|
|
3
|
-
import { useThemeConfig } from '../stores/themeConfig.mjs';
|
|
4
|
-
import img from '../theme-chalk/assets/logo.png.mjs';
|
|
5
|
-
import { updateIdleTimeout } from './idleTimeout.mjs';
|
|
6
|
-
import '../api/index.mjs';
|
|
7
|
-
import { feature } from '../api/sys/index.mjs';
|
|
8
|
-
import { useBaseApi } from '../api/base/index.mjs';
|
|
9
|
-
|
|
10
|
-
const storesThemeConfig = useThemeConfig();
|
|
11
|
-
const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
12
|
-
async function loadSysInfo(tenantid) {
|
|
13
|
-
var _a;
|
|
14
|
-
const [err, res] = await feature(useBaseApi("sysTenant").gcomm(null, "sysInfo/" + Number(tenantid)));
|
|
15
|
-
if (err) {
|
|
16
|
-
themeConfig.value.logoUrl = img;
|
|
17
|
-
Local.remove("themeConfig");
|
|
18
|
-
Local.set("themeConfig", storesThemeConfig.themeConfig);
|
|
19
|
-
return;
|
|
20
|
-
} else {
|
|
21
|
-
if (res.data.type != "success" || res.data.result == null) return;
|
|
22
|
-
const data = res.data.result;
|
|
23
|
-
themeConfig.value.logoUrl = data.logo;
|
|
24
|
-
themeConfig.value.globalTitle = data.title;
|
|
25
|
-
themeConfig.value.globalViceTitle = data.viceTitle;
|
|
26
|
-
themeConfig.value.globalViceTitleMsg = data.viceDesc;
|
|
27
|
-
themeConfig.value.icp = data.icp;
|
|
28
|
-
themeConfig.value.icpUrl = data.icpUrl;
|
|
29
|
-
themeConfig.value.isWatermark = data.watermark != null;
|
|
30
|
-
themeConfig.value.watermarkText = data.watermark;
|
|
31
|
-
themeConfig.value.copyright = data.copyright;
|
|
32
|
-
themeConfig.value.version = data.version;
|
|
33
|
-
themeConfig.value.carouselFiles = data.carouselFiles;
|
|
34
|
-
themeConfig.value.primary = data.themeColor;
|
|
35
|
-
themeConfig.value.layout = data.layout;
|
|
36
|
-
themeConfig.value.animation = data.animation;
|
|
37
|
-
themeConfig.value.secondVer = data.secondVer;
|
|
38
|
-
themeConfig.value.captcha = data.captcha;
|
|
39
|
-
themeConfig.value.forceChangePassword = data.forceChangePassword;
|
|
40
|
-
themeConfig.value.passwordExpirationTime = data.passwordExpirationTime;
|
|
41
|
-
themeConfig.value.i18NSwitch = data.i18NSwitch;
|
|
42
|
-
themeConfig.value.idleTimeout = data.idleTimeout;
|
|
43
|
-
themeConfig.value.onlineNotice = data.onlineNotice;
|
|
44
|
-
themeConfig.value.mobileLogin = data.mobileLogin;
|
|
45
|
-
themeConfig.value.scanLogin = data.scanLogin;
|
|
46
|
-
themeConfig.value.signUp = data.signUp;
|
|
47
|
-
window.__env__.VITE_SM_PUBLIC_KEY = data.publicKey;
|
|
48
|
-
updateFavicon(data.logo);
|
|
49
|
-
updateIdleTimeout((_a = themeConfig.value.idleTimeout) != null ? _a : 0);
|
|
50
|
-
Local.remove("themeConfig");
|
|
51
|
-
Local.set("themeConfig", storesThemeConfig.themeConfig);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
const updateFavicon = (url) => {
|
|
55
|
-
const favicon = document.getElementById("favicon");
|
|
56
|
-
favicon.href = url ? url : "data:;base64,=";
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export { loadSysInfo, updateFavicon };
|