@fmdeui/fmui 1.0.37 → 1.0.39

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.
Files changed (41) hide show
  1. package/es/components/fm-layout/index.d.ts +10 -0
  2. package/es/components/fm-layout/src/index.vue.d.ts +4 -0
  3. package/es/hooks/other.d.ts +1 -5
  4. package/es/index.mjs +1 -0
  5. package/es/make-installer.mjs +2 -1
  6. package/es/packages/components/fm-layout/src/index.vue2.mjs +5 -1
  7. package/es/packages/components/fm-layout/src/navBars/topBar/user.vue2.mjs +3 -2
  8. package/es/packages/components/fm-layout/src/navMenu/horizontal.vue2.mjs +7 -2
  9. package/es/packages/components/fm-layout/src/navMenu/subItem.vue2.mjs +7 -2
  10. package/es/packages/components/fm-layout/src/navMenu/vertical.vue2.mjs +7 -2
  11. package/es/packages/hooks/other.mjs +8 -34
  12. package/es/packages/stores/index.mjs +1 -0
  13. package/es/stores/index.d.ts +2 -0
  14. package/index.js +144 -150
  15. package/index.min.js +6 -6
  16. package/index.min.mjs +6 -6
  17. package/index.mjs +144 -151
  18. package/lib/components/fm-layout/index.d.ts +10 -0
  19. package/lib/components/fm-layout/src/index.vue.d.ts +4 -0
  20. package/lib/hooks/other.d.ts +1 -5
  21. package/lib/index.js +2 -0
  22. package/lib/make-installer.js +2 -1
  23. package/lib/packages/components/fm-layout/src/index.vue2.js +5 -1
  24. package/lib/packages/components/fm-layout/src/navBars/topBar/user.vue2.js +3 -2
  25. package/lib/packages/components/fm-layout/src/navMenu/horizontal.vue2.js +7 -2
  26. package/lib/packages/components/fm-layout/src/navMenu/subItem.vue2.js +7 -2
  27. package/lib/packages/components/fm-layout/src/navMenu/vertical.vue2.js +7 -2
  28. package/lib/packages/hooks/other.js +6 -34
  29. package/lib/packages/stores/index.js +2 -0
  30. package/lib/stores/index.d.ts +2 -0
  31. package/locale/en.js +1 -1
  32. package/locale/en.min.js +1 -1
  33. package/locale/en.min.mjs +1 -1
  34. package/locale/en.mjs +1 -1
  35. package/locale/zh-cn.js +1 -1
  36. package/locale/zh-cn.min.js +1 -1
  37. package/locale/zh-cn.min.mjs +1 -1
  38. package/locale/zh-cn.mjs +1 -1
  39. package/package.json +1 -1
  40. /package/es/{version.css → make-installer.css} +0 -0
  41. /package/lib/{component.css → index.css} +0 -0
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.37 */
1
+ /*! fmdeui-fmui v1.0.39 */
2
2
  import VxeUITable from 'vxe-table';
3
3
  import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element';
4
4
  import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
@@ -25,6 +25,67 @@ import axios from 'axios';
25
25
 
26
26
  const pinia = createPinia();
27
27
 
28
+ const useKeepALiveNames = defineStore("keepALiveNames", {
29
+ state: () => ({
30
+ keepAliveNames: [],
31
+ cachedViews: []
32
+ }),
33
+ actions: {
34
+ async setCacheKeepAlive(data) {
35
+ this.keepAliveNames = data;
36
+ },
37
+ async addCachedView(view) {
38
+ var _a;
39
+ if (view.meta.isKeepAlive) (_a = this.cachedViews) == null ? void 0 : _a.push(view.name);
40
+ },
41
+ async delCachedView(view) {
42
+ const index = this.cachedViews.indexOf(view.name);
43
+ if (index > -1) this.cachedViews.splice(index, 1);
44
+ },
45
+ async delOthersCachedViews(view) {
46
+ if (view.meta.isKeepAlive) this.cachedViews = [view.name];
47
+ else this.cachedViews = [];
48
+ },
49
+ async delAllCachedViews() {
50
+ this.cachedViews = [];
51
+ }
52
+ }
53
+ });
54
+
55
+ const useRequestOldRoutes = defineStore("requestOldRoutes", {
56
+ state: () => ({
57
+ requestOldRoutes: []
58
+ }),
59
+ actions: {
60
+ async setRequestOldRoutes(routes) {
61
+ this.requestOldRoutes = routes;
62
+ }
63
+ }
64
+ });
65
+
66
+ const useRoutesList = defineStore("routesList", {
67
+ state: () => ({
68
+ routesList: [],
69
+ isColumnsMenuHover: false,
70
+ isColumnsNavHover: false,
71
+ currentRoute: null
72
+ }),
73
+ actions: {
74
+ setCurrentRoute(route) {
75
+ this.currentRoute = route;
76
+ },
77
+ async setRoutesList(data) {
78
+ this.routesList = data;
79
+ },
80
+ async setColumnsMenuHover(bool) {
81
+ this.isColumnsMenuHover = bool;
82
+ },
83
+ async setColumnsNavHover(bool) {
84
+ this.isColumnsNavHover = bool;
85
+ }
86
+ }
87
+ });
88
+
28
89
  function judgementSameArr(newArr, oldArr) {
29
90
  const news = removeDuplicate(newArr);
30
91
  const olds = removeDuplicate(oldArr);
@@ -1797,43 +1858,21 @@ const restartSignalR = async () => {
1797
1858
  }
1798
1859
  };
1799
1860
 
1800
- const setWatermark = (str) => {
1801
- const id = "1.23452384164.123412416";
1802
- if (document.getElementById(id) !== null) document.body.removeChild(document.getElementById(id));
1803
- const can = document.createElement("canvas");
1804
- can.width = 400;
1805
- can.height = 200;
1806
- const cans = can.getContext("2d");
1807
- cans.rotate(-20 * Math.PI / 180);
1808
- cans.font = "12px Vedana";
1809
- cans.fillStyle = "rgba(200, 200, 200, 0.30)";
1810
- cans.textBaseline = "middle";
1811
- cans.fillText(str, can.width / 10, can.height, can.width);
1812
- const div = document.createElement("div");
1813
- div.id = id;
1814
- div.style.pointerEvents = "none";
1815
- div.style.top = "0px";
1816
- div.style.left = "0px";
1817
- div.style.position = "fixed";
1818
- div.style.zIndex = "10000000";
1819
- div.style.width = `${document.documentElement.clientWidth}px`;
1820
- div.style.height = `${document.documentElement.clientHeight}px`;
1821
- div.style.background = `url(${can.toDataURL("image/png")}) left top repeat`;
1822
- document.body.appendChild(div);
1823
- return id;
1824
- };
1825
- const watermark = {
1826
- // 设置水印
1827
- set: (str) => {
1828
- let id = setWatermark(str);
1829
- if (document.getElementById(id) === null) id = setWatermark(str);
1830
- },
1831
- // 删除水印
1832
- del: () => {
1833
- let id = "1.23452384164.123412416";
1834
- if (document.getElementById(id) !== null) document.body.removeChild(document.getElementById(id));
1861
+ const useTagsViewRoutes = defineStore("tagsViewRoutes", {
1862
+ state: () => ({
1863
+ tagsViewRoutes: [],
1864
+ isTagsViewCurrenFull: false
1865
+ }),
1866
+ actions: {
1867
+ async setTagsViewRoutes(data) {
1868
+ this.tagsViewRoutes = data;
1869
+ },
1870
+ setCurrenFullscreen(bool) {
1871
+ Session.set("isTagsViewCurrenFull", bool);
1872
+ this.isTagsViewCurrenFull = bool;
1873
+ }
1835
1874
  }
1836
- };
1875
+ });
1837
1876
 
1838
1877
  const useThemeConfig = defineStore("themeConfig", {
1839
1878
  state: () => ({
@@ -1999,6 +2038,44 @@ const useThemeConfig = defineStore("themeConfig", {
1999
2038
  }
2000
2039
  });
2001
2040
 
2041
+ const setWatermark = (str) => {
2042
+ const id = "1.23452384164.123412416";
2043
+ if (document.getElementById(id) !== null) document.body.removeChild(document.getElementById(id));
2044
+ const can = document.createElement("canvas");
2045
+ can.width = 400;
2046
+ can.height = 200;
2047
+ const cans = can.getContext("2d");
2048
+ cans.rotate(-20 * Math.PI / 180);
2049
+ cans.font = "12px Vedana";
2050
+ cans.fillStyle = "rgba(200, 200, 200, 0.30)";
2051
+ cans.textBaseline = "middle";
2052
+ cans.fillText(str, can.width / 10, can.height, can.width);
2053
+ const div = document.createElement("div");
2054
+ div.id = id;
2055
+ div.style.pointerEvents = "none";
2056
+ div.style.top = "0px";
2057
+ div.style.left = "0px";
2058
+ div.style.position = "fixed";
2059
+ div.style.zIndex = "10000000";
2060
+ div.style.width = `${document.documentElement.clientWidth}px`;
2061
+ div.style.height = `${document.documentElement.clientHeight}px`;
2062
+ div.style.background = `url(${can.toDataURL("image/png")}) left top repeat`;
2063
+ document.body.appendChild(div);
2064
+ return id;
2065
+ };
2066
+ const watermark = {
2067
+ // 设置水印
2068
+ set: (str) => {
2069
+ let id = setWatermark(str);
2070
+ if (document.getElementById(id) === null) id = setWatermark(str);
2071
+ },
2072
+ // 删除水印
2073
+ del: () => {
2074
+ let id = "1.23452384164.123412416";
2075
+ if (document.getElementById(id) !== null) document.body.removeChild(document.getElementById(id));
2076
+ }
2077
+ };
2078
+
2002
2079
  const useBaseApi = (module, options = {}) => {
2003
2080
  const baseUrl = `/api/${module}/`;
2004
2081
  const request = (config, cancel = false) => {
@@ -18590,83 +18667,6 @@ const useLocale = (localeOverrides) => {
18590
18667
  }));
18591
18668
  };
18592
18669
 
18593
- const useKeepALiveNames = defineStore("keepALiveNames", {
18594
- state: () => ({
18595
- keepAliveNames: [],
18596
- cachedViews: []
18597
- }),
18598
- actions: {
18599
- async setCacheKeepAlive(data) {
18600
- this.keepAliveNames = data;
18601
- },
18602
- async addCachedView(view) {
18603
- var _a;
18604
- if (view.meta.isKeepAlive) (_a = this.cachedViews) == null ? void 0 : _a.push(view.name);
18605
- },
18606
- async delCachedView(view) {
18607
- const index = this.cachedViews.indexOf(view.name);
18608
- if (index > -1) this.cachedViews.splice(index, 1);
18609
- },
18610
- async delOthersCachedViews(view) {
18611
- if (view.meta.isKeepAlive) this.cachedViews = [view.name];
18612
- else this.cachedViews = [];
18613
- },
18614
- async delAllCachedViews() {
18615
- this.cachedViews = [];
18616
- }
18617
- }
18618
- });
18619
-
18620
- const useRequestOldRoutes = defineStore("requestOldRoutes", {
18621
- state: () => ({
18622
- requestOldRoutes: []
18623
- }),
18624
- actions: {
18625
- async setRequestOldRoutes(routes) {
18626
- this.requestOldRoutes = routes;
18627
- }
18628
- }
18629
- });
18630
-
18631
- const useRoutesList = defineStore("routesList", {
18632
- state: () => ({
18633
- routesList: [],
18634
- isColumnsMenuHover: false,
18635
- isColumnsNavHover: false,
18636
- currentRoute: null
18637
- }),
18638
- actions: {
18639
- setCurrentRoute(route) {
18640
- this.currentRoute = route;
18641
- },
18642
- async setRoutesList(data) {
18643
- this.routesList = data;
18644
- },
18645
- async setColumnsMenuHover(bool) {
18646
- this.isColumnsMenuHover = bool;
18647
- },
18648
- async setColumnsNavHover(bool) {
18649
- this.isColumnsNavHover = bool;
18650
- }
18651
- }
18652
- });
18653
-
18654
- const useTagsViewRoutes = defineStore("tagsViewRoutes", {
18655
- state: () => ({
18656
- tagsViewRoutes: [],
18657
- isTagsViewCurrenFull: false
18658
- }),
18659
- actions: {
18660
- async setTagsViewRoutes(data) {
18661
- this.tagsViewRoutes = data;
18662
- },
18663
- setCurrenFullscreen(bool) {
18664
- Session.set("isTagsViewCurrenFull", bool);
18665
- this.isTagsViewCurrenFull = bool;
18666
- }
18667
- }
18668
- });
18669
-
18670
18670
  function auth(value) {
18671
18671
  const stores = useUserInfo();
18672
18672
  return stores.userInfos.authApiList.some((v) => v === value);
@@ -22437,7 +22437,7 @@ var _sfc_main$o = /* @__PURE__ */ defineComponent({
22437
22437
  name: "FLayout"
22438
22438
  },
22439
22439
  __name: "index",
22440
- emits: ["layoutChangePassword", "layoutOnlineUsers", "layoutSearchMenu"],
22440
+ emits: ["layoutChangePassword", "layoutOnlineUsers", "layoutSearchMenu", "layoutSetBrowserTitle", "layoutSetOpenLink"],
22441
22441
  setup(__props, { emit: __emit }) {
22442
22442
  const layouts = {
22443
22443
  defaults: defineAsyncComponent(() => Promise.resolve().then(function () { return defaults; })),
@@ -22457,6 +22457,10 @@ var _sfc_main$o = /* @__PURE__ */ defineComponent({
22457
22457
  curMyEmit("layoutOnlineUsers");
22458
22458
  } else if (data.name == "searchFormMenu") {
22459
22459
  curMyEmit("layoutSearchMenu");
22460
+ } else if (data.name == "setFBrowserTitle") {
22461
+ curMyEmit("layoutSetBrowserTitle");
22462
+ } else if (data.name == "setFOpenLink") {
22463
+ curMyEmit("layoutSetOpenLink", data);
22460
22464
  }
22461
22465
  }
22462
22466
  });
@@ -22686,23 +22690,6 @@ function commonFunction() {
22686
22690
  };
22687
22691
  }
22688
22692
 
22689
- const { proxy } = getCurrentInstance();
22690
- function useTitle() {
22691
- const stores = useThemeConfig(pinia);
22692
- const { themeConfig } = storeToRefs(stores);
22693
- const router = proxy.$mycurRouter;
22694
- nextTick(() => {
22695
- let webTitle = "";
22696
- let globalTitle = themeConfig.value.globalTitle;
22697
- const { path, meta } = router.currentRoute.value;
22698
- if (path === "/login") {
22699
- webTitle = meta.title;
22700
- } else {
22701
- webTitle = setTagsViewNameI18n(router.currentRoute.value);
22702
- }
22703
- document.title = `${webTitle} - ${globalTitle}` || globalTitle;
22704
- });
22705
- }
22706
22693
  function setTagsViewNameI18n(item) {
22707
22694
  let tagsViewName = "";
22708
22695
  const { query, params, meta } = item;
@@ -22778,21 +22765,13 @@ function handleEmpty(list) {
22778
22765
  }
22779
22766
  return arr;
22780
22767
  }
22781
- function handleOpenLink(val) {
22782
- var _a, _b, _c;
22783
- const { origin, pathname } = window.location;
22784
- const router = proxy.$mycurRouter;
22785
- router.push(val.path);
22786
- if (verifyUrl((_a = val.meta) == null ? void 0 : _a.isLink)) window.open((_b = val.meta) == null ? void 0 : _b.isLink);
22787
- else window.open(`${origin}${pathname}#${(_c = val.meta) == null ? void 0 : _c.isLink}`);
22788
- }
22789
22768
  const other = {
22790
22769
  // elSvg: (app: App) => {
22791
22770
  // elSvg(app);
22792
22771
  // },
22793
- useTitle: () => {
22794
- useTitle();
22795
- },
22772
+ // useTitle: () => {
22773
+ // useTitle();
22774
+ // },
22796
22775
  setTagsViewNameI18n(route) {
22797
22776
  return setTagsViewNameI18n(route);
22798
22777
  },
@@ -22810,10 +22789,10 @@ const other = {
22810
22789
  },
22811
22790
  handleEmpty: (list) => {
22812
22791
  return handleEmpty(list);
22813
- },
22814
- handleOpenLink: (val) => {
22815
- handleOpenLink(val);
22816
22792
  }
22793
+ // handleOpenLink: (val: RouteItem) => {
22794
+ // handleOpenLink(val);
22795
+ // },
22817
22796
  };
22818
22797
 
22819
22798
  const _hoisted_1$i = { class: "layout-breadcrumb-seting" };
@@ -26379,6 +26358,7 @@ var _sfc_main$c = /* @__PURE__ */ defineComponent({
26379
26358
  setup(__props) {
26380
26359
  const SubItem = defineAsyncComponent(() => Promise.resolve().then(function () { return subItem; }));
26381
26360
  const props = __props;
26361
+ const events = useFormEvents();
26382
26362
  const storesThemeConfig = useThemeConfig();
26383
26363
  const { themeConfig } = storeToRefs(storesThemeConfig);
26384
26364
  const route = useRoute();
@@ -26400,7 +26380,10 @@ var _sfc_main$c = /* @__PURE__ */ defineComponent({
26400
26380
  else return path;
26401
26381
  };
26402
26382
  const onALinkClick = (val) => {
26403
- other.handleOpenLink(val);
26383
+ events.onFormDialogOpen({
26384
+ name: "setFOpenLink",
26385
+ data: val
26386
+ });
26404
26387
  };
26405
26388
  onMounted(() => {
26406
26389
  state.defaultActive = setParentHighlight(route);
@@ -26898,11 +26881,15 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
26898
26881
  },
26899
26882
  setup(__props) {
26900
26883
  const props = __props;
26884
+ const events = useFormEvents();
26901
26885
  const chils = computed(() => {
26902
26886
  return props.chil;
26903
26887
  });
26904
26888
  const onALinkClick = (val) => {
26905
- other.handleOpenLink(val);
26889
+ events.onFormDialogOpen({
26890
+ name: "setFOpenLink",
26891
+ data: val
26892
+ });
26906
26893
  };
26907
26894
  return (_ctx, _cache) => {
26908
26895
  const _component_SvgIcon = resolveComponent("SvgIcon");
@@ -27527,7 +27514,9 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
27527
27514
  Local.set("themeConfig", themeConfig.value);
27528
27515
  currentCountryCode.value = getCountryCode(lang);
27529
27516
  locale.value = lang;
27530
- other.useTitle();
27517
+ events.onFormDialogOpen({
27518
+ name: "setFBrowserTitle"
27519
+ });
27531
27520
  initI18nOrSize("globalI18n", "disabledI18n");
27532
27521
  refreshCurrentTabpage();
27533
27522
  if (lang == "en") window.$changeLang("en");
@@ -28127,8 +28116,12 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
28127
28116
  else state.defaultActive = path;
28128
28117
  }
28129
28118
  };
28119
+ const events = useFormEvents();
28130
28120
  const onALinkClick = (val) => {
28131
- other.handleOpenLink(val);
28121
+ events.onFormDialogOpen({
28122
+ name: "setFOpenLink",
28123
+ data: val
28124
+ });
28132
28125
  };
28133
28126
  onBeforeMount(() => {
28134
28127
  setCurrentRouterHighlight(route);
@@ -28572,4 +28565,4 @@ var upgradeInfo = /*#__PURE__*/Object.freeze({
28572
28565
  default: _sfc_main
28573
28566
  });
28574
28567
 
28575
- export { AccountTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFun, commonFunction, dataURLtoBlob, decryptJWT, installer as default, destroyIdleTimeout, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getHeader, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initIdleTimeout, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, posId, posName, provideFormEvents, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, restartSignalR, roles, saulVModel, service, setCssCdn, setIntroduction, setJsCdn, setupI18n, signalR, signatureByKSort, sleep, tansParams, tenantId, translate, updateFavicon, updateIdleTimeout, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormEvents, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
28568
+ export { AccountTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFun, commonFunction, dataURLtoBlob, decryptJWT, installer as default, destroyIdleTimeout, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getHeader, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initIdleTimeout, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, pinia, posId, posName, provideFormEvents, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, restartSignalR, roles, saulVModel, service, setCssCdn, setIntroduction, setJsCdn, setupI18n, signalR, signatureByKSort, sleep, tansParams, tenantId, translate, updateFavicon, updateIdleTimeout, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormEvents, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
@@ -5,10 +5,14 @@ export declare const FLayout: {
5
5
  onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
6
6
  onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
7
7
  onLayoutSearchMenu?: ((...args: any[]) => any) | undefined;
8
+ onLayoutSetBrowserTitle?: ((...args: any[]) => any) | undefined;
9
+ onLayoutSetOpenLink?: ((...args: any[]) => any) | undefined;
8
10
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
11
  layoutChangePassword: (...args: any[]) => void;
10
12
  layoutOnlineUsers: (...args: any[]) => void;
11
13
  layoutSearchMenu: (...args: any[]) => void;
14
+ layoutSetBrowserTitle: (...args: any[]) => void;
15
+ layoutSetOpenLink: (...args: any[]) => void;
12
16
  }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
13
17
  P: {};
14
18
  B: {};
@@ -20,6 +24,8 @@ export declare const FLayout: {
20
24
  onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
21
25
  onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
22
26
  onLayoutSearchMenu?: ((...args: any[]) => any) | undefined;
27
+ onLayoutSetBrowserTitle?: ((...args: any[]) => any) | undefined;
28
+ onLayoutSetOpenLink?: ((...args: any[]) => any) | undefined;
23
29
  }>, {}, {}, {}, {}, {}>;
24
30
  __isFragment?: never;
25
31
  __isTeleport?: never;
@@ -28,10 +34,14 @@ export declare const FLayout: {
28
34
  onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
29
35
  onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
30
36
  onLayoutSearchMenu?: ((...args: any[]) => any) | undefined;
37
+ onLayoutSetBrowserTitle?: ((...args: any[]) => any) | undefined;
38
+ onLayoutSetOpenLink?: ((...args: any[]) => any) | undefined;
31
39
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
32
40
  layoutChangePassword: (...args: any[]) => void;
33
41
  layoutOnlineUsers: (...args: any[]) => void;
34
42
  layoutSearchMenu: (...args: any[]) => void;
43
+ layoutSetBrowserTitle: (...args: any[]) => void;
44
+ layoutSetOpenLink: (...args: any[]) => void;
35
45
  }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
36
46
  $slots: any;
37
47
  });
@@ -10,10 +10,14 @@ declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOpti
10
10
  layoutChangePassword: (...args: any[]) => void;
11
11
  layoutOnlineUsers: (...args: any[]) => void;
12
12
  layoutSearchMenu: (...args: any[]) => void;
13
+ layoutSetBrowserTitle: (...args: any[]) => void;
14
+ layoutSetOpenLink: (...args: any[]) => void;
13
15
  }, string, PublicProps, Readonly<{}> & Readonly<{
14
16
  onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
15
17
  onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
16
18
  onLayoutSearchMenu?: ((...args: any[]) => any) | undefined;
19
+ onLayoutSetBrowserTitle?: ((...args: any[]) => any) | undefined;
20
+ onLayoutSetOpenLink?: ((...args: any[]) => any) | undefined;
17
21
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
18
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
23
  export default _default;
@@ -1,9 +1,8 @@
1
- import { EmptyArrayType, EmptyObjectType, RouteItem, RouteToFrom } from 'fmdeui-fmui/es/types';
1
+ import { EmptyArrayType, EmptyObjectType, RouteToFrom } from 'fmdeui-fmui/es/types';
2
2
  /**
3
3
  * 设置浏览器标题国际化
4
4
  * @method const title = useTitle(); ==> title()
5
5
  */
6
- export declare function useTitle(): void;
7
6
  /**
8
7
  * 设置 自定义 tagsView 名称、 自定义 tagsView 名称国际化
9
8
  * @param params 路由 query、params 中的 tagsViewName
@@ -43,7 +42,6 @@ export declare function handleEmpty(list: EmptyArrayType): EmptyArrayType;
43
42
  * 打开外部链接
44
43
  * @param val 当前点击项菜单
45
44
  */
46
- export declare function handleOpenLink(val: RouteItem): void;
47
45
  /**
48
46
  * 统一批量导出
49
47
  * @method elSvg 导出全局注册 element plus svg 图标
@@ -57,13 +55,11 @@ export declare function handleOpenLink(val: RouteItem): void;
57
55
  * @method handleOpenLink 打开外部链接
58
56
  */
59
57
  declare const other: {
60
- useTitle: () => void;
61
58
  setTagsViewNameI18n(route: RouteToFrom): string;
62
59
  lazyImg: (el: string, arr: EmptyArrayType) => void;
63
60
  globalComponentSize: () => string;
64
61
  deepClone: (obj: EmptyObjectType) => EmptyObjectType;
65
62
  isMobile: () => boolean;
66
63
  handleEmpty: (list: EmptyArrayType) => EmptyArrayType;
67
- handleOpenLink: (val: RouteItem) => void;
68
64
  };
69
65
  export default other;
package/lib/index.js CHANGED
@@ -34,6 +34,7 @@ var gpsConvertor = require('./packages/utils/gpsConvertor.js');
34
34
  var useInfo = require('./packages/hooks/useInfo.js');
35
35
  var toolsValidate = require('./packages/utils/toolsValidate.js');
36
36
  var sysInfo = require('./packages/hooks/sysInfo.js');
37
+ var inpinia = require('./packages/stores/inpinia.js');
37
38
  var useDialogEvents = require('./packages/hooks/composables/useDialogEvents.js');
38
39
  var signalR = require('./packages/utils/signalR.js');
39
40
  var saulVModel = require('./packages/utils/saulVModel.js');
@@ -179,6 +180,7 @@ exports.verifyTextColor = toolsValidate.verifyTextColor;
179
180
  exports.verifyUrl = toolsValidate.verifyUrl;
180
181
  exports.loadSysInfo = sysInfo.loadSysInfo;
181
182
  exports.updateFavicon = sysInfo.updateFavicon;
183
+ exports.pinia = inpinia.default;
182
184
  exports.provideFormEvents = useDialogEvents.provideFormEvents;
183
185
  exports.useFormEvents = useDialogEvents.useFormEvents;
184
186
  exports.restartSignalR = signalR.restartSignalR;
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var inpinia = require('./packages/stores/inpinia.js');
3
+ require('./packages/stores/index.js');
4
4
  var index$1 = require('./packages/directive/index.js');
5
5
  var setupVXETableHook = require('./packages/hooks/setupVXETableHook.js');
6
6
  require('./packages/components/index.js');
7
+ var inpinia = require('./packages/stores/inpinia.js');
7
8
  var index = require('./packages/components/svgIcon/index.js');
8
9
 
9
10
  const makeInstaller = (components = []) => {
@@ -17,7 +17,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
17
  name: "FLayout"
18
18
  },
19
19
  __name: "index",
20
- emits: ["layoutChangePassword", "layoutOnlineUsers", "layoutSearchMenu"],
20
+ emits: ["layoutChangePassword", "layoutOnlineUsers", "layoutSearchMenu", "layoutSetBrowserTitle", "layoutSetOpenLink"],
21
21
  setup(__props, { emit: __emit }) {
22
22
  const layouts = {
23
23
  defaults: vue.defineAsyncComponent(() => Promise.resolve().then(function () { return require('./main/defaults.vue.js'); })),
@@ -37,6 +37,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
37
37
  curMyEmit("layoutOnlineUsers");
38
38
  } else if (data.name == "searchFormMenu") {
39
39
  curMyEmit("layoutSearchMenu");
40
+ } else if (data.name == "setFBrowserTitle") {
41
+ curMyEmit("layoutSetBrowserTitle");
42
+ } else if (data.name == "setFOpenLink") {
43
+ curMyEmit("layoutSetOpenLink", data);
40
44
  }
41
45
  }
42
46
  });
@@ -15,7 +15,6 @@ require('../../../../../api/index.js');
15
15
  var index = require('../../../../../locale/index.js');
16
16
  require('../../../../../hooks/index.js');
17
17
  var mitt = require('../../../../../utils/mitt.js');
18
- var other = require('../../../../../hooks/other.js');
19
18
  var Push = require('push.js');
20
19
  var routesList = require('../../../../../stores/routesList.js');
21
20
  var userInfo = require('../../../../../stores/userInfo.js');
@@ -154,7 +153,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
154
153
  storage.Local.set("themeConfig", themeConfig$1.value);
155
154
  currentCountryCode.value = index.getCountryCode(lang);
156
155
  locale.value = lang;
157
- other.default.useTitle();
156
+ events.onFormDialogOpen({
157
+ name: "setFBrowserTitle"
158
+ });
158
159
  initI18nOrSize("globalI18n", "disabledI18n");
159
160
  refreshCurrentTabpage();
160
161
  if (lang == "en") window.$changeLang("en");
@@ -7,9 +7,10 @@ var vueRouter = require('vue-router');
7
7
  var pinia = require('pinia');
8
8
  require('../../../../stores/index.js');
9
9
  var mitt = require('../../../../utils/mitt.js');
10
- var other = require('../../../../hooks/other.js');
10
+ require('../../../../hooks/index.js');
11
11
  var routesList = require('../../../../stores/routesList.js');
12
12
  var themeConfig = require('../../../../stores/themeConfig.js');
13
+ var useDialogEvents = require('../../../../hooks/composables/useDialogEvents.js');
13
14
 
14
15
  const _hoisted_1 = { class: "el-menu-horizontal-warp" };
15
16
  const _hoisted_2 = ["onClick"];
@@ -69,8 +70,12 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
69
70
  else state.defaultActive = path;
70
71
  }
71
72
  };
73
+ const events = useDialogEvents.useFormEvents();
72
74
  const onALinkClick = (val) => {
73
- other.default.handleOpenLink(val);
75
+ events.onFormDialogOpen({
76
+ name: "setFOpenLink",
77
+ data: val
78
+ });
74
79
  };
75
80
  vue.onBeforeMount(() => {
76
81
  setCurrentRouterHighlight(route);
@@ -3,7 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
- var other = require('../../../../hooks/other.js');
6
+ require('../../../../hooks/index.js');
7
+ var useDialogEvents = require('../../../../hooks/composables/useDialogEvents.js');
7
8
 
8
9
  const _hoisted_1 = ["onClick"];
9
10
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
@@ -17,11 +18,15 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
18
  },
18
19
  setup(__props) {
19
20
  const props = __props;
21
+ const events = useDialogEvents.useFormEvents();
20
22
  const chils = vue.computed(() => {
21
23
  return props.chil;
22
24
  });
23
25
  const onALinkClick = (val) => {
24
- other.default.handleOpenLink(val);
26
+ events.onFormDialogOpen({
27
+ name: "setFOpenLink",
28
+ data: val
29
+ });
25
30
  };
26
31
  return (_ctx, _cache) => {
27
32
  const _component_SvgIcon = vue.resolveComponent("SvgIcon");
@@ -6,7 +6,8 @@ var vue = require('vue');
6
6
  var vueRouter = require('vue-router');
7
7
  var pinia = require('pinia');
8
8
  require('../../../../stores/index.js');
9
- var other = require('../../../../hooks/other.js');
9
+ require('../../../../hooks/index.js');
10
+ var useDialogEvents = require('../../../../hooks/composables/useDialogEvents.js');
10
11
  var themeConfig = require('../../../../stores/themeConfig.js');
11
12
 
12
13
  const _hoisted_1 = ["onClick"];
@@ -22,6 +23,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
22
23
  setup(__props) {
23
24
  const SubItem = vue.defineAsyncComponent(() => Promise.resolve().then(function () { return require('./subItem.vue.js'); }));
24
25
  const props = __props;
26
+ const events = useDialogEvents.useFormEvents();
25
27
  const storesThemeConfig = themeConfig.useThemeConfig();
26
28
  const { themeConfig: themeConfig$1 } = pinia.storeToRefs(storesThemeConfig);
27
29
  const route = vueRouter.useRoute();
@@ -43,7 +45,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
43
45
  else return path;
44
46
  };
45
47
  const onALinkClick = (val) => {
46
- other.default.handleOpenLink(val);
48
+ events.onFormDialogOpen({
49
+ name: "setFOpenLink",
50
+ data: val
51
+ });
47
52
  };
48
53
  vue.onMounted(() => {
49
54
  state.defaultActive = setParentHighlight(route);