@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
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.36 */
|
|
2
2
|
import { defineComponent, reactive, computed, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString as toDisplayString$1, withDirectives, createElementBlock, Fragment, renderList, vShow, ref, onMounted, nextTick, normalizeStyle, createCommentVNode, normalizeClass, withModifiers, resolveDynamicComponent, effectScope, getCurrentInstance, shallowRef, isRef as isRef$1, inject, onUnmounted, h, Text, markRaw, toRaw as toRaw$1, hasInjectionContext, unref, isReactive as isReactive$1, toRef, getCurrentScope, onScopeDispose, toRefs, resolveDirective } from 'vue';
|
|
3
3
|
import crypto from 'crypto';
|
|
4
4
|
import require$$0 from 'url';
|
|
@@ -29691,6 +29691,16 @@ const useBaseApi = (module) => {
|
|
|
29691
29691
|
cancel
|
|
29692
29692
|
);
|
|
29693
29693
|
},
|
|
29694
|
+
post: function(data, action, cancel = false) {
|
|
29695
|
+
return request(
|
|
29696
|
+
{
|
|
29697
|
+
url: baseUrl + action,
|
|
29698
|
+
method: "post",
|
|
29699
|
+
data
|
|
29700
|
+
},
|
|
29701
|
+
cancel
|
|
29702
|
+
);
|
|
29703
|
+
},
|
|
29694
29704
|
gcomm: function(params, action, cancel = false) {
|
|
29695
29705
|
return request(
|
|
29696
29706
|
{
|
|
@@ -29701,6 +29711,16 @@ const useBaseApi = (module) => {
|
|
|
29701
29711
|
cancel
|
|
29702
29712
|
);
|
|
29703
29713
|
},
|
|
29714
|
+
get: function(params, action, cancel = false) {
|
|
29715
|
+
return request(
|
|
29716
|
+
{
|
|
29717
|
+
url: baseUrl + action,
|
|
29718
|
+
method: "get",
|
|
29719
|
+
params
|
|
29720
|
+
},
|
|
29721
|
+
cancel
|
|
29722
|
+
);
|
|
29723
|
+
},
|
|
29704
29724
|
page: function(data, cancel = false) {
|
|
29705
29725
|
return request(
|
|
29706
29726
|
{
|
|
@@ -29845,6 +29865,11 @@ const useBaseApi = (module) => {
|
|
|
29845
29865
|
};
|
|
29846
29866
|
};
|
|
29847
29867
|
|
|
29868
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
29869
|
+
__proto__: null,
|
|
29870
|
+
useBaseApi: useBaseApi
|
|
29871
|
+
});
|
|
29872
|
+
|
|
29848
29873
|
function useSysApi() {
|
|
29849
29874
|
return {
|
|
29850
29875
|
getSysInfo: (id) => {
|
|
@@ -36341,7 +36366,7 @@ const useThemeConfig = defineStore("themeConfig", {
|
|
|
36341
36366
|
* 全局主题
|
|
36342
36367
|
*/
|
|
36343
36368
|
// 默认 primary 主题颜色
|
|
36344
|
-
primary: "#
|
|
36369
|
+
primary: "#1095DF",
|
|
36345
36370
|
//胭脂红:#f03f24 //飞燕草蓝:#0f59a4 //薄荷绿:#207f4c
|
|
36346
36371
|
// 是否开启深色模式
|
|
36347
36372
|
isIsDark: false,
|
|
@@ -36369,7 +36394,7 @@ const useThemeConfig = defineStore("themeConfig", {
|
|
|
36369
36394
|
* 分栏设置
|
|
36370
36395
|
*/
|
|
36371
36396
|
// 默认分栏菜单背景颜色
|
|
36372
|
-
columnsMenuBar: "#
|
|
36397
|
+
columnsMenuBar: "#1095DF",
|
|
36373
36398
|
// 默认分栏菜单字体颜色
|
|
36374
36399
|
columnsMenuBarColor: "#F0F0F0",
|
|
36375
36400
|
// 是否开启分栏菜单背景颜色渐变
|
|
@@ -52228,4 +52253,4 @@ const version = "1.0.0";
|
|
|
52228
52253
|
|
|
52229
52254
|
const install = installer.install;
|
|
52230
52255
|
|
|
52231
|
-
export { FmDragImg, FmLogin, FmNoticeBar, FmTransfer, Local, NextLoading, PUB, Session, Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFunction, commonFunctionObj, dataURLtoBlob, decryptJWT, installer as default, directive, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, elSvg, emitter, feature, fileToBase64, formatAxis, formatDate, formatPast, getCountryCode, getFileName, getFileUrl, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, i18n, install, isObjectValueEqual, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, mergMessage, openWindow, pinia, refreshAccessTokenKey, removeDuplicate, request2, service, setIntroduction, setupI18n, signatureByKSort, tansParams, urlToBase64, useBaseApi, useChangeColor, useDateTimeShortCust, useKeepALiveNames, useLoginApi, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version };
|
|
52256
|
+
export { FmDragImg, FmLogin, FmNoticeBar, FmTransfer, Local, NextLoading, PUB, Session, Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFunction, commonFunctionObj, dataURLtoBlob, decryptJWT, installer as default, directive, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, elSvg, emitter, feature, fileToBase64, formatAxis, formatDate, formatPast, index as getApi, getCountryCode, getFileName, getFileUrl, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, i18n, install, isObjectValueEqual, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, mergMessage, openWindow, pinia, refreshAccessTokenKey, removeDuplicate, request2, service, setIntroduction, setupI18n, signatureByKSort, tansParams, urlToBase64, useBaseApi, useChangeColor, useDateTimeShortCust, useKeepALiveNames, useLoginApi, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version };
|
|
@@ -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/lib/core/api/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -53,6 +53,7 @@ exports.FmTransfer = index$1.FmTransfer;
|
|
|
53
53
|
exports.elSvg = index$2.elSvg;
|
|
54
54
|
exports.FmLogin = index$3.FmLogin;
|
|
55
55
|
exports.NextLoading = index$4.NextLoading;
|
|
56
|
+
exports.getApi = index$5;
|
|
56
57
|
exports.useBaseApi = index$5.useBaseApi;
|
|
57
58
|
exports.feature = index$6.feature;
|
|
58
59
|
exports.useSysApi = index$6.useSysApi;
|
|
@@ -24,6 +24,16 @@ const useBaseApi = (module) => {
|
|
|
24
24
|
cancel
|
|
25
25
|
);
|
|
26
26
|
},
|
|
27
|
+
post: function(data, action, cancel = false) {
|
|
28
|
+
return request$1(
|
|
29
|
+
{
|
|
30
|
+
url: baseUrl + action,
|
|
31
|
+
method: "post",
|
|
32
|
+
data
|
|
33
|
+
},
|
|
34
|
+
cancel
|
|
35
|
+
);
|
|
36
|
+
},
|
|
27
37
|
gcomm: function(params, action, cancel = false) {
|
|
28
38
|
return request$1(
|
|
29
39
|
{
|
|
@@ -34,6 +44,16 @@ const useBaseApi = (module) => {
|
|
|
34
44
|
cancel
|
|
35
45
|
);
|
|
36
46
|
},
|
|
47
|
+
get: function(params, action, cancel = false) {
|
|
48
|
+
return request$1(
|
|
49
|
+
{
|
|
50
|
+
url: baseUrl + action,
|
|
51
|
+
method: "get",
|
|
52
|
+
params
|
|
53
|
+
},
|
|
54
|
+
cancel
|
|
55
|
+
);
|
|
56
|
+
},
|
|
37
57
|
page: function(data, cancel = false) {
|
|
38
58
|
return request$1(
|
|
39
59
|
{
|
|
@@ -61,6 +61,7 @@ exports.hAuths = index$f.hAuths;
|
|
|
61
61
|
exports.useDateTimeShortCust = dateTimeShortCust.useDateTimeShortCust;
|
|
62
62
|
exports.useVxeTable = useVxeTableOptionsHook.useVxeTable;
|
|
63
63
|
exports.elSvg = index$1.elSvg;
|
|
64
|
+
exports.getApi = index$4;
|
|
64
65
|
exports.useBaseApi = index$4.useBaseApi;
|
|
65
66
|
exports.feature = index$5.feature;
|
|
66
67
|
exports.useSysApi = index$5.useSysApi;
|
|
@@ -11,7 +11,7 @@ const useThemeConfig = pinia.defineStore("themeConfig", {
|
|
|
11
11
|
* 全局主题
|
|
12
12
|
*/
|
|
13
13
|
// 默认 primary 主题颜色
|
|
14
|
-
primary: "#
|
|
14
|
+
primary: "#1095DF",
|
|
15
15
|
//胭脂红:#f03f24 //飞燕草蓝:#0f59a4 //薄荷绿:#207f4c
|
|
16
16
|
// 是否开启深色模式
|
|
17
17
|
isIsDark: false,
|
|
@@ -39,7 +39,7 @@ const useThemeConfig = pinia.defineStore("themeConfig", {
|
|
|
39
39
|
* 分栏设置
|
|
40
40
|
*/
|
|
41
41
|
// 默认分栏菜单背景颜色
|
|
42
|
-
columnsMenuBar: "#
|
|
42
|
+
columnsMenuBar: "#1095DF",
|
|
43
43
|
// 默认分栏菜单字体颜色
|
|
44
44
|
columnsMenuBarColor: "#F0F0F0",
|
|
45
45
|
// 是否开启分栏菜单背景颜色渐变
|
package/package.json
CHANGED
|
File without changes
|