@fmdevui/fm-dev 1.0.35 → 1.0.36
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/core/api/base/index.d.ts +2 -0
- package/es/core/api/index.d.ts +1 -0
- package/es/index.mjs +2 -0
- package/es/packages/core/api/base/index.mjs +20 -0
- package/es/packages/core/api/index.mjs +2 -0
- package/es/packages/core/index.mjs +2 -0
- package/es/packages/core/stores/themeConfig.mjs +2 -2
- package/index.js +29 -3
- package/index.min.js +23 -23
- package/index.min.mjs +23 -23
- package/index.mjs +29 -4
- package/lib/core/api/base/index.d.ts +2 -0
- package/lib/core/api/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/packages/core/api/base/index.js +20 -0
- package/lib/packages/core/api/index.js +1 -0
- package/lib/packages/core/index.js +1 -0
- package/lib/packages/core/stores/themeConfig.js +2 -2
- package/package.json +1 -1
- /package/es/{component.css → defaults.css} +0 -0
|
@@ -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>>;
|
package/es/core/api/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
|
@@ -7,6 +7,8 @@ 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';
|
|
@@ -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
|
{
|
|
@@ -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: "#
|
|
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: "#
|
|
40
|
+
columnsMenuBar: "#1095DF",
|
|
41
41
|
// 默认分栏菜单字体颜色
|
|
42
42
|
columnsMenuBarColor: "#F0F0F0",
|
|
43
43
|
// 是否开启分栏菜单背景颜色渐变
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.36 */
|
|
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) => {
|
|
@@ -36336,7 +36361,7 @@
|
|
|
36336
36361
|
* 全局主题
|
|
36337
36362
|
*/
|
|
36338
36363
|
// 默认 primary 主题颜色
|
|
36339
|
-
primary: "#
|
|
36364
|
+
primary: "#1095DF",
|
|
36340
36365
|
//胭脂红:#f03f24 //飞燕草蓝:#0f59a4 //薄荷绿:#207f4c
|
|
36341
36366
|
// 是否开启深色模式
|
|
36342
36367
|
isIsDark: false,
|
|
@@ -36364,7 +36389,7 @@
|
|
|
36364
36389
|
* 分栏设置
|
|
36365
36390
|
*/
|
|
36366
36391
|
// 默认分栏菜单背景颜色
|
|
36367
|
-
columnsMenuBar: "#
|
|
36392
|
+
columnsMenuBar: "#1095DF",
|
|
36368
36393
|
// 默认分栏菜单字体颜色
|
|
36369
36394
|
columnsMenuBarColor: "#F0F0F0",
|
|
36370
36395
|
// 是否开启分栏菜单背景颜色渐变
|
|
@@ -52262,6 +52287,7 @@
|
|
|
52262
52287
|
exports.formatAxis = formatAxis;
|
|
52263
52288
|
exports.formatDate = formatDate;
|
|
52264
52289
|
exports.formatPast = formatPast;
|
|
52290
|
+
exports.getApi = index;
|
|
52265
52291
|
exports.getCountryCode = getCountryCode;
|
|
52266
52292
|
exports.getFileName = getFileName;
|
|
52267
52293
|
exports.getFileUrl = getFileUrl;
|