@fmdeui/fmui 1.0.37 → 1.0.38
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/make-installer.mjs +2 -1
- package/es/packages/stores/index.mjs +1 -0
- package/es/stores/index.d.ts +2 -0
- package/index.js +115 -114
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +115 -115
- package/lib/index.js +2 -0
- package/lib/make-installer.js +2 -1
- package/lib/packages/stores/index.js +2 -0
- package/lib/stores/index.d.ts +2 -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/es/index.mjs
CHANGED
|
@@ -30,6 +30,7 @@ export { gcj02ToBd09, wgs84ToBd09, wgs84ToGcj02 } from './packages/utils/gpsConv
|
|
|
30
30
|
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
31
|
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
32
|
export { loadSysInfo, updateFavicon } from './packages/hooks/sysInfo.mjs';
|
|
33
|
+
export { default as pinia } from './packages/stores/inpinia.mjs';
|
|
33
34
|
export { provideFormEvents, useFormEvents } from './packages/hooks/composables/useDialogEvents.mjs';
|
|
34
35
|
export { restartSignalR, signalR } from './packages/utils/signalR.mjs';
|
|
35
36
|
export { saulVModel } from './packages/utils/saulVModel.mjs';
|
package/es/make-installer.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './packages/stores/index.mjs';
|
|
2
2
|
import { directive } from './packages/directive/index.mjs';
|
|
3
3
|
import { setupVXETable } from './packages/hooks/setupVXETableHook.mjs';
|
|
4
4
|
import './packages/components/index.mjs';
|
|
5
|
+
import pinia from './packages/stores/inpinia.mjs';
|
|
5
6
|
import { elSvg } from './packages/components/svgIcon/index.mjs';
|
|
6
7
|
|
|
7
8
|
const makeInstaller = (components = []) => {
|
package/es/stores/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.38 */
|
|
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) :
|
|
@@ -27,6 +27,67 @@
|
|
|
27
27
|
|
|
28
28
|
const pinia = pinia$1.createPinia();
|
|
29
29
|
|
|
30
|
+
const useKeepALiveNames = pinia$1.defineStore("keepALiveNames", {
|
|
31
|
+
state: () => ({
|
|
32
|
+
keepAliveNames: [],
|
|
33
|
+
cachedViews: []
|
|
34
|
+
}),
|
|
35
|
+
actions: {
|
|
36
|
+
async setCacheKeepAlive(data) {
|
|
37
|
+
this.keepAliveNames = data;
|
|
38
|
+
},
|
|
39
|
+
async addCachedView(view) {
|
|
40
|
+
var _a;
|
|
41
|
+
if (view.meta.isKeepAlive) (_a = this.cachedViews) == null ? void 0 : _a.push(view.name);
|
|
42
|
+
},
|
|
43
|
+
async delCachedView(view) {
|
|
44
|
+
const index = this.cachedViews.indexOf(view.name);
|
|
45
|
+
if (index > -1) this.cachedViews.splice(index, 1);
|
|
46
|
+
},
|
|
47
|
+
async delOthersCachedViews(view) {
|
|
48
|
+
if (view.meta.isKeepAlive) this.cachedViews = [view.name];
|
|
49
|
+
else this.cachedViews = [];
|
|
50
|
+
},
|
|
51
|
+
async delAllCachedViews() {
|
|
52
|
+
this.cachedViews = [];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
const useRequestOldRoutes = pinia$1.defineStore("requestOldRoutes", {
|
|
58
|
+
state: () => ({
|
|
59
|
+
requestOldRoutes: []
|
|
60
|
+
}),
|
|
61
|
+
actions: {
|
|
62
|
+
async setRequestOldRoutes(routes) {
|
|
63
|
+
this.requestOldRoutes = routes;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const useRoutesList = pinia$1.defineStore("routesList", {
|
|
69
|
+
state: () => ({
|
|
70
|
+
routesList: [],
|
|
71
|
+
isColumnsMenuHover: false,
|
|
72
|
+
isColumnsNavHover: false,
|
|
73
|
+
currentRoute: null
|
|
74
|
+
}),
|
|
75
|
+
actions: {
|
|
76
|
+
setCurrentRoute(route) {
|
|
77
|
+
this.currentRoute = route;
|
|
78
|
+
},
|
|
79
|
+
async setRoutesList(data) {
|
|
80
|
+
this.routesList = data;
|
|
81
|
+
},
|
|
82
|
+
async setColumnsMenuHover(bool) {
|
|
83
|
+
this.isColumnsMenuHover = bool;
|
|
84
|
+
},
|
|
85
|
+
async setColumnsNavHover(bool) {
|
|
86
|
+
this.isColumnsNavHover = bool;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
30
91
|
function judgementSameArr(newArr, oldArr) {
|
|
31
92
|
const news = removeDuplicate(newArr);
|
|
32
93
|
const olds = removeDuplicate(oldArr);
|
|
@@ -1799,43 +1860,21 @@
|
|
|
1799
1860
|
}
|
|
1800
1861
|
};
|
|
1801
1862
|
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
div.id = id;
|
|
1816
|
-
div.style.pointerEvents = "none";
|
|
1817
|
-
div.style.top = "0px";
|
|
1818
|
-
div.style.left = "0px";
|
|
1819
|
-
div.style.position = "fixed";
|
|
1820
|
-
div.style.zIndex = "10000000";
|
|
1821
|
-
div.style.width = `${document.documentElement.clientWidth}px`;
|
|
1822
|
-
div.style.height = `${document.documentElement.clientHeight}px`;
|
|
1823
|
-
div.style.background = `url(${can.toDataURL("image/png")}) left top repeat`;
|
|
1824
|
-
document.body.appendChild(div);
|
|
1825
|
-
return id;
|
|
1826
|
-
};
|
|
1827
|
-
const watermark = {
|
|
1828
|
-
// 设置水印
|
|
1829
|
-
set: (str) => {
|
|
1830
|
-
let id = setWatermark(str);
|
|
1831
|
-
if (document.getElementById(id) === null) id = setWatermark(str);
|
|
1832
|
-
},
|
|
1833
|
-
// 删除水印
|
|
1834
|
-
del: () => {
|
|
1835
|
-
let id = "1.23452384164.123412416";
|
|
1836
|
-
if (document.getElementById(id) !== null) document.body.removeChild(document.getElementById(id));
|
|
1863
|
+
const useTagsViewRoutes = pinia$1.defineStore("tagsViewRoutes", {
|
|
1864
|
+
state: () => ({
|
|
1865
|
+
tagsViewRoutes: [],
|
|
1866
|
+
isTagsViewCurrenFull: false
|
|
1867
|
+
}),
|
|
1868
|
+
actions: {
|
|
1869
|
+
async setTagsViewRoutes(data) {
|
|
1870
|
+
this.tagsViewRoutes = data;
|
|
1871
|
+
},
|
|
1872
|
+
setCurrenFullscreen(bool) {
|
|
1873
|
+
Session.set("isTagsViewCurrenFull", bool);
|
|
1874
|
+
this.isTagsViewCurrenFull = bool;
|
|
1875
|
+
}
|
|
1837
1876
|
}
|
|
1838
|
-
};
|
|
1877
|
+
});
|
|
1839
1878
|
|
|
1840
1879
|
const useThemeConfig = pinia$1.defineStore("themeConfig", {
|
|
1841
1880
|
state: () => ({
|
|
@@ -2001,6 +2040,44 @@
|
|
|
2001
2040
|
}
|
|
2002
2041
|
});
|
|
2003
2042
|
|
|
2043
|
+
const setWatermark = (str) => {
|
|
2044
|
+
const id = "1.23452384164.123412416";
|
|
2045
|
+
if (document.getElementById(id) !== null) document.body.removeChild(document.getElementById(id));
|
|
2046
|
+
const can = document.createElement("canvas");
|
|
2047
|
+
can.width = 400;
|
|
2048
|
+
can.height = 200;
|
|
2049
|
+
const cans = can.getContext("2d");
|
|
2050
|
+
cans.rotate(-20 * Math.PI / 180);
|
|
2051
|
+
cans.font = "12px Vedana";
|
|
2052
|
+
cans.fillStyle = "rgba(200, 200, 200, 0.30)";
|
|
2053
|
+
cans.textBaseline = "middle";
|
|
2054
|
+
cans.fillText(str, can.width / 10, can.height, can.width);
|
|
2055
|
+
const div = document.createElement("div");
|
|
2056
|
+
div.id = id;
|
|
2057
|
+
div.style.pointerEvents = "none";
|
|
2058
|
+
div.style.top = "0px";
|
|
2059
|
+
div.style.left = "0px";
|
|
2060
|
+
div.style.position = "fixed";
|
|
2061
|
+
div.style.zIndex = "10000000";
|
|
2062
|
+
div.style.width = `${document.documentElement.clientWidth}px`;
|
|
2063
|
+
div.style.height = `${document.documentElement.clientHeight}px`;
|
|
2064
|
+
div.style.background = `url(${can.toDataURL("image/png")}) left top repeat`;
|
|
2065
|
+
document.body.appendChild(div);
|
|
2066
|
+
return id;
|
|
2067
|
+
};
|
|
2068
|
+
const watermark = {
|
|
2069
|
+
// 设置水印
|
|
2070
|
+
set: (str) => {
|
|
2071
|
+
let id = setWatermark(str);
|
|
2072
|
+
if (document.getElementById(id) === null) id = setWatermark(str);
|
|
2073
|
+
},
|
|
2074
|
+
// 删除水印
|
|
2075
|
+
del: () => {
|
|
2076
|
+
let id = "1.23452384164.123412416";
|
|
2077
|
+
if (document.getElementById(id) !== null) document.body.removeChild(document.getElementById(id));
|
|
2078
|
+
}
|
|
2079
|
+
};
|
|
2080
|
+
|
|
2004
2081
|
const useBaseApi = (module, options = {}) => {
|
|
2005
2082
|
const baseUrl = `/api/${module}/`;
|
|
2006
2083
|
const request = (config, cancel = false) => {
|
|
@@ -18592,83 +18669,6 @@
|
|
|
18592
18669
|
}));
|
|
18593
18670
|
};
|
|
18594
18671
|
|
|
18595
|
-
const useKeepALiveNames = pinia$1.defineStore("keepALiveNames", {
|
|
18596
|
-
state: () => ({
|
|
18597
|
-
keepAliveNames: [],
|
|
18598
|
-
cachedViews: []
|
|
18599
|
-
}),
|
|
18600
|
-
actions: {
|
|
18601
|
-
async setCacheKeepAlive(data) {
|
|
18602
|
-
this.keepAliveNames = data;
|
|
18603
|
-
},
|
|
18604
|
-
async addCachedView(view) {
|
|
18605
|
-
var _a;
|
|
18606
|
-
if (view.meta.isKeepAlive) (_a = this.cachedViews) == null ? void 0 : _a.push(view.name);
|
|
18607
|
-
},
|
|
18608
|
-
async delCachedView(view) {
|
|
18609
|
-
const index = this.cachedViews.indexOf(view.name);
|
|
18610
|
-
if (index > -1) this.cachedViews.splice(index, 1);
|
|
18611
|
-
},
|
|
18612
|
-
async delOthersCachedViews(view) {
|
|
18613
|
-
if (view.meta.isKeepAlive) this.cachedViews = [view.name];
|
|
18614
|
-
else this.cachedViews = [];
|
|
18615
|
-
},
|
|
18616
|
-
async delAllCachedViews() {
|
|
18617
|
-
this.cachedViews = [];
|
|
18618
|
-
}
|
|
18619
|
-
}
|
|
18620
|
-
});
|
|
18621
|
-
|
|
18622
|
-
const useRequestOldRoutes = pinia$1.defineStore("requestOldRoutes", {
|
|
18623
|
-
state: () => ({
|
|
18624
|
-
requestOldRoutes: []
|
|
18625
|
-
}),
|
|
18626
|
-
actions: {
|
|
18627
|
-
async setRequestOldRoutes(routes) {
|
|
18628
|
-
this.requestOldRoutes = routes;
|
|
18629
|
-
}
|
|
18630
|
-
}
|
|
18631
|
-
});
|
|
18632
|
-
|
|
18633
|
-
const useRoutesList = pinia$1.defineStore("routesList", {
|
|
18634
|
-
state: () => ({
|
|
18635
|
-
routesList: [],
|
|
18636
|
-
isColumnsMenuHover: false,
|
|
18637
|
-
isColumnsNavHover: false,
|
|
18638
|
-
currentRoute: null
|
|
18639
|
-
}),
|
|
18640
|
-
actions: {
|
|
18641
|
-
setCurrentRoute(route) {
|
|
18642
|
-
this.currentRoute = route;
|
|
18643
|
-
},
|
|
18644
|
-
async setRoutesList(data) {
|
|
18645
|
-
this.routesList = data;
|
|
18646
|
-
},
|
|
18647
|
-
async setColumnsMenuHover(bool) {
|
|
18648
|
-
this.isColumnsMenuHover = bool;
|
|
18649
|
-
},
|
|
18650
|
-
async setColumnsNavHover(bool) {
|
|
18651
|
-
this.isColumnsNavHover = bool;
|
|
18652
|
-
}
|
|
18653
|
-
}
|
|
18654
|
-
});
|
|
18655
|
-
|
|
18656
|
-
const useTagsViewRoutes = pinia$1.defineStore("tagsViewRoutes", {
|
|
18657
|
-
state: () => ({
|
|
18658
|
-
tagsViewRoutes: [],
|
|
18659
|
-
isTagsViewCurrenFull: false
|
|
18660
|
-
}),
|
|
18661
|
-
actions: {
|
|
18662
|
-
async setTagsViewRoutes(data) {
|
|
18663
|
-
this.tagsViewRoutes = data;
|
|
18664
|
-
},
|
|
18665
|
-
setCurrenFullscreen(bool) {
|
|
18666
|
-
Session.set("isTagsViewCurrenFull", bool);
|
|
18667
|
-
this.isTagsViewCurrenFull = bool;
|
|
18668
|
-
}
|
|
18669
|
-
}
|
|
18670
|
-
});
|
|
18671
|
-
|
|
18672
18672
|
function auth(value) {
|
|
18673
18673
|
const stores = useUserInfo();
|
|
18674
18674
|
return stores.userInfos.authApiList.some((v) => v === value);
|
|
@@ -28647,6 +28647,7 @@
|
|
|
28647
28647
|
exports.orgId = orgId;
|
|
28648
28648
|
exports.orgName = orgName;
|
|
28649
28649
|
exports.other = other;
|
|
28650
|
+
exports.pinia = pinia;
|
|
28650
28651
|
exports.posId = posId;
|
|
28651
28652
|
exports.posName = posName;
|
|
28652
28653
|
exports.provideFormEvents = provideFormEvents;
|