@fmdeui/fmui 1.0.131 → 1.0.133
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/limitsFunction.d.ts +1 -0
- package/es/index.mjs +1 -1
- package/es/packages/directive/authDirective.mjs +15 -3
- package/es/packages/hooks/index.mjs +1 -1
- package/es/packages/hooks/limitsFunction.mjs +12 -1
- package/index.js +28 -4
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +28 -5
- package/lib/hooks/limitsFunction.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/packages/directive/authDirective.js +15 -3
- package/lib/packages/hooks/index.js +1 -0
- package/lib/packages/hooks/limitsFunction.js +12 -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/{version.css → make-installer.css} +0 -0
- /package/lib/{defaults.css → component.css} +0 -0
|
@@ -28,3 +28,4 @@ export declare function showTabelColumn(field: string): boolean;
|
|
|
28
28
|
export declare function getSubFormFields(flag: string): any;
|
|
29
29
|
export declare function getShowColumn(flag: string, field: string): boolean;
|
|
30
30
|
export declare function getShowColumnWidth(flag: string, field: string, defaultValue?: string, isJson?: boolean): any;
|
|
31
|
+
export declare function getPageSetting(flag: string, field: string, defaultValue?: string): any;
|
package/es/index.mjs
CHANGED
|
@@ -31,7 +31,7 @@ export { flowLoading } from './packages/utils/flowLoading.mjs';
|
|
|
31
31
|
export { formatAxis, formatDate, formatPast, getBdate, getEdate, getWeek } from './packages/utils/formatTime.mjs';
|
|
32
32
|
export { gcj02ToBd09, wgs84ToBd09, wgs84ToGcj02 } from './packages/utils/gpsConvertor.mjs';
|
|
33
33
|
export { getFileDownloadUrl, getFileUrl, showFileUrl, showFileUrlByType } from './packages/utils/uploadfileurl.mjs';
|
|
34
|
-
export { getFormItemLabel, getFormItemProp, getRules, getShowColumn, getShowColumnWidth, getSubFormFields, getlimit, showTabelColumn } from './packages/hooks/limitsFunction.mjs';
|
|
34
|
+
export { getFormItemLabel, getFormItemProp, getPageSetting, getRules, getShowColumn, getShowColumnWidth, getSubFormFields, getlimit, showTabelColumn } from './packages/hooks/limitsFunction.mjs';
|
|
35
35
|
export { getpower, powerAuthDel } from './packages/hooks/powerFunction.mjs';
|
|
36
36
|
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';
|
|
37
37
|
export { loadSysInfo, updateFavicon } from './packages/hooks/sysInfo.mjs';
|
|
@@ -32,8 +32,12 @@ function authDirective(app) {
|
|
|
32
32
|
var _a, _b, _c, _d;
|
|
33
33
|
const stores = useUserInfo();
|
|
34
34
|
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
35
|
+
if (config.defaultvalue == null || config.defaultvalue === void 0 || config.defaultvalue === "") config.defaultvalue = true;
|
|
35
36
|
const itemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === config.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === "main")) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === config.field);
|
|
36
|
-
if (itemField && itemField.isTable == 0)
|
|
37
|
+
if (itemField && itemField.isTable == 0)
|
|
38
|
+
el.parentNode.removeChild(el);
|
|
39
|
+
else if (!itemField && config.defaultvalue == false)
|
|
40
|
+
el.parentNode.removeChild(el);
|
|
37
41
|
}
|
|
38
42
|
});
|
|
39
43
|
app.directive("hpquery", {
|
|
@@ -41,8 +45,12 @@ function authDirective(app) {
|
|
|
41
45
|
var _a, _b, _c, _d;
|
|
42
46
|
const stores = useUserInfo();
|
|
43
47
|
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
48
|
+
if (config.defaultvalue == null || config.defaultvalue === void 0 || config.defaultvalue === "") config.defaultvalue = true;
|
|
44
49
|
const itemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === config.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === "main")) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === config.field);
|
|
45
|
-
if (itemField && itemField.isQuery == 0)
|
|
50
|
+
if (itemField && itemField.isQuery == 0)
|
|
51
|
+
el.parentNode.removeChild(el);
|
|
52
|
+
else if (!itemField && config.defaultvalue == false)
|
|
53
|
+
el.parentNode.removeChild(el);
|
|
46
54
|
}
|
|
47
55
|
});
|
|
48
56
|
app.directive("hpaddupdate", {
|
|
@@ -50,8 +58,12 @@ function authDirective(app) {
|
|
|
50
58
|
var _a, _b, _c, _d;
|
|
51
59
|
const stores = useUserInfo();
|
|
52
60
|
const config = typeof binding.value === "string" ? { path: binding.value, field: "", flag: "main" } : binding.value;
|
|
61
|
+
if (config.defaultvalue == null || config.defaultvalue === void 0 || config.defaultvalue === "") config.defaultvalue = true;
|
|
53
62
|
const itemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === config.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === (config.flag || "main"))) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === config.field);
|
|
54
|
-
if (itemField && itemField.isAddUpdate == 0)
|
|
63
|
+
if (itemField && itemField.isAddUpdate == 0)
|
|
64
|
+
el.parentNode.removeChild(el);
|
|
65
|
+
else if (!itemField && config.defaultvalue == false)
|
|
66
|
+
el.parentNode.removeChild(el);
|
|
55
67
|
}
|
|
56
68
|
});
|
|
57
69
|
}
|
|
@@ -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, getRules, getShowColumn, getShowColumnWidth, getSubFormFields, getlimit, showTabelColumn } from './limitsFunction.mjs';
|
|
10
|
+
export { getFormItemLabel, getFormItemProp, getPageSetting, getRules, getShowColumn, getShowColumnWidth, getSubFormFields, getlimit, showTabelColumn } from './limitsFunction.mjs';
|
|
@@ -87,5 +87,16 @@ function getShowColumnWidth(flag, field, defaultValue = "", isJson = false) {
|
|
|
87
87
|
}
|
|
88
88
|
return isJson ? width != "" ? { width } : "" : width;
|
|
89
89
|
}
|
|
90
|
+
function getPageSetting(flag, field, defaultValue = "") {
|
|
91
|
+
var _a, _b, _c;
|
|
92
|
+
const stores = useUserInfo();
|
|
93
|
+
const route = useRoute();
|
|
94
|
+
const pageset = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.pageSet;
|
|
95
|
+
let setting = defaultValue;
|
|
96
|
+
if (pageset && pageset[field]) {
|
|
97
|
+
setting = pageset[field];
|
|
98
|
+
}
|
|
99
|
+
return setting;
|
|
100
|
+
}
|
|
90
101
|
|
|
91
|
-
export { getFormItemLabel, getFormItemProp, getRules, getShowColumn, getShowColumnWidth, getSubFormFields, getlimit, showTabelColumn };
|
|
102
|
+
export { getFormItemLabel, getFormItemProp, getPageSetting, getRules, getShowColumn, getShowColumnWidth, getSubFormFields, getlimit, showTabelColumn };
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.133 */
|
|
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('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), 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', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -4103,8 +4103,12 @@
|
|
|
4103
4103
|
var _a, _b, _c, _d;
|
|
4104
4104
|
const stores = useUserInfo();
|
|
4105
4105
|
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
4106
|
+
if (config.defaultvalue == null || config.defaultvalue === void 0 || config.defaultvalue === "") config.defaultvalue = true;
|
|
4106
4107
|
const itemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === config.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === "main")) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === config.field);
|
|
4107
|
-
if (itemField && itemField.isTable == 0)
|
|
4108
|
+
if (itemField && itemField.isTable == 0)
|
|
4109
|
+
el.parentNode.removeChild(el);
|
|
4110
|
+
else if (!itemField && config.defaultvalue == false)
|
|
4111
|
+
el.parentNode.removeChild(el);
|
|
4108
4112
|
}
|
|
4109
4113
|
});
|
|
4110
4114
|
app.directive("hpquery", {
|
|
@@ -4112,8 +4116,12 @@
|
|
|
4112
4116
|
var _a, _b, _c, _d;
|
|
4113
4117
|
const stores = useUserInfo();
|
|
4114
4118
|
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
4119
|
+
if (config.defaultvalue == null || config.defaultvalue === void 0 || config.defaultvalue === "") config.defaultvalue = true;
|
|
4115
4120
|
const itemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === config.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === "main")) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === config.field);
|
|
4116
|
-
if (itemField && itemField.isQuery == 0)
|
|
4121
|
+
if (itemField && itemField.isQuery == 0)
|
|
4122
|
+
el.parentNode.removeChild(el);
|
|
4123
|
+
else if (!itemField && config.defaultvalue == false)
|
|
4124
|
+
el.parentNode.removeChild(el);
|
|
4117
4125
|
}
|
|
4118
4126
|
});
|
|
4119
4127
|
app.directive("hpaddupdate", {
|
|
@@ -4121,8 +4129,12 @@
|
|
|
4121
4129
|
var _a, _b, _c, _d;
|
|
4122
4130
|
const stores = useUserInfo();
|
|
4123
4131
|
const config = typeof binding.value === "string" ? { path: binding.value, field: "", flag: "main" } : binding.value;
|
|
4132
|
+
if (config.defaultvalue == null || config.defaultvalue === void 0 || config.defaultvalue === "") config.defaultvalue = true;
|
|
4124
4133
|
const itemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === config.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === (config.flag || "main"))) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === config.field);
|
|
4125
|
-
if (itemField && itemField.isAddUpdate == 0)
|
|
4134
|
+
if (itemField && itemField.isAddUpdate == 0)
|
|
4135
|
+
el.parentNode.removeChild(el);
|
|
4136
|
+
else if (!itemField && config.defaultvalue == false)
|
|
4137
|
+
el.parentNode.removeChild(el);
|
|
4126
4138
|
}
|
|
4127
4139
|
});
|
|
4128
4140
|
}
|
|
@@ -21186,6 +21198,17 @@
|
|
|
21186
21198
|
}
|
|
21187
21199
|
return isJson ? width != "" ? { width } : "" : width;
|
|
21188
21200
|
}
|
|
21201
|
+
function getPageSetting(flag, field, defaultValue = "") {
|
|
21202
|
+
var _a, _b, _c;
|
|
21203
|
+
const stores = useUserInfo();
|
|
21204
|
+
const route = vueRouter.useRoute();
|
|
21205
|
+
const pageset = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.pageSet;
|
|
21206
|
+
let setting = defaultValue;
|
|
21207
|
+
if (pageset && pageset[field]) {
|
|
21208
|
+
setting = pageset[field];
|
|
21209
|
+
}
|
|
21210
|
+
return setting;
|
|
21211
|
+
}
|
|
21189
21212
|
|
|
21190
21213
|
const _hoisted_1$z = { key: 0 };
|
|
21191
21214
|
const _hoisted_2$n = { key: 0 };
|
|
@@ -33878,6 +33901,7 @@
|
|
|
33878
33901
|
exports.getHeader = getHeader;
|
|
33879
33902
|
exports.getJWTDate = getJWTDate;
|
|
33880
33903
|
exports.getOpOrg = getOpOrg;
|
|
33904
|
+
exports.getPageSetting = getPageSetting;
|
|
33881
33905
|
exports.getRules = getRules;
|
|
33882
33906
|
exports.getShowColumn = getShowColumn;
|
|
33883
33907
|
exports.getShowColumnWidth = getShowColumnWidth;
|