@fmdeui/fmui 1.0.132 → 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/hooks/index.mjs +1 -1
- package/es/packages/hooks/limitsFunction.mjs +12 -1
- package/index.js +13 -1
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +13 -2
- package/lib/hooks/limitsFunction.d.ts +1 -0
- package/lib/index.js +1 -0
- 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/{defaults.css → make-installer.css} +0 -0
- /package/lib/{version.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';
|
|
@@ -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) :
|
|
@@ -21198,6 +21198,17 @@
|
|
|
21198
21198
|
}
|
|
21199
21199
|
return isJson ? width != "" ? { width } : "" : width;
|
|
21200
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
|
+
}
|
|
21201
21212
|
|
|
21202
21213
|
const _hoisted_1$z = { key: 0 };
|
|
21203
21214
|
const _hoisted_2$n = { key: 0 };
|
|
@@ -33890,6 +33901,7 @@
|
|
|
33890
33901
|
exports.getHeader = getHeader;
|
|
33891
33902
|
exports.getJWTDate = getJWTDate;
|
|
33892
33903
|
exports.getOpOrg = getOpOrg;
|
|
33904
|
+
exports.getPageSetting = getPageSetting;
|
|
33893
33905
|
exports.getRules = getRules;
|
|
33894
33906
|
exports.getShowColumn = getShowColumn;
|
|
33895
33907
|
exports.getShowColumnWidth = getShowColumnWidth;
|