@fmdeui/fmui 1.0.76 → 1.0.77
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/components/fmcascader/index.d.ts +3 -1
- package/es/components/fmcascader/index.vue.d.ts +3 -1
- package/es/hooks/useInfo.d.ts +15 -0
- package/es/index.mjs +1 -1
- package/es/packages/components/fmcascader/index.vue2.mjs +4 -2
- package/es/packages/hooks/index.mjs +1 -1
- package/es/packages/hooks/useInfo.mjs +13 -1
- package/index.js +20 -3
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +18 -4
- package/lib/components/fmcascader/index.d.ts +3 -1
- package/lib/components/fmcascader/index.vue.d.ts +3 -1
- package/lib/hooks/useInfo.d.ts +15 -0
- package/lib/index.js +23 -20
- package/lib/packages/components/fmcascader/index.vue2.js +4 -2
- package/lib/packages/hooks/index.js +3 -0
- package/lib/packages/hooks/useInfo.js +15 -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/lib/{index.css → version.css} +0 -0
|
@@ -50,7 +50,8 @@ export declare const FmCascader: DefineComponent<ExtractPropTypes<{
|
|
|
50
50
|
type: PropType<any>;
|
|
51
51
|
};
|
|
52
52
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
53
|
-
|
|
53
|
+
change: (...args: any[]) => void;
|
|
54
|
+
"update:modelValue": (value: any) => void;
|
|
54
55
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
55
56
|
orgData: {
|
|
56
57
|
type: {
|
|
@@ -102,6 +103,7 @@ export declare const FmCascader: DefineComponent<ExtractPropTypes<{
|
|
|
102
103
|
type: PropType<any>;
|
|
103
104
|
};
|
|
104
105
|
}>> & Readonly<{
|
|
106
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
105
107
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
106
108
|
}>, {
|
|
107
109
|
placeholder: string;
|
|
@@ -50,7 +50,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
50
50
|
type: PropType<any>;
|
|
51
51
|
};
|
|
52
52
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
53
|
-
|
|
53
|
+
change: (...args: any[]) => void;
|
|
54
|
+
"update:modelValue": (value: any) => void;
|
|
54
55
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
55
56
|
orgData: {
|
|
56
57
|
type: {
|
|
@@ -102,6 +103,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
102
103
|
type: PropType<any>;
|
|
103
104
|
};
|
|
104
105
|
}>> & Readonly<{
|
|
106
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
105
107
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
106
108
|
}>, {
|
|
107
109
|
placeholder: string;
|
package/es/hooks/useInfo.d.ts
CHANGED
|
@@ -67,6 +67,21 @@ export declare const orgId: () => number;
|
|
|
67
67
|
* @returns 获取组织名称
|
|
68
68
|
*/
|
|
69
69
|
export declare const orgName: () => string;
|
|
70
|
+
/**
|
|
71
|
+
* 公司id
|
|
72
|
+
* @returns 公司id
|
|
73
|
+
*/
|
|
74
|
+
export declare const cmpId: () => number;
|
|
75
|
+
/**
|
|
76
|
+
* 部门id
|
|
77
|
+
* @returns 部门id
|
|
78
|
+
*/
|
|
79
|
+
export declare const depId: () => number;
|
|
80
|
+
/**
|
|
81
|
+
* 组id
|
|
82
|
+
* @returns 组id
|
|
83
|
+
*/
|
|
84
|
+
export declare const groupId: () => number;
|
|
70
85
|
/**
|
|
71
86
|
* 获取职位id
|
|
72
87
|
* @returns 获取职位id.
|
package/es/index.mjs
CHANGED
|
@@ -20,6 +20,7 @@ export { auth, authAll, auths, hAuth, hAuthAll, hAuths } from './packages/hooks/
|
|
|
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';
|
|
23
|
+
export { cmpId, depId, groupId, hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone } from './packages/hooks/useInfo.mjs';
|
|
23
24
|
export { destroyIdleTimeout, initIdleTimeout, updateIdleTimeout } from './packages/hooks/idleTimeout.mjs';
|
|
24
25
|
export { downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, getFileName, openWindow } from './packages/utils/download.mjs';
|
|
25
26
|
export { default as en } from './packages/locale/lang/en.mjs';
|
|
@@ -31,7 +32,6 @@ export { gcj02ToBd09, wgs84ToBd09, wgs84ToGcj02 } from './packages/utils/gpsConv
|
|
|
31
32
|
export { getFileUrl, showFileUrl } from './packages/utils/uploadfileurl.mjs';
|
|
32
33
|
export { getlimit } from './packages/hooks/limitsFunction.mjs';
|
|
33
34
|
export { getpower, powerAuthDel } from './packages/hooks/powerFunction.mjs';
|
|
34
|
-
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';
|
|
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';
|
|
37
37
|
export { default as pinia } from './packages/stores/inpinia.mjs';
|
|
@@ -39,9 +39,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
"modelValue": {},
|
|
40
40
|
"modelModifiers": {}
|
|
41
41
|
}),
|
|
42
|
-
emits: ["update:modelValue"],
|
|
43
|
-
setup(__props) {
|
|
42
|
+
emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
|
|
43
|
+
setup(__props, { emit: __emit }) {
|
|
44
44
|
const modeValue = useModel(__props, "modelValue");
|
|
45
|
+
const emit = __emit;
|
|
45
46
|
const props = __props;
|
|
46
47
|
const handelchangeOrg = (val) => {
|
|
47
48
|
modeValue.value[props.vId] = val;
|
|
@@ -73,6 +74,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
}
|
|
77
|
+
emit("change", node);
|
|
76
78
|
};
|
|
77
79
|
const findNode = (id) => {
|
|
78
80
|
const search = (nodes) => {
|
|
@@ -3,7 +3,7 @@ export { auth, authAll, auths, hAuth, hAuthAll, hAuths } from './authFunction.mj
|
|
|
3
3
|
export { getpower, powerAuthDel } from './powerFunction.mjs';
|
|
4
4
|
export { useVxeTable } from './useVxeTableOptionsHook.mjs';
|
|
5
5
|
export { loadSysInfo, updateFavicon } from './sysInfo.mjs';
|
|
6
|
-
export { hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone } from './useInfo.mjs';
|
|
6
|
+
export { cmpId, depId, groupId, hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone } from './useInfo.mjs';
|
|
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';
|
|
@@ -59,6 +59,18 @@ const orgName = () => {
|
|
|
59
59
|
var _a;
|
|
60
60
|
return (_a = _getUserInfo()) == null ? void 0 : _a.orgName;
|
|
61
61
|
};
|
|
62
|
+
const cmpId = () => {
|
|
63
|
+
var _a;
|
|
64
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.cmpId;
|
|
65
|
+
};
|
|
66
|
+
const depId = () => {
|
|
67
|
+
var _a;
|
|
68
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.depId;
|
|
69
|
+
};
|
|
70
|
+
const groupId = () => {
|
|
71
|
+
var _a;
|
|
72
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.groupId;
|
|
73
|
+
};
|
|
62
74
|
const posId = () => {
|
|
63
75
|
var _a;
|
|
64
76
|
return (_a = _getUserInfo()) == null ? void 0 : _a.posId;
|
|
@@ -80,4 +92,4 @@ const hasPrivilege = (privilege) => {
|
|
|
80
92
|
return (_a = _getUserInfo()) == null ? void 0 : _a.authApiList.includes(privilege);
|
|
81
93
|
};
|
|
82
94
|
|
|
83
|
-
export { hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone };
|
|
95
|
+
export { cmpId, depId, groupId, hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone };
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.77 */
|
|
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) :
|
|
@@ -20304,6 +20304,18 @@
|
|
|
20304
20304
|
var _a;
|
|
20305
20305
|
return (_a = _getUserInfo()) == null ? void 0 : _a.orgName;
|
|
20306
20306
|
};
|
|
20307
|
+
const cmpId = () => {
|
|
20308
|
+
var _a;
|
|
20309
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.cmpId;
|
|
20310
|
+
};
|
|
20311
|
+
const depId = () => {
|
|
20312
|
+
var _a;
|
|
20313
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.depId;
|
|
20314
|
+
};
|
|
20315
|
+
const groupId = () => {
|
|
20316
|
+
var _a;
|
|
20317
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.groupId;
|
|
20318
|
+
};
|
|
20307
20319
|
const posId = () => {
|
|
20308
20320
|
var _a;
|
|
20309
20321
|
return (_a = _getUserInfo()) == null ? void 0 : _a.posId;
|
|
@@ -26586,9 +26598,10 @@
|
|
|
26586
26598
|
"modelValue": {},
|
|
26587
26599
|
"modelModifiers": {}
|
|
26588
26600
|
}),
|
|
26589
|
-
emits: ["update:modelValue"],
|
|
26590
|
-
setup(__props) {
|
|
26601
|
+
emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:modelValue"]),
|
|
26602
|
+
setup(__props, { emit: __emit }) {
|
|
26591
26603
|
const modeValue = vue.useModel(__props, "modelValue");
|
|
26604
|
+
const emit = __emit;
|
|
26592
26605
|
const props = __props;
|
|
26593
26606
|
const handelchangeOrg = (val) => {
|
|
26594
26607
|
modeValue.value[props.vId] = val;
|
|
@@ -26620,6 +26633,7 @@
|
|
|
26620
26633
|
}
|
|
26621
26634
|
}
|
|
26622
26635
|
}
|
|
26636
|
+
emit("change", node);
|
|
26623
26637
|
};
|
|
26624
26638
|
const findNode = (id) => {
|
|
26625
26639
|
const search = (nodes) => {
|
|
@@ -30581,11 +30595,13 @@
|
|
|
30581
30595
|
exports.clearAccessTokens = clearAccessTokens;
|
|
30582
30596
|
exports.clearTokens = clearTokens;
|
|
30583
30597
|
exports.clone = clone;
|
|
30598
|
+
exports.cmpId = cmpId;
|
|
30584
30599
|
exports.commonFun = commonFun;
|
|
30585
30600
|
exports.commonFunction = commonFunction;
|
|
30586
30601
|
exports.dataURLtoBlob = dataURLtoBlob;
|
|
30587
30602
|
exports.decryptJWT = decryptJWT;
|
|
30588
30603
|
exports.default = installer;
|
|
30604
|
+
exports.depId = depId;
|
|
30589
30605
|
exports.destroyIdleTimeout = destroyIdleTimeout;
|
|
30590
30606
|
exports.downloadByBase64 = downloadByBase64;
|
|
30591
30607
|
exports.downloadByData = downloadByData;
|
|
@@ -30610,6 +30626,7 @@
|
|
|
30610
30626
|
exports.getWeek = getWeek;
|
|
30611
30627
|
exports.getlimit = getlimit;
|
|
30612
30628
|
exports.getpower = getpower;
|
|
30629
|
+
exports.groupId = groupId;
|
|
30613
30630
|
exports.hAuth = hAuth;
|
|
30614
30631
|
exports.hAuthAll = hAuthAll;
|
|
30615
30632
|
exports.hAuths = hAuths;
|