@fmdeui/fmui 1.0.83 → 1.0.85
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/hooks/authFunction.d.ts +0 -1
- package/es/hooks/limitsFunction.d.ts +23 -1
- package/es/index.mjs +2 -2
- package/es/packages/hooks/authFunction.mjs +1 -16
- package/es/packages/hooks/index.mjs +2 -2
- package/es/packages/hooks/limitsFunction.mjs +32 -3
- package/index.js +33 -18
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +33 -19
- package/lib/hooks/authFunction.d.ts +0 -1
- package/lib/hooks/limitsFunction.d.ts +23 -1
- package/lib/index.js +2 -1
- package/lib/packages/hooks/authFunction.js +0 -16
- package/lib/packages/hooks/index.js +2 -1
- package/lib/packages/hooks/limitsFunction.js +33 -2
- 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/{index.css → make-installer.css} +0 -0
- /package/lib/{defaults.css → component.css} +0 -0
|
@@ -38,4 +38,3 @@ export declare function hAuths<T extends VNode>(el: T, value: Array<string>): T;
|
|
|
38
38
|
* @returns VNode
|
|
39
39
|
*/
|
|
40
40
|
export declare function hAuthAll<T extends VNode>(el: T, value: Array<string>): T;
|
|
41
|
-
export declare function getRules(value: string, field: string, msg: string): string;
|
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
export declare function getlimit(value: string): any;
|
|
2
|
+
/**
|
|
3
|
+
* 获取表单字段验证规则
|
|
4
|
+
* @param value 表单字段路径
|
|
5
|
+
* @param field 表单字段
|
|
6
|
+
* @param msg 验证提示
|
|
7
|
+
* @returns 验证规则
|
|
8
|
+
*/
|
|
9
|
+
export declare function getRules(value: string, field: string, msg: string): string;
|
|
2
10
|
/**
|
|
3
11
|
* 获取表单字段属性
|
|
4
12
|
* @param value 表单字段路径
|
|
5
13
|
* @returns 表单字段属性
|
|
6
14
|
*/
|
|
7
|
-
export declare function getFormItemProp(path: string, field: string):
|
|
15
|
+
export declare function getFormItemProp(path: string, field: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* 获取表单字段标签
|
|
18
|
+
* @param path 表单字段路径
|
|
19
|
+
* @param field 表单字段
|
|
20
|
+
* @param defaultValue 默认值
|
|
21
|
+
* @returns 表单字段标签
|
|
22
|
+
*/
|
|
8
23
|
export declare function getFormItemLabel(path: string, field: string, defaultValue: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* 获取表格字段是否显示
|
|
26
|
+
* @param path 表格字段路径
|
|
27
|
+
* @param field 表格字段
|
|
28
|
+
* @returns 表格字段是否显示
|
|
29
|
+
*/
|
|
30
|
+
export declare function showTabelColumn(path: string, field: string): boolean;
|
package/es/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ export { Local, Session } from './packages/utils/storage.mjs';
|
|
|
16
16
|
export { NextLoading } from './packages/utils/loading.mjs';
|
|
17
17
|
export { StringToObj } from './packages/utils/json-utils.mjs';
|
|
18
18
|
export { accessTokenKey, axiosInstance, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, decryptJWT, getHeader, getJWTDate, getToken, reLoadLoginAccessToken, refreshAccessTokenKey, request2, default as service, sleep, tansParams } from './packages/utils/request.mjs';
|
|
19
|
-
export { auth, authAll, auths,
|
|
19
|
+
export { auth, authAll, auths, hAuth, hAuthAll, hAuths } from './packages/hooks/authFunction.mjs';
|
|
20
20
|
export { base64ToFile, blobToFile, dataURLtoBlob, fileToBase64, urlToBase64 } from './packages/utils/base64Conver.mjs';
|
|
21
21
|
export { buildLocaleContext, buildTranslator, translate, useLocale } from './packages/hooks/useLocale.mjs';
|
|
22
22
|
export { clone, isObjectValueEqual, judgementSameArr, removeDuplicate } from './packages/utils/arrayOperation.mjs';
|
|
@@ -30,7 +30,7 @@ export { flowLoading } from './packages/utils/flowLoading.mjs';
|
|
|
30
30
|
export { formatAxis, formatDate, formatPast, getWeek } from './packages/utils/formatTime.mjs';
|
|
31
31
|
export { gcj02ToBd09, wgs84ToBd09, wgs84ToGcj02 } from './packages/utils/gpsConvertor.mjs';
|
|
32
32
|
export { getFileUrl, showFileUrl } from './packages/utils/uploadfileurl.mjs';
|
|
33
|
-
export { getFormItemLabel, getFormItemProp, getlimit } from './packages/hooks/limitsFunction.mjs';
|
|
33
|
+
export { getFormItemLabel, getFormItemProp, getRules, getlimit, showTabelColumn } from './packages/hooks/limitsFunction.mjs';
|
|
34
34
|
export { getpower, powerAuthDel } from './packages/hooks/powerFunction.mjs';
|
|
35
35
|
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';
|
|
36
36
|
export { loadSysInfo, updateFavicon } from './packages/hooks/sysInfo.mjs';
|
|
@@ -30,20 +30,5 @@ function hAuths(el, value) {
|
|
|
30
30
|
function hAuthAll(el, value) {
|
|
31
31
|
return withDirectives(el, [[resolveDirective("auth-all"), value]]);
|
|
32
32
|
}
|
|
33
|
-
function getRules(value, field, msg) {
|
|
34
|
-
const stores = useUserInfo();
|
|
35
|
-
const item = stores.userInfos.formDes.find((item2) => item2.path === value);
|
|
36
|
-
let rels = [];
|
|
37
|
-
if (item && item.formDes.length > 0) {
|
|
38
|
-
const xitem = item.formDes.find((v) => v.field === field);
|
|
39
|
-
if (xitem) {
|
|
40
|
-
if (xitem.isRequired == 1)
|
|
41
|
-
rels.push({ required: true, message: msg, trigger: "blur" });
|
|
42
|
-
if (xitem.isFromValid == 1)
|
|
43
|
-
rels.push({ pattern: /^[1-9]\d*$/, message: msg, trigger: "blur" });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return rels;
|
|
47
|
-
}
|
|
48
33
|
|
|
49
|
-
export { auth, authAll, auths,
|
|
34
|
+
export { auth, authAll, auths, hAuth, hAuthAll, hAuths };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { buildLocaleContext, buildTranslator, translate, useLocale } from './useLocale.mjs';
|
|
2
|
-
export { auth, authAll, auths,
|
|
2
|
+
export { auth, authAll, auths, hAuth, hAuthAll, hAuths } from './authFunction.mjs';
|
|
3
3
|
export { getpower, powerAuthDel } from './powerFunction.mjs';
|
|
4
4
|
export { useVxeTable } from './useVxeTableOptionsHook.mjs';
|
|
5
5
|
export { loadSysInfo, updateFavicon } from './sysInfo.mjs';
|
|
@@ -7,4 +7,4 @@ export { cmpId, depId, getOpOrg, groupId, hasPrivilege, hasRoleCode, isAdmin, is
|
|
|
7
7
|
export { useDateTimeShortCust } from './dateTimeShortCust.mjs';
|
|
8
8
|
export { destroyIdleTimeout, initIdleTimeout, updateIdleTimeout } from './idleTimeout.mjs';
|
|
9
9
|
export { provideFormEvents, useFormEvents } from './composables/useDialogEvents.mjs';
|
|
10
|
-
export { getFormItemLabel, getFormItemProp, getlimit } from './limitsFunction.mjs';
|
|
10
|
+
export { getFormItemLabel, getFormItemProp, getRules, getlimit, showTabelColumn } from './limitsFunction.mjs';
|
|
@@ -7,14 +7,29 @@ function getlimit(value) {
|
|
|
7
7
|
if (matched) return matched.limit;
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
|
+
function getRules(value, field, msg) {
|
|
11
|
+
const stores = useUserInfo();
|
|
12
|
+
const item = stores.userInfos.formDes.find((item2) => item2.path === value);
|
|
13
|
+
let rels = [];
|
|
14
|
+
if (item && item.formDes.length > 0) {
|
|
15
|
+
const xitem = item.formDes.find((v) => v.field === field);
|
|
16
|
+
if (xitem) {
|
|
17
|
+
if (xitem.isRequired == 1)
|
|
18
|
+
rels.push({ required: true, message: msg, trigger: "blur" });
|
|
19
|
+
if (xitem.isFromValid == 1)
|
|
20
|
+
rels.push({ pattern: /^[1-9]\d*$/, message: msg, trigger: "blur" });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return rels;
|
|
24
|
+
}
|
|
10
25
|
function getFormItemProp(path, field) {
|
|
11
26
|
const stores = useUserInfo();
|
|
12
27
|
const item = stores.userInfos.formDes.find((item2) => item2.path === path);
|
|
13
28
|
if (item && item.formDes.length > 0) {
|
|
14
29
|
const xitem = item.formDes.find((v) => v.field === field);
|
|
15
|
-
if (xitem) return xitem.isRequired == 1 || xitem.isFromValid > 0;
|
|
30
|
+
if (xitem) return xitem.isRequired == 1 || xitem.isFromValid > 0 ? field : "";
|
|
16
31
|
}
|
|
17
|
-
return
|
|
32
|
+
return "";
|
|
18
33
|
}
|
|
19
34
|
function getFormItemLabel(path, field, defaultValue) {
|
|
20
35
|
const stores = useUserInfo();
|
|
@@ -25,5 +40,19 @@ function getFormItemLabel(path, field, defaultValue) {
|
|
|
25
40
|
}
|
|
26
41
|
return defaultValue;
|
|
27
42
|
}
|
|
43
|
+
function showTabelColumn(path, field) {
|
|
44
|
+
const stores = useUserInfo();
|
|
45
|
+
const item = stores.userInfos.formDes.find((item2) => item2.path === path);
|
|
46
|
+
if (item && item.formDes.length > 0) {
|
|
47
|
+
const xitem = item.formDes.find((v) => v.field === field);
|
|
48
|
+
if (xitem) {
|
|
49
|
+
if (xitem.isTable == 1)
|
|
50
|
+
return true;
|
|
51
|
+
else if (xitem.isTable == 0)
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
28
57
|
|
|
29
|
-
export { getFormItemLabel, getFormItemProp, getlimit };
|
|
58
|
+
export { getFormItemLabel, getFormItemProp, getRules, getlimit, showTabelColumn };
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.85 */
|
|
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) :
|
|
@@ -19937,21 +19937,6 @@
|
|
|
19937
19937
|
function hAuthAll(el, value) {
|
|
19938
19938
|
return vue.withDirectives(el, [[vue.resolveDirective("auth-all"), value]]);
|
|
19939
19939
|
}
|
|
19940
|
-
function getRules(value, field, msg) {
|
|
19941
|
-
const stores = useUserInfo();
|
|
19942
|
-
const item = stores.userInfos.formDes.find((item2) => item2.path === value);
|
|
19943
|
-
let rels = [];
|
|
19944
|
-
if (item && item.formDes.length > 0) {
|
|
19945
|
-
const xitem = item.formDes.find((v) => v.field === field);
|
|
19946
|
-
if (xitem) {
|
|
19947
|
-
if (xitem.isRequired == 1)
|
|
19948
|
-
rels.push({ required: true, message: msg, trigger: "blur" });
|
|
19949
|
-
if (xitem.isFromValid == 1)
|
|
19950
|
-
rels.push({ pattern: /^[1-9]\d*$/, message: msg, trigger: "blur" });
|
|
19951
|
-
}
|
|
19952
|
-
}
|
|
19953
|
-
return rels;
|
|
19954
|
-
}
|
|
19955
19940
|
|
|
19956
19941
|
function getpower(value) {
|
|
19957
19942
|
const stores = useUserInfo();
|
|
@@ -20491,14 +20476,29 @@
|
|
|
20491
20476
|
if (matched) return matched.limit;
|
|
20492
20477
|
return null;
|
|
20493
20478
|
}
|
|
20479
|
+
function getRules(value, field, msg) {
|
|
20480
|
+
const stores = useUserInfo();
|
|
20481
|
+
const item = stores.userInfos.formDes.find((item2) => item2.path === value);
|
|
20482
|
+
let rels = [];
|
|
20483
|
+
if (item && item.formDes.length > 0) {
|
|
20484
|
+
const xitem = item.formDes.find((v) => v.field === field);
|
|
20485
|
+
if (xitem) {
|
|
20486
|
+
if (xitem.isRequired == 1)
|
|
20487
|
+
rels.push({ required: true, message: msg, trigger: "blur" });
|
|
20488
|
+
if (xitem.isFromValid == 1)
|
|
20489
|
+
rels.push({ pattern: /^[1-9]\d*$/, message: msg, trigger: "blur" });
|
|
20490
|
+
}
|
|
20491
|
+
}
|
|
20492
|
+
return rels;
|
|
20493
|
+
}
|
|
20494
20494
|
function getFormItemProp(path, field) {
|
|
20495
20495
|
const stores = useUserInfo();
|
|
20496
20496
|
const item = stores.userInfos.formDes.find((item2) => item2.path === path);
|
|
20497
20497
|
if (item && item.formDes.length > 0) {
|
|
20498
20498
|
const xitem = item.formDes.find((v) => v.field === field);
|
|
20499
|
-
if (xitem) return xitem.isRequired == 1 || xitem.isFromValid > 0;
|
|
20499
|
+
if (xitem) return xitem.isRequired == 1 || xitem.isFromValid > 0 ? field : "";
|
|
20500
20500
|
}
|
|
20501
|
-
return
|
|
20501
|
+
return "";
|
|
20502
20502
|
}
|
|
20503
20503
|
function getFormItemLabel(path, field, defaultValue) {
|
|
20504
20504
|
const stores = useUserInfo();
|
|
@@ -20509,6 +20509,20 @@
|
|
|
20509
20509
|
}
|
|
20510
20510
|
return defaultValue;
|
|
20511
20511
|
}
|
|
20512
|
+
function showTabelColumn(path, field) {
|
|
20513
|
+
const stores = useUserInfo();
|
|
20514
|
+
const item = stores.userInfos.formDes.find((item2) => item2.path === path);
|
|
20515
|
+
if (item && item.formDes.length > 0) {
|
|
20516
|
+
const xitem = item.formDes.find((v) => v.field === field);
|
|
20517
|
+
if (xitem) {
|
|
20518
|
+
if (xitem.isTable == 1)
|
|
20519
|
+
return true;
|
|
20520
|
+
else if (xitem.isTable == 0)
|
|
20521
|
+
return false;
|
|
20522
|
+
}
|
|
20523
|
+
}
|
|
20524
|
+
return true;
|
|
20525
|
+
}
|
|
20512
20526
|
|
|
20513
20527
|
const _hoisted_1$s = { key: 0 };
|
|
20514
20528
|
const _hoisted_2$i = { key: 0 };
|
|
@@ -30754,6 +30768,7 @@
|
|
|
30754
30768
|
exports.setJsCdn = setJsCdn;
|
|
30755
30769
|
exports.setupI18n = setupI18n;
|
|
30756
30770
|
exports.showFileUrl = showFileUrl;
|
|
30771
|
+
exports.showTabelColumn = showTabelColumn;
|
|
30757
30772
|
exports.signalR = signalR;
|
|
30758
30773
|
exports.signatureByKSort = signatureByKSort;
|
|
30759
30774
|
exports.sleep = sleep;
|