@fmdeui/fmui 1.0.40 → 1.0.42
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/index.mjs +1 -0
- package/es/packages/components/fm-layout/src/logo/index.vue2.mjs +4 -2
- package/es/packages/components/fm-layout/src/navBars/topBar/user.vue2.mjs +2 -1
- package/es/packages/hooks/setupVXETableHook.mjs +0 -1
- package/es/packages/locale/index.mjs +1 -1
- package/es/packages/stores/themeConfig.mjs +2 -2
- package/es/packages/utils/index.mjs +1 -0
- package/es/packages/utils/uploadfileurl.mjs +19 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/uploadfileurl.d.ts +8 -0
- package/index.js +27 -8
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +26 -9
- package/lib/index.js +3 -0
- package/lib/packages/components/fm-layout/src/logo/index.vue2.js +4 -2
- package/lib/packages/components/fm-layout/src/navBars/topBar/user.vue2.js +2 -1
- package/lib/packages/hooks/setupVXETableHook.js +0 -1
- package/lib/packages/locale/index.js +1 -1
- package/lib/packages/stores/themeConfig.js +2 -2
- package/lib/packages/utils/index.js +3 -0
- package/lib/packages/utils/uploadfileurl.js +22 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/uploadfileurl.d.ts +8 -0
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{defaults.css → component.css} +0 -0
- /package/lib/{make-installer.css → version.css} +0 -0
package/es/index.mjs
CHANGED
|
@@ -27,6 +27,7 @@ export { feature, useSysApi } from './packages/api/sys/index.mjs';
|
|
|
27
27
|
export { flowLoading } from './packages/utils/flowLoading.mjs';
|
|
28
28
|
export { formatAxis, formatDate, formatPast, getWeek } from './packages/utils/formatTime.mjs';
|
|
29
29
|
export { gcj02ToBd09, wgs84ToBd09, wgs84ToGcj02 } from './packages/utils/gpsConvertor.mjs';
|
|
30
|
+
export { getFileUrl, showFileUrl } from './packages/utils/uploadfileurl.mjs';
|
|
30
31
|
export { hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone } from './packages/hooks/useInfo.mjs';
|
|
31
32
|
export { judgementIdCard, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl } from './packages/utils/toolsValidate.mjs';
|
|
32
33
|
export { loadSysInfo, updateFavicon } from './packages/hooks/sysInfo.mjs';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, unref, createCommentVNode, createElementVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { storeToRefs } from 'pinia';
|
|
3
3
|
import '../../../../stores/index.mjs';
|
|
4
|
+
import '../../../../utils/index.mjs';
|
|
4
5
|
import { useThemeConfig } from '../../../../stores/themeConfig.mjs';
|
|
6
|
+
import { showFileUrl } from '../../../../utils/uploadfileurl.mjs';
|
|
5
7
|
|
|
6
8
|
const _hoisted_1 = ["src"];
|
|
7
9
|
const _hoisted_2 = ["src"];
|
|
@@ -30,7 +32,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
32
|
}, [
|
|
31
33
|
showLogo.value ? (openBlock(), createElementBlock("img", {
|
|
32
34
|
key: 0,
|
|
33
|
-
src: unref(themeConfig).logoUrl,
|
|
35
|
+
src: unref(showFileUrl)(unref(themeConfig).logoUrl),
|
|
34
36
|
class: "layout-logo-medium-img"
|
|
35
37
|
}, null, 8, _hoisted_1)) : createCommentVNode("v-if", true),
|
|
36
38
|
createElementVNode(
|
|
@@ -46,7 +48,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
48
|
onClick: onThemeConfigChange
|
|
47
49
|
}, [
|
|
48
50
|
createElementVNode("img", {
|
|
49
|
-
src: unref(themeConfig).logoUrl,
|
|
51
|
+
src: unref(showFileUrl)(unref(themeConfig).logoUrl),
|
|
50
52
|
class: "layout-logo-size-img"
|
|
51
53
|
}, null, 8, _hoisted_2)
|
|
52
54
|
]));
|
|
@@ -19,6 +19,7 @@ import { useFormEvents } from '../../../../../hooks/composables/useDialogEvents.
|
|
|
19
19
|
import { Local, Session } from '../../../../../utils/storage.mjs';
|
|
20
20
|
import { useBaseApi } from '../../../../../api/base/index.mjs';
|
|
21
21
|
import { signalR } from '../../../../../utils/signalR.mjs';
|
|
22
|
+
import { showFileUrl } from '../../../../../utils/uploadfileurl.mjs';
|
|
22
23
|
import { clearAccessTokens } from '../../../../../utils/request.mjs';
|
|
23
24
|
|
|
24
25
|
const _hoisted_1 = { class: "layout-navbars-breadcrumb-user-icon" };
|
|
@@ -642,7 +643,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
642
643
|
]),
|
|
643
644
|
default: withCtx(() => [
|
|
644
645
|
createElementVNode("img", {
|
|
645
|
-
src: unref(userInfos).avatar,
|
|
646
|
+
src: unref(showFileUrl)(unref(userInfos).avatar),
|
|
646
647
|
class: "layout-navbars-breadcrumb-user-link-photo mr5"
|
|
647
648
|
}, null, 8, _hoisted_11)
|
|
648
649
|
]),
|
|
@@ -16,7 +16,6 @@ const setupVXETable = (app) => {
|
|
|
16
16
|
size: vxeSize,
|
|
17
17
|
// 全局尺寸mini、small、medium/default
|
|
18
18
|
i18n: (key, args) => i18n.global.t(key, args),
|
|
19
|
-
// i18n: (key, args) => i18n.global.t(key, args),
|
|
20
19
|
// zIndex: 999, // 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡
|
|
21
20
|
// version: 0, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
|
|
22
21
|
// loadingText: '加载中...', // 全局loading提示内容,如果为null则不显示文本
|
|
@@ -28,7 +28,7 @@ const useThemeConfig = defineStore("themeConfig", {
|
|
|
28
28
|
// 默认菜单导航背景颜色
|
|
29
29
|
menuBar: "#FFFFFF",
|
|
30
30
|
// 默认菜单导航字体颜色
|
|
31
|
-
menuBarColor: "#
|
|
31
|
+
menuBarColor: "#1095df",
|
|
32
32
|
// 默认菜单高亮背景色
|
|
33
33
|
menuBarActiveColor: "var(--el-color-primary-light-7)",
|
|
34
34
|
// 是否开启菜单背景颜色渐变
|
|
@@ -103,7 +103,7 @@ const useThemeConfig = defineStore("themeConfig", {
|
|
|
103
103
|
*/
|
|
104
104
|
// Tagsview 风格:可选值"<tags-style-one|tags-style-four|tags-style-five>",默认 tags-style-five
|
|
105
105
|
// 定义的值与 `/src/layout/navBars/tagsView/tagsView.vue` 中的 class 同名
|
|
106
|
-
tagsStyle: "tags-style-
|
|
106
|
+
tagsStyle: "tags-style-five",
|
|
107
107
|
// 主页面切换动画: Animate.css
|
|
108
108
|
animation: "fadeDown",
|
|
109
109
|
// 分栏高亮风格:可选值"<columns-round|columns-card>",默认 columns-round
|
|
@@ -13,6 +13,7 @@ export { gcj02ToBd09, wgs84ToBd09, wgs84ToGcj02 } from './gpsConvertor.mjs';
|
|
|
13
13
|
export { StringToObj } from './json-utils.mjs';
|
|
14
14
|
export { NextLoading } from './loading.mjs';
|
|
15
15
|
import './md5Signature.mjs';
|
|
16
|
+
export { getFileUrl, showFileUrl } from './uploadfileurl.mjs';
|
|
16
17
|
export { accessTokenKey, axiosInstance, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, decryptJWT, getHeader, getJWTDate, getToken, reLoadLoginAccessToken, refreshAccessTokenKey, request2, default as service, sleep, tansParams } from './request.mjs';
|
|
17
18
|
export { saulVModel } from './saulVModel.mjs';
|
|
18
19
|
export { Local, Session } from './storage.mjs';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const getFileUrl = (row) => {
|
|
2
|
+
if (row.bucketName == "Local") {
|
|
3
|
+
return `/${row.filePath}/${row.id}${row.suffix}`;
|
|
4
|
+
} else {
|
|
5
|
+
return `/${row.filePath}/${row.id}${row.suffix}`;
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
const showFileUrl = (url) => {
|
|
9
|
+
if (url == "logo.png") {
|
|
10
|
+
return url;
|
|
11
|
+
}
|
|
12
|
+
if (window.__env__.VITE_IMG_URL) {
|
|
13
|
+
return window.__env__.VITE_IMG_URL + url;
|
|
14
|
+
} else {
|
|
15
|
+
return url;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { getFileUrl, showFileUrl };
|
package/es/utils/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.42 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('vue-router'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'vue-router', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -1244,6 +1244,24 @@
|
|
|
1244
1244
|
}
|
|
1245
1245
|
};
|
|
1246
1246
|
|
|
1247
|
+
const getFileUrl = (row) => {
|
|
1248
|
+
if (row.bucketName == "Local") {
|
|
1249
|
+
return `/${row.filePath}/${row.id}${row.suffix}`;
|
|
1250
|
+
} else {
|
|
1251
|
+
return `/${row.filePath}/${row.id}${row.suffix}`;
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
const showFileUrl = (url) => {
|
|
1255
|
+
if (url == "logo.png") {
|
|
1256
|
+
return url;
|
|
1257
|
+
}
|
|
1258
|
+
if (window.__env__.VITE_IMG_URL) {
|
|
1259
|
+
return window.__env__.VITE_IMG_URL + url;
|
|
1260
|
+
} else {
|
|
1261
|
+
return url;
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1247
1265
|
const Local = {
|
|
1248
1266
|
// 查看 v2.4.3版本更新日志
|
|
1249
1267
|
setKey(key) {
|
|
@@ -1904,7 +1922,7 @@
|
|
|
1904
1922
|
// 默认菜单导航背景颜色
|
|
1905
1923
|
menuBar: "#FFFFFF",
|
|
1906
1924
|
// 默认菜单导航字体颜色
|
|
1907
|
-
menuBarColor: "#
|
|
1925
|
+
menuBarColor: "#1095df",
|
|
1908
1926
|
// 默认菜单高亮背景色
|
|
1909
1927
|
menuBarActiveColor: "var(--el-color-primary-light-7)",
|
|
1910
1928
|
// 是否开启菜单背景颜色渐变
|
|
@@ -1979,7 +1997,7 @@
|
|
|
1979
1997
|
*/
|
|
1980
1998
|
// Tagsview 风格:可选值"<tags-style-one|tags-style-four|tags-style-five>",默认 tags-style-five
|
|
1981
1999
|
// 定义的值与 `/src/layout/navBars/tagsView/tagsView.vue` 中的 class 同名
|
|
1982
|
-
tagsStyle: "tags-style-
|
|
2000
|
+
tagsStyle: "tags-style-five",
|
|
1983
2001
|
// 主页面切换动画: Animate.css
|
|
1984
2002
|
animation: "fadeDown",
|
|
1985
2003
|
// 分栏高亮风格:可选值"<columns-round|columns-card>",默认 columns-round
|
|
@@ -18410,7 +18428,7 @@
|
|
|
18410
18428
|
name: key,
|
|
18411
18429
|
el: element[key].el,
|
|
18412
18430
|
message: mergeArrObj(itemize, key),
|
|
18413
|
-
vxe: vxe[key].vxe
|
|
18431
|
+
vxe: vxe[key].default.vxe
|
|
18414
18432
|
};
|
|
18415
18433
|
i18n.global.setLocaleMessage(key, messages[key]);
|
|
18416
18434
|
}
|
|
@@ -18437,7 +18455,6 @@
|
|
|
18437
18455
|
size: vxeSize,
|
|
18438
18456
|
// 全局尺寸mini、small、medium/default
|
|
18439
18457
|
i18n: (key, args) => i18n.global.t(key, args),
|
|
18440
|
-
// i18n: (key, args) => i18n.global.t(key, args),
|
|
18441
18458
|
// zIndex: 999, // 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡
|
|
18442
18459
|
// version: 0, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
|
|
18443
18460
|
// loadingText: '加载中...', // 全局loading提示内容,如果为null则不显示文本
|
|
@@ -26318,7 +26335,7 @@
|
|
|
26318
26335
|
}, [
|
|
26319
26336
|
showLogo.value ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
26320
26337
|
key: 0,
|
|
26321
|
-
src: vue.unref(themeConfig).logoUrl,
|
|
26338
|
+
src: vue.unref(showFileUrl)(vue.unref(themeConfig).logoUrl),
|
|
26322
26339
|
class: "layout-logo-medium-img"
|
|
26323
26340
|
}, null, 8, _hoisted_1$d)) : vue.createCommentVNode("v-if", true),
|
|
26324
26341
|
vue.createElementVNode(
|
|
@@ -26334,7 +26351,7 @@
|
|
|
26334
26351
|
onClick: onThemeConfigChange
|
|
26335
26352
|
}, [
|
|
26336
26353
|
vue.createElementVNode("img", {
|
|
26337
|
-
src: vue.unref(themeConfig).logoUrl,
|
|
26354
|
+
src: vue.unref(showFileUrl)(vue.unref(themeConfig).logoUrl),
|
|
26338
26355
|
class: "layout-logo-size-img"
|
|
26339
26356
|
}, null, 8, _hoisted_2$8)
|
|
26340
26357
|
]));
|
|
@@ -28009,7 +28026,7 @@
|
|
|
28009
28026
|
]),
|
|
28010
28027
|
default: vue.withCtx(() => [
|
|
28011
28028
|
vue.createElementVNode("img", {
|
|
28012
|
-
src: vue.unref(userInfos).avatar,
|
|
28029
|
+
src: vue.unref(showFileUrl)(vue.unref(userInfos).avatar),
|
|
28013
28030
|
class: "layout-navbars-breadcrumb-user-link-photo mr5"
|
|
28014
28031
|
}, null, 8, _hoisted_11$1)
|
|
28015
28032
|
]),
|
|
@@ -28611,6 +28628,7 @@
|
|
|
28611
28628
|
exports.gcj02ToBd09 = gcj02ToBd09;
|
|
28612
28629
|
exports.getCountryCode = getCountryCode;
|
|
28613
28630
|
exports.getFileName = getFileName;
|
|
28631
|
+
exports.getFileUrl = getFileUrl;
|
|
28614
28632
|
exports.getHeader = getHeader;
|
|
28615
28633
|
exports.getJWTDate = getJWTDate;
|
|
28616
28634
|
exports.getToken = getToken;
|
|
@@ -28656,6 +28674,7 @@
|
|
|
28656
28674
|
exports.setIntroduction = setIntroduction;
|
|
28657
28675
|
exports.setJsCdn = setJsCdn;
|
|
28658
28676
|
exports.setupI18n = setupI18n;
|
|
28677
|
+
exports.showFileUrl = showFileUrl;
|
|
28659
28678
|
exports.signalR = signalR;
|
|
28660
28679
|
exports.signatureByKSort = signatureByKSort;
|
|
28661
28680
|
exports.sleep = sleep;
|