@fmdeui/fmui 1.0.39 → 1.0.41
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/hooks/commonFunction.mjs +2 -2
- 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 +25 -6
- package/index.min.js +5 -5
- package/index.min.mjs +5 -5
- package/index.mjs +24 -7
- package/lib/index.js +3 -0
- package/lib/packages/hooks/commonFunction.js +2 -2
- 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/{make-installer.css → index.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';
|
|
@@ -4,12 +4,11 @@ import { i18n } from '../locale/index.mjs';
|
|
|
4
4
|
import '../utils/index.mjs';
|
|
5
5
|
import '../stores/index.mjs';
|
|
6
6
|
import '../api/index.mjs';
|
|
7
|
-
import { useThemeConfig } from '../stores/themeConfig.mjs';
|
|
8
7
|
import { formatDate } from '../utils/formatTime.mjs';
|
|
9
8
|
import { useBaseApi } from '../api/base/index.mjs';
|
|
9
|
+
import { useThemeConfig } from '../stores/themeConfig.mjs';
|
|
10
10
|
|
|
11
11
|
function commonFunction() {
|
|
12
|
-
const themeStore = useThemeConfig();
|
|
13
12
|
const { copy, isSupported } = useClipboard();
|
|
14
13
|
const percentFormat = (row, column, cellValue) => {
|
|
15
14
|
return cellValue ? `${cellValue}%` : "-";
|
|
@@ -93,6 +92,7 @@ function commonFunction() {
|
|
|
93
92
|
return fieldValue;
|
|
94
93
|
};
|
|
95
94
|
const getTimeRangePickerShortcuts = () => {
|
|
95
|
+
const themeStore = useThemeConfig();
|
|
96
96
|
return [
|
|
97
97
|
{
|
|
98
98
|
text: "\u8FD1\u4E00\u5468",
|
|
@@ -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.41 */
|
|
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则不显示文本
|
|
@@ -22523,7 +22540,6 @@
|
|
|
22523
22540
|
const FLayout = _sfc_main$o;
|
|
22524
22541
|
|
|
22525
22542
|
function commonFunction() {
|
|
22526
|
-
const themeStore = useThemeConfig();
|
|
22527
22543
|
const { copy, isSupported } = core.useClipboard();
|
|
22528
22544
|
const percentFormat = (row, column, cellValue) => {
|
|
22529
22545
|
return cellValue ? `${cellValue}%` : "-";
|
|
@@ -22607,6 +22623,7 @@
|
|
|
22607
22623
|
return fieldValue;
|
|
22608
22624
|
};
|
|
22609
22625
|
const getTimeRangePickerShortcuts = () => {
|
|
22626
|
+
const themeStore = useThemeConfig();
|
|
22610
22627
|
return [
|
|
22611
22628
|
{
|
|
22612
22629
|
text: "\u8FD1\u4E00\u5468",
|
|
@@ -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;
|