@fmdevui/fm-dev 1.0.47 → 1.0.48
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/utils/comm/uploadfileurl.d.ts +7 -1
- package/es/index.mjs +1 -1
- package/es/packages/core/index.mjs +1 -1
- package/es/packages/core/utils/comm/index.mjs +1 -1
- package/es/packages/core/utils/comm/uploadfileurl.mjs +8 -1
- package/es/packages/core/utils/index.mjs +1 -1
- package/index.js +9 -1
- package/index.min.js +15 -15
- package/index.min.mjs +15 -15
- package/index.mjs +9 -2
- package/lib/core/utils/comm/uploadfileurl.d.ts +7 -1
- package/lib/index.js +1 -0
- package/lib/packages/core/index.js +1 -0
- package/lib/packages/core/utils/comm/index.js +1 -0
- package/lib/packages/core/utils/comm/uploadfileurl.js +8 -0
- package/lib/packages/core/utils/index.js +1 -0
- package/package.json +1 -1
- /package/es/{defaults.css → version.css} +0 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.48 */
|
|
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';
|
|
@@ -22307,6 +22307,13 @@ const getFileUrl = (row) => {
|
|
|
22307
22307
|
return `/${row.filePath}/${row.id}${row.suffix}`;
|
|
22308
22308
|
}
|
|
22309
22309
|
};
|
|
22310
|
+
const showFileUrl = (url) => {
|
|
22311
|
+
if (window.__env__.VITE_IMG_URL) {
|
|
22312
|
+
return window.__env__.VITE_IMG_URL + url;
|
|
22313
|
+
} else {
|
|
22314
|
+
return url;
|
|
22315
|
+
}
|
|
22316
|
+
};
|
|
22310
22317
|
|
|
22311
22318
|
var clipboard$1 = {exports: {}};
|
|
22312
22319
|
|
|
@@ -52551,4 +52558,4 @@ const version = "1.0.0";
|
|
|
52551
52558
|
|
|
52552
52559
|
const install = installer.install;
|
|
52553
52560
|
|
|
52554
|
-
export { AccountTypeEnum, FmDragImg, FmLogin, FmNoticeBar, FmTransfer, HttpMethodEnum, JobCreateTypeEnum, 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, useApi, 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 };
|
|
52561
|
+
export { AccountTypeEnum, FmDragImg, FmLogin, FmNoticeBar, FmTransfer, HttpMethodEnum, JobCreateTypeEnum, 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, showFileUrl, signatureByKSort, tansParams, urlToBase64, useApi, 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 };
|
package/lib/index.js
CHANGED
|
@@ -139,6 +139,7 @@ exports.getFileName = download.getFileName;
|
|
|
139
139
|
exports.openWindow = download.openWindow;
|
|
140
140
|
exports.signatureByKSort = dataSignature.signatureByKSort;
|
|
141
141
|
exports.getFileUrl = uploadfileurl.getFileUrl;
|
|
142
|
+
exports.showFileUrl = uploadfileurl.showFileUrl;
|
|
142
143
|
exports.commonFunction = commonFunction.default;
|
|
143
144
|
exports.commonFunctionObj = index$f.commonFunctionObj;
|
|
144
145
|
exports.PUB = index$g.PUB;
|
|
@@ -139,6 +139,7 @@ exports.getFileName = download.getFileName;
|
|
|
139
139
|
exports.openWindow = download.openWindow;
|
|
140
140
|
exports.signatureByKSort = dataSignature.signatureByKSort;
|
|
141
141
|
exports.getFileUrl = uploadfileurl.getFileUrl;
|
|
142
|
+
exports.showFileUrl = uploadfileurl.showFileUrl;
|
|
142
143
|
exports.commonFunction = commonFunction.default;
|
|
143
144
|
exports.commonFunctionObj = index$e.commonFunctionObj;
|
|
144
145
|
exports.PUB = index$f.PUB;
|
|
@@ -48,5 +48,6 @@ exports.getFileName = download.getFileName;
|
|
|
48
48
|
exports.openWindow = download.openWindow;
|
|
49
49
|
exports.signatureByKSort = dataSignature.signatureByKSort;
|
|
50
50
|
exports.getFileUrl = uploadfileurl.getFileUrl;
|
|
51
|
+
exports.showFileUrl = uploadfileurl.showFileUrl;
|
|
51
52
|
exports.commonFunction = commonFunction.default;
|
|
52
53
|
exports.commonFunctionObj = commonFunctionObj;
|
|
@@ -10,5 +10,13 @@ const getFileUrl = (row) => {
|
|
|
10
10
|
return `/${row.filePath}/${row.id}${row.suffix}`;
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
+
const showFileUrl = (url) => {
|
|
14
|
+
if (window.__env__.VITE_IMG_URL) {
|
|
15
|
+
return window.__env__.VITE_IMG_URL + url;
|
|
16
|
+
} else {
|
|
17
|
+
return url;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
13
20
|
|
|
14
21
|
exports.getFileUrl = getFileUrl;
|
|
22
|
+
exports.showFileUrl = showFileUrl;
|
|
@@ -69,4 +69,5 @@ exports.getFileName = download.getFileName;
|
|
|
69
69
|
exports.openWindow = download.openWindow;
|
|
70
70
|
exports.signatureByKSort = dataSignature.signatureByKSort;
|
|
71
71
|
exports.getFileUrl = uploadfileurl.getFileUrl;
|
|
72
|
+
exports.showFileUrl = uploadfileurl.showFileUrl;
|
|
72
73
|
exports.commonFunction = commonFunction.default;
|
package/package.json
CHANGED
|
File without changes
|