@fmdevui/fm-dev 1.0.36 → 1.0.38

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.
@@ -3,3 +3,15 @@ export * as getApi from './base';
3
3
  export * from './sys';
4
4
  export * from './login';
5
5
  export * from './utils/request';
6
+ /**
7
+ * 账号类型枚举<br />&nbsp;会员 Member = 666<br />&nbsp;普通账号 NormalUser = 777<br />&nbsp;系统管理员 SysAdmin = 888<br />&nbsp;平台管理 987;超级管理员 SuperAdmin = 999<br />
8
+ * @export
9
+ * @enum {string}
10
+ */
11
+ export declare enum AccountTypeEnum {
12
+ NUMBER_666 = 666,
13
+ NUMBER_777 = 777,
14
+ NUMBER_888 = 888,
15
+ NUMBER_987 = 987,
16
+ NUMBER_999 = 999
17
+ }
package/es/index.mjs CHANGED
@@ -13,6 +13,7 @@ export { useBaseApi } from './packages/core/api/base/index.mjs';
13
13
  export { feature, useSysApi } from './packages/core/api/sys/index.mjs';
14
14
  export { useLoginApi } from './packages/core/api/login/index.mjs';
15
15
  export { accessTokenKey, axiosInstance, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, decryptJWT, getJWTDate, getToken, refreshAccessTokenKey, request2, service, tansParams } from './packages/core/api/utils/request.mjs';
16
+ export { AccountTypeEnum } from './packages/core/api/index.mjs';
16
17
  export { directive } from './packages/core/directive/index.mjs';
17
18
  export { getCountryCode, i18n, iso_3166_1_CountryList, languageList, mergMessage, setupI18n } from './packages/core/locales/index.mjs';
18
19
  export { pinia } from './packages/core/stores/inpinia.mjs';
@@ -4,3 +4,14 @@ export { useBaseApi } from './base/index.mjs';
4
4
  export { feature, useSysApi } from './sys/index.mjs';
5
5
  export { useLoginApi } from './login/index.mjs';
6
6
  export { accessTokenKey, axiosInstance, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, decryptJWT, getJWTDate, getToken, refreshAccessTokenKey, request2, service, tansParams } from './utils/request.mjs';
7
+
8
+ var AccountTypeEnum = /* @__PURE__ */ ((AccountTypeEnum2) => {
9
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_666"] = 666] = "NUMBER_666";
10
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_777"] = 777] = "NUMBER_777";
11
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_888"] = 888] = "NUMBER_888";
12
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_987"] = 987] = "NUMBER_987";
13
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_999"] = 999] = "NUMBER_999";
14
+ return AccountTypeEnum2;
15
+ })(AccountTypeEnum || {});
16
+
17
+ export { AccountTypeEnum };
@@ -1,7 +1,7 @@
1
1
  export { FmDragImg, FmNoticeBar, FmTransfer } from './ui/components/index.mjs';
2
2
  export { FmLogin } from './ui/login/index.mjs';
3
3
  export { NextLoading } from './ui/loading/index.mjs';
4
- import './api/index.mjs';
4
+ export { AccountTypeEnum } from './api/index.mjs';
5
5
  export { directive } from './directive/index.mjs';
6
6
  export { getCountryCode, i18n, iso_3166_1_CountryList, languageList, mergMessage, setupI18n } from './locales/index.mjs';
7
7
  import './stores/index.mjs';
@@ -148,6 +148,7 @@ const useUserInfo = defineStore("userInfo", {
148
148
  }
149
149
  });
150
150
  const setDictLangMessageAsync = async (dict) => {
151
+ return;
151
152
  dict.langMessage = `message.dictType.${dict.typeCode}_${dict.value}`;
152
153
  const text = i18n.global.t(dict.langMessage);
153
154
  dict.label = text !== dict.langMessage && !text.endsWith(`${dict.typeCode}_${dict.value}`) ? text : dict.label;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.36 */
1
+ /*! fm-dev v1.0.38 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
@@ -30095,6 +30095,15 @@
30095
30095
  };
30096
30096
  }
30097
30097
 
30098
+ var AccountTypeEnum = /* @__PURE__ */ ((AccountTypeEnum2) => {
30099
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_666"] = 666] = "NUMBER_666";
30100
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_777"] = 777] = "NUMBER_777";
30101
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_888"] = 888] = "NUMBER_888";
30102
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_987"] = 987] = "NUMBER_987";
30103
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_999"] = 999] = "NUMBER_999";
30104
+ return AccountTypeEnum2;
30105
+ })(AccountTypeEnum || {});
30106
+
30098
30107
  var __create$1 = Object.create;
30099
30108
  var __defProp$1 = Object.defineProperty;
30100
30109
  var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
@@ -49920,9 +49929,7 @@
49920
49929
  }
49921
49930
  });
49922
49931
  const setDictLangMessageAsync = async (dict) => {
49923
- dict.langMessage = `message.dictType.${dict.typeCode}_${dict.value}`;
49924
- const text = i18n.global.t(dict.langMessage);
49925
- dict.label = text !== dict.langMessage && !text.endsWith(`${dict.typeCode}_${dict.value}`) ? text : dict.label;
49932
+ return;
49926
49933
  };
49927
49934
 
49928
49935
  function authDirective(app) {
@@ -52248,6 +52255,7 @@
52248
52255
 
52249
52256
  const install = installer.install;
52250
52257
 
52258
+ exports.AccountTypeEnum = AccountTypeEnum;
52251
52259
  exports.FmDragImg = FmDragImg;
52252
52260
  exports.FmLogin = FmLogin;
52253
52261
  exports.FmNoticeBar = FmNoticeBar;