@fmdevui/fm-dev 1.0.35 → 1.0.37

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,7 +3,9 @@ export declare const useBaseApi: (module: string) => {
3
3
  baseUrl: string;
4
4
  request: <T>(config: AxiosRequestConfig<T>, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
5
5
  pcomm: (data: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
6
+ post: (data: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
6
7
  gcomm: (params: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
8
+ get: (params: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
7
9
  page: (data: any, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
8
10
  detail: (id: any, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
9
11
  dropdownData: (data: any, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
@@ -1,4 +1,17 @@
1
1
  export * from './base';
2
+ export * as getApi from './base';
2
3
  export * from './sys';
3
4
  export * from './login';
4
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
@@ -7,10 +7,13 @@ export { FmDragImg, FmNoticeBar, FmTransfer } from './packages/core/ui/component
7
7
  export { elSvg } from './packages/core/ui/components/svgIcon/index.mjs';
8
8
  export { FmLogin } from './packages/core/ui/login/index.mjs';
9
9
  export { NextLoading } from './packages/core/ui/loading/index.mjs';
10
+ import * as index from './packages/core/api/base/index.mjs';
11
+ export { index as getApi };
10
12
  export { useBaseApi } from './packages/core/api/base/index.mjs';
11
13
  export { feature, useSysApi } from './packages/core/api/sys/index.mjs';
12
14
  export { useLoginApi } from './packages/core/api/login/index.mjs';
13
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';
14
17
  export { directive } from './packages/core/directive/index.mjs';
15
18
  export { getCountryCode, i18n, iso_3166_1_CountryList, languageList, mergMessage, setupI18n } from './packages/core/locales/index.mjs';
16
19
  export { pinia } from './packages/core/stores/inpinia.mjs';
@@ -22,6 +22,16 @@ const useBaseApi = (module) => {
22
22
  cancel
23
23
  );
24
24
  },
25
+ post: function(data, action, cancel = false) {
26
+ return request(
27
+ {
28
+ url: baseUrl + action,
29
+ method: "post",
30
+ data
31
+ },
32
+ cancel
33
+ );
34
+ },
25
35
  gcomm: function(params, action, cancel = false) {
26
36
  return request(
27
37
  {
@@ -32,6 +42,16 @@ const useBaseApi = (module) => {
32
42
  cancel
33
43
  );
34
44
  },
45
+ get: function(params, action, cancel = false) {
46
+ return request(
47
+ {
48
+ url: baseUrl + action,
49
+ method: "get",
50
+ params
51
+ },
52
+ cancel
53
+ );
54
+ },
35
55
  page: function(data, cancel = false) {
36
56
  return request(
37
57
  {
@@ -1,4 +1,17 @@
1
+ import * as index from './base/index.mjs';
2
+ export { index as getApi };
1
3
  export { useBaseApi } from './base/index.mjs';
2
4
  export { feature, useSysApi } from './sys/index.mjs';
3
5
  export { useLoginApi } from './login/index.mjs';
4
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';
@@ -11,6 +11,8 @@ export { useDateTimeShortCust } from './hook/dateTimeShortCust.mjs';
11
11
  export { useVxeTable } from './hook/useVxeTableOptionsHook.mjs';
12
12
  import './types/index.mjs';
13
13
  export { elSvg } from './ui/components/svgIcon/index.mjs';
14
+ import * as index from './api/base/index.mjs';
15
+ export { index as getApi };
14
16
  export { useBaseApi } from './api/base/index.mjs';
15
17
  export { feature, useSysApi } from './api/sys/index.mjs';
16
18
  export { useLoginApi } from './api/login/index.mjs';
@@ -9,7 +9,7 @@ const useThemeConfig = defineStore("themeConfig", {
9
9
  * 全局主题
10
10
  */
11
11
  // 默认 primary 主题颜色
12
- primary: "#0f59a4",
12
+ primary: "#1095DF",
13
13
  //胭脂红:#f03f24 //飞燕草蓝:#0f59a4 //薄荷绿:#207f4c
14
14
  // 是否开启深色模式
15
15
  isIsDark: false,
@@ -37,7 +37,7 @@ const useThemeConfig = defineStore("themeConfig", {
37
37
  * 分栏设置
38
38
  */
39
39
  // 默认分栏菜单背景颜色
40
- columnsMenuBar: "#2C3A49",
40
+ columnsMenuBar: "#1095DF",
41
41
  // 默认分栏菜单字体颜色
42
42
  columnsMenuBarColor: "#F0F0F0",
43
43
  // 是否开启分栏菜单背景颜色渐变
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.35 */
1
+ /*! fm-dev v1.0.37 */
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) :
@@ -29686,6 +29686,16 @@
29686
29686
  cancel
29687
29687
  );
29688
29688
  },
29689
+ post: function(data, action, cancel = false) {
29690
+ return request(
29691
+ {
29692
+ url: baseUrl + action,
29693
+ method: "post",
29694
+ data
29695
+ },
29696
+ cancel
29697
+ );
29698
+ },
29689
29699
  gcomm: function(params, action, cancel = false) {
29690
29700
  return request(
29691
29701
  {
@@ -29696,6 +29706,16 @@
29696
29706
  cancel
29697
29707
  );
29698
29708
  },
29709
+ get: function(params, action, cancel = false) {
29710
+ return request(
29711
+ {
29712
+ url: baseUrl + action,
29713
+ method: "get",
29714
+ params
29715
+ },
29716
+ cancel
29717
+ );
29718
+ },
29699
29719
  page: function(data, cancel = false) {
29700
29720
  return request(
29701
29721
  {
@@ -29840,6 +29860,11 @@
29840
29860
  };
29841
29861
  };
29842
29862
 
29863
+ var index = /*#__PURE__*/Object.freeze({
29864
+ __proto__: null,
29865
+ useBaseApi: useBaseApi
29866
+ });
29867
+
29843
29868
  function useSysApi() {
29844
29869
  return {
29845
29870
  getSysInfo: (id) => {
@@ -30070,6 +30095,15 @@
30070
30095
  };
30071
30096
  }
30072
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
+
30073
30107
  var __create$1 = Object.create;
30074
30108
  var __defProp$1 = Object.defineProperty;
30075
30109
  var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
@@ -36336,7 +36370,7 @@
36336
36370
  * 全局主题
36337
36371
  */
36338
36372
  // 默认 primary 主题颜色
36339
- primary: "#0f59a4",
36373
+ primary: "#1095DF",
36340
36374
  //胭脂红:#f03f24 //飞燕草蓝:#0f59a4 //薄荷绿:#207f4c
36341
36375
  // 是否开启深色模式
36342
36376
  isIsDark: false,
@@ -36364,7 +36398,7 @@
36364
36398
  * 分栏设置
36365
36399
  */
36366
36400
  // 默认分栏菜单背景颜色
36367
- columnsMenuBar: "#2C3A49",
36401
+ columnsMenuBar: "#1095DF",
36368
36402
  // 默认分栏菜单字体颜色
36369
36403
  columnsMenuBarColor: "#F0F0F0",
36370
36404
  // 是否开启分栏菜单背景颜色渐变
@@ -52223,6 +52257,7 @@
52223
52257
 
52224
52258
  const install = installer.install;
52225
52259
 
52260
+ exports.AccountTypeEnum = AccountTypeEnum;
52226
52261
  exports.FmDragImg = FmDragImg;
52227
52262
  exports.FmLogin = FmLogin;
52228
52263
  exports.FmNoticeBar = FmNoticeBar;
@@ -52262,6 +52297,7 @@
52262
52297
  exports.formatAxis = formatAxis;
52263
52298
  exports.formatDate = formatDate;
52264
52299
  exports.formatPast = formatPast;
52300
+ exports.getApi = index;
52265
52301
  exports.getCountryCode = getCountryCode;
52266
52302
  exports.getFileName = getFileName;
52267
52303
  exports.getFileUrl = getFileUrl;