@fmdeui/fmui 1.0.11 → 1.0.14
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/index.d.ts +2 -0
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/packages/hooks/index.mjs +1 -0
- package/es/packages/utils/index.mjs +1 -0
- package/es/utils/index.d.ts +1 -0
- package/index.js +175 -9
- package/index.min.js +4 -4
- package/index.min.mjs +4 -4
- package/index.mjs +169 -8
- package/lib/hooks/index.d.ts +2 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +10 -2
- package/lib/packages/hooks/index.js +4 -0
- package/lib/packages/utils/index.js +2 -0
- package/lib/utils/index.d.ts +1 -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 → component.css} +0 -0
- /package/lib/{version.css → component.css} +0 -0
package/index.mjs
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.14 */
|
|
2
2
|
import { createPinia, defineStore, storeToRefs } from 'pinia';
|
|
3
3
|
import CryptoJS from 'crypto-js';
|
|
4
4
|
import XLSXS from 'xlsx-js-style';
|
|
5
|
-
import { ElLoading, ElMessage, localeContextKey, dayjs } from 'element-plus';
|
|
5
|
+
import { ElLoading, ElMessage, ElNotification, localeContextKey, dayjs, ElMessageBox } from 'element-plus';
|
|
6
6
|
import { isRef, unref, watch, nextTick, computed, defineComponent, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, renderSlot, inject, withDirectives, resolveDirective, reactive, useAttrs, useSlots, createSlots, renderList, normalizeProps, guardReactiveProps, createElementBlock, toDisplayString, createElementVNode, onMounted, onActivated, normalizeClass, createCommentVNode, getCurrentInstance, onBeforeUnmount, vShow, markRaw, resolveDynamicComponent, Fragment, createTextVNode, withModifiers, toHandlers, onUpdated, normalizeStyle } from 'vue';
|
|
7
7
|
import * as svg from '@element-plus/icons-vue';
|
|
8
8
|
import { CaretTop, ArrowDown, ArrowUp } from '@element-plus/icons-vue';
|
|
9
9
|
import axios from 'axios';
|
|
10
10
|
import Cookies from 'js-cookie';
|
|
11
|
+
import * as SignalR from '@microsoft/signalr';
|
|
11
12
|
import VxeUITable from 'vxe-table';
|
|
12
13
|
import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element';
|
|
13
14
|
import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
|
|
14
15
|
import VxeUI from 'vxe-pc-ui';
|
|
15
16
|
import { createI18n, useI18n } from 'vue-i18n';
|
|
16
17
|
import ExcelJS from 'exceljs';
|
|
17
|
-
import { get, merge } from 'lodash-es';
|
|
18
|
+
import { get, merge, debounce as debounce$1 } from 'lodash-es';
|
|
18
19
|
import { useResizeObserver, isClient, useClipboard } from '@vueuse/core';
|
|
19
20
|
import mitt from 'mitt';
|
|
20
21
|
import { createRouter, createWebHashHistory } from 'vue-router';
|
|
@@ -506,9 +507,9 @@ const getProperty = (obj, property) => {
|
|
|
506
507
|
return value;
|
|
507
508
|
};
|
|
508
509
|
|
|
509
|
-
var __defProp = Object.defineProperty;
|
|
510
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
511
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
510
|
+
var __defProp$1 = Object.defineProperty;
|
|
511
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
512
|
+
var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, key + "" , value);
|
|
512
513
|
const DEFAULT_CONFIG = {
|
|
513
514
|
lock: true,
|
|
514
515
|
text: "",
|
|
@@ -521,7 +522,7 @@ const DEFAULT_CONFIG = {
|
|
|
521
522
|
};
|
|
522
523
|
class FlowLoadingManager {
|
|
523
524
|
constructor() {
|
|
524
|
-
__publicField(this, "instance", null);
|
|
525
|
+
__publicField$1(this, "instance", null);
|
|
525
526
|
}
|
|
526
527
|
// 2. 统一返回类型
|
|
527
528
|
start(options) {
|
|
@@ -1647,6 +1648,53 @@ function judgementIdCard(idCard) {
|
|
|
1647
1648
|
return entity;
|
|
1648
1649
|
}
|
|
1649
1650
|
|
|
1651
|
+
const connection = new SignalR.HubConnectionBuilder().configureLogging(SignalR.LogLevel.Warning).withUrl(`${window.__env__.VITE_API_URL}/hubs/onlineUser?token=${getToken()}`, { transport: SignalR.HttpTransportType.WebSockets, skipNegotiation: true }).withAutomaticReconnect({
|
|
1652
|
+
nextRetryDelayInMilliseconds: () => {
|
|
1653
|
+
return 5e3;
|
|
1654
|
+
}
|
|
1655
|
+
}).build();
|
|
1656
|
+
connection.keepAliveIntervalInMilliseconds = 15 * 1e3;
|
|
1657
|
+
connection.serverTimeoutInMilliseconds = 30 * 1e3;
|
|
1658
|
+
connection.start().then(() => {
|
|
1659
|
+
});
|
|
1660
|
+
connection.onclose(async () => {
|
|
1661
|
+
});
|
|
1662
|
+
connection.onreconnecting(() => {
|
|
1663
|
+
ElNotification({
|
|
1664
|
+
title: "\u63D0\u793A",
|
|
1665
|
+
message: "\u8FDE\u63A5\u5DF2\u65AD\u5F00 >>>>>",
|
|
1666
|
+
type: "error",
|
|
1667
|
+
position: "bottom-right"
|
|
1668
|
+
});
|
|
1669
|
+
});
|
|
1670
|
+
connection.onreconnected(() => {
|
|
1671
|
+
ElNotification({
|
|
1672
|
+
title: "\u63D0\u793A",
|
|
1673
|
+
message: "\u8FDE\u63A5\u5DF2\u6062\u590D >>>>>",
|
|
1674
|
+
type: "success",
|
|
1675
|
+
position: "bottom-right"
|
|
1676
|
+
});
|
|
1677
|
+
});
|
|
1678
|
+
connection.on("OnlineUserList", () => {
|
|
1679
|
+
});
|
|
1680
|
+
connection.on("ReceiveMessage", (message) => {
|
|
1681
|
+
var tmpMsg = `<div style="white-space: pre-wrap;">${message.message}<div><br/>`;
|
|
1682
|
+
tmpMsg += `<p style="color:#808080; font-size:10px;float:right"> ${message.sendUserName} ${message.sendTime}<p>`;
|
|
1683
|
+
ElNotification({
|
|
1684
|
+
title: `${message.title}`,
|
|
1685
|
+
message: tmpMsg,
|
|
1686
|
+
type: message.messageType.toString().toLowerCase(),
|
|
1687
|
+
position: "top-right",
|
|
1688
|
+
dangerouslyUseHTMLString: true,
|
|
1689
|
+
duration: 5e3
|
|
1690
|
+
});
|
|
1691
|
+
});
|
|
1692
|
+
|
|
1693
|
+
var signalR$1 = /*#__PURE__*/Object.freeze({
|
|
1694
|
+
__proto__: null,
|
|
1695
|
+
signalR: connection
|
|
1696
|
+
});
|
|
1697
|
+
|
|
1650
1698
|
const setWatermark = (str) => {
|
|
1651
1699
|
const id = "1.23452384164.123412416";
|
|
1652
1700
|
if (document.getElementById(id) !== null) document.body.removeChild(document.getElementById(id));
|
|
@@ -18701,7 +18749,120 @@ const useVxeTable = (opt, extras) => {
|
|
|
18701
18749
|
|
|
18702
18750
|
var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABBCAYAAACO98lFAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFwmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDIgNzkuMTYwOTI0LCAyMDE3LzA3LzEzLTAxOjA2OjM5ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpy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EAJgLT5+y/4m10QlQAwdb0ecqg3+hxPRIyGlGy3UPCmHxotgqezx3RMteyPH9WbqqZEEoItglqyIUqQdNgh5ZUbc5hcK5BRwUUJxeYfnzmXl8fuK1ScG1TyCqPcP4yUfK1atjxEdDhsEAMC2X3DcEDtIkYjAZ/Jw63ZccqS+ejR2xtfgZtcMt77ACtBTeMmp6LqQomu9n1x0JL9w37hNk0Zr3ozWTwTMJQLmRggoTgSjjxUbnJRQSwvIpcbxpPRk9bSMVO3TY5NVzyaagAklmoeG/XpyTs5D42PWSCRJCXIAgK35ZlDd6WS+DavjJRGBjxfBIiAgRqK6ZA/whduj1DDjYcUvwpCPqDH4HxmuIUqp1U4vfPfU8K8ODuvlIB/QuzIsPn6LktsnSoighKITXd5f5hxWHrWG8oiAAHC9gHvNQj3jYcVjNwMMBMD6OVTdRbBL4jkUfS8gBPnd0xZ1m4NZNNJAmDzcuuDZYaR5xAWG8meXnaP7SG6VkhtqCIC1+fmCYr0r40WFNcZ4+ab88yWcckqNeFaaVpWZptFNStOmTUjRZKQnqzNTNKoMHMdUjABODyNYSFp02AOC1+LjGbOXEz+b/7Nb8kfuWwKCHOWUGnAcw7Fdz94aY+XoewXhh0I/mj+HRqPbIGAY9j88X5w73RopXgAAAABJRU5ErkJggg==";
|
|
18703
18751
|
|
|
18752
|
+
var __defProp = Object.defineProperty;
|
|
18753
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
18754
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
18755
|
+
let signalR;
|
|
18756
|
+
async function loadSignalR() {
|
|
18757
|
+
if (!signalR) {
|
|
18758
|
+
const module = await Promise.resolve().then(function () { return signalR$1; });
|
|
18759
|
+
signalR = module.signalR;
|
|
18760
|
+
}
|
|
18761
|
+
return signalR;
|
|
18762
|
+
}
|
|
18704
18763
|
const { t } = useLocale();
|
|
18764
|
+
class IdleTimeoutManager {
|
|
18765
|
+
constructor(config = {}) {
|
|
18766
|
+
__publicField(this, "timerId", null);
|
|
18767
|
+
__publicField(this, "config");
|
|
18768
|
+
__publicField(this, "debouncedReset");
|
|
18769
|
+
/** 检查闲置超时时间间隔 */
|
|
18770
|
+
__publicField(this, "checkTimeoutInterval", 2 * 1e3);
|
|
18771
|
+
__publicField(this, "handleVisibilityChange", () => {
|
|
18772
|
+
if (document.visibilityState === "visible") {
|
|
18773
|
+
this.setLastActivityTime();
|
|
18774
|
+
}
|
|
18775
|
+
});
|
|
18776
|
+
this.config = {
|
|
18777
|
+
timeout: 30 * 60,
|
|
18778
|
+
events: ["mousewheel", "keydown", "click"],
|
|
18779
|
+
onTimeout: this.timeOutExec.bind(this),
|
|
18780
|
+
debounceInterval: 200,
|
|
18781
|
+
...config
|
|
18782
|
+
};
|
|
18783
|
+
this.debouncedReset = this.config.debounceInterval > 0 ? debounce$1(this.setLastActivityTime.bind(this), this.config.debounceInterval) : this.setLastActivityTime.bind(this);
|
|
18784
|
+
this.init();
|
|
18785
|
+
}
|
|
18786
|
+
init() {
|
|
18787
|
+
this.config.events.forEach((event) => {
|
|
18788
|
+
window.addEventListener(event, this.debouncedReset);
|
|
18789
|
+
});
|
|
18790
|
+
document.addEventListener("visibilitychange", this.handleVisibilityChange);
|
|
18791
|
+
this.setLastActivityTime();
|
|
18792
|
+
this.updateIdleTimeout(this.config.timeout);
|
|
18793
|
+
}
|
|
18794
|
+
/** 设置最后活动时间 */
|
|
18795
|
+
setLastActivityTime() {
|
|
18796
|
+
Local.set("lastActivityTime", (/* @__PURE__ */ new Date()).getTime());
|
|
18797
|
+
}
|
|
18798
|
+
/**
|
|
18799
|
+
* 更新空闲超时时间
|
|
18800
|
+
* @param timeout - 新的超时时间(毫秒)
|
|
18801
|
+
*/
|
|
18802
|
+
updateIdleTimeout(timeout) {
|
|
18803
|
+
this.config.timeout = timeout;
|
|
18804
|
+
if (this.config.timeout > 0 && this.timerId == null) {
|
|
18805
|
+
this.timerId = window.setInterval(this.checkTimeout.bind(this), this.checkTimeoutInterval);
|
|
18806
|
+
} else if (this.config.timeout == 0 && this.timerId != null) {
|
|
18807
|
+
window.clearInterval(this.timerId);
|
|
18808
|
+
this.timerId = null;
|
|
18809
|
+
}
|
|
18810
|
+
}
|
|
18811
|
+
/** 检查是否超时 */
|
|
18812
|
+
checkTimeout() {
|
|
18813
|
+
const currentTime = (/* @__PURE__ */ new Date()).getTime();
|
|
18814
|
+
const lastActivityTime = Number(Local.get("lastActivityTime"));
|
|
18815
|
+
if (lastActivityTime == 0) return;
|
|
18816
|
+
const accessToken = Local.get(accessTokenKey);
|
|
18817
|
+
if (!accessToken || accessToken == "invalid_token") return;
|
|
18818
|
+
const timeout = this.config.timeout * 1e3;
|
|
18819
|
+
if (currentTime - lastActivityTime > timeout) {
|
|
18820
|
+
this.destroy();
|
|
18821
|
+
this.config.onTimeout();
|
|
18822
|
+
}
|
|
18823
|
+
}
|
|
18824
|
+
/** 销毁实例 */
|
|
18825
|
+
destroy() {
|
|
18826
|
+
this.config.events.forEach((event) => {
|
|
18827
|
+
window.removeEventListener(event, this.debouncedReset);
|
|
18828
|
+
});
|
|
18829
|
+
document.removeEventListener("visibilitychange", this.handleVisibilityChange);
|
|
18830
|
+
if (this.timerId !== null) {
|
|
18831
|
+
window.clearInterval(this.timerId);
|
|
18832
|
+
this.timerId = null;
|
|
18833
|
+
}
|
|
18834
|
+
}
|
|
18835
|
+
/** 超时时执行 */
|
|
18836
|
+
timeOutExec() {
|
|
18837
|
+
const appEl = document.getElementById("app");
|
|
18838
|
+
appEl == null ? void 0 : appEl.remove();
|
|
18839
|
+
loadSignalR().then((signalR2) => {
|
|
18840
|
+
signalR2.stop();
|
|
18841
|
+
});
|
|
18842
|
+
Local.remove(accessTokenKey);
|
|
18843
|
+
Local.remove(refreshAccessTokenKey);
|
|
18844
|
+
Session.clear();
|
|
18845
|
+
ElMessageBox.alert(t("plus.list.idleTimeoutMessage"), t("plus.list.sysMessage"), {
|
|
18846
|
+
type: "warning",
|
|
18847
|
+
draggable: true,
|
|
18848
|
+
callback: () => {
|
|
18849
|
+
window.location.reload();
|
|
18850
|
+
}
|
|
18851
|
+
});
|
|
18852
|
+
}
|
|
18853
|
+
}
|
|
18854
|
+
function initIdleTimeout(config) {
|
|
18855
|
+
if (!window.__IDLE_TIMEOUT__) {
|
|
18856
|
+
window.__IDLE_TIMEOUT__ = new IdleTimeoutManager(config);
|
|
18857
|
+
}
|
|
18858
|
+
return window.__IDLE_TIMEOUT__;
|
|
18859
|
+
}
|
|
18860
|
+
function destroyIdleTimeout() {
|
|
18861
|
+
if (window.__IDLE_TIMEOUT__) {
|
|
18862
|
+
window.__IDLE_TIMEOUT__.destroy();
|
|
18863
|
+
window.__IDLE_TIMEOUT__ = void 0;
|
|
18864
|
+
}
|
|
18865
|
+
}
|
|
18705
18866
|
function updateIdleTimeout(timeout) {
|
|
18706
18867
|
if (window.__IDLE_TIMEOUT__) {
|
|
18707
18868
|
window.__IDLE_TIMEOUT__.updateIdleTimeout(timeout);
|
|
@@ -22815,4 +22976,4 @@ const version = "1.0.0";
|
|
|
22815
22976
|
const commonFun = commonFunction();
|
|
22816
22977
|
const install = installer.install;
|
|
22817
22978
|
|
|
22818
|
-
export { AccountTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFun, commonFunction, configureRoutes, dataURLtoBlob, decryptJWT, installer as default, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getHeader, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initBackEndControlRoutes, initFrontEndControlRoutes, initRouter, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, posId, posName, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, roles, saulVModel, service, setCssCdn, setDynamicViewsModules, setIntroduction, setJsCdn, setPathPrefix, setupI18n, signatureByKSort, sleep, tansParams, tenantId, translate, updateFavicon, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
|
|
22979
|
+
export { AccountTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFun, commonFunction, configureRoutes, dataURLtoBlob, decryptJWT, installer as default, destroyIdleTimeout, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getHeader, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initBackEndControlRoutes, initFrontEndControlRoutes, initIdleTimeout, initRouter, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, posId, posName, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, roles, router, saulVModel, service, setCssCdn, setDynamicViewsModules, setIntroduction, setJsCdn, setPathPrefix, setupI18n, connection as signalR, signatureByKSort, sleep, tansParams, tenantId, translate, updateFavicon, updateIdleTimeout, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
|
package/lib/hooks/index.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { default as emitter } from './utils/mitt';
|
|
|
4
4
|
import { default as Watermark } from './utils/watermark';
|
|
5
5
|
import { default as commonFunction } from './hooks/commonFunction';
|
|
6
6
|
import { default as other } from './hooks/other';
|
|
7
|
+
import { default as router } from './router';
|
|
7
8
|
import { EmptyArrayType } from './types';
|
|
8
9
|
import { MessageHandler } from 'element-plus';
|
|
9
10
|
import { App } from 'vue';
|
|
@@ -36,7 +37,7 @@ declare const commonFun: {
|
|
|
36
37
|
value: () => Date[];
|
|
37
38
|
}[];
|
|
38
39
|
};
|
|
39
|
-
export { setIntroduction, emitter as mittBus, Watermark, other, commonFunction, commonFun, setCssCdn, setJsCdn };
|
|
40
|
+
export { setIntroduction, emitter as mittBus, Watermark, other, commonFunction, commonFun, setCssCdn, setJsCdn, router };
|
|
40
41
|
export { version } from './version';
|
|
41
42
|
export declare const install: (app: App) => void;
|
|
42
43
|
export default installer;
|
package/lib/index.js
CHANGED
|
@@ -8,12 +8,12 @@ var mitt = require('./packages/utils/mitt.js');
|
|
|
8
8
|
var watermark = require('./packages/utils/watermark.js');
|
|
9
9
|
var commonFunction = require('./packages/hooks/commonFunction.js');
|
|
10
10
|
var other = require('./packages/hooks/other.js');
|
|
11
|
+
var index$3 = require('./packages/router/index.js');
|
|
11
12
|
require('./packages/types/index.js');
|
|
12
13
|
var index = require('./packages/api/index.js');
|
|
13
14
|
require('./packages/utils/index.js');
|
|
14
15
|
require('./packages/stores/index.js');
|
|
15
16
|
require('./packages/hooks/index.js');
|
|
16
|
-
var index$3 = require('./packages/router/index.js');
|
|
17
17
|
var index$2 = require('./packages/locale/index.js');
|
|
18
18
|
var version = require('./version.js');
|
|
19
19
|
var storage = require('./packages/utils/storage.js');
|
|
@@ -25,6 +25,7 @@ var base64Conver = require('./packages/utils/base64Conver.js');
|
|
|
25
25
|
var useLocale = require('./packages/hooks/useLocale.js');
|
|
26
26
|
var arrayOperation = require('./packages/utils/arrayOperation.js');
|
|
27
27
|
var route = require('./packages/router/route.js');
|
|
28
|
+
var idleTimeout = require('./packages/hooks/idleTimeout.js');
|
|
28
29
|
var download = require('./packages/utils/download.js');
|
|
29
30
|
var en = require('./packages/locale/lang/en.js');
|
|
30
31
|
var exportExcel = require('./packages/utils/exportExcel.js');
|
|
@@ -37,7 +38,9 @@ var backEnd = require('./packages/router/backEnd.js');
|
|
|
37
38
|
var frontEnd = require('./packages/router/frontEnd.js');
|
|
38
39
|
var toolsValidate = require('./packages/utils/toolsValidate.js');
|
|
39
40
|
var sysInfo = require('./packages/hooks/sysInfo.js');
|
|
41
|
+
var createRouter = require('./packages/router/createRouter.js');
|
|
40
42
|
var saulVModel = require('./packages/utils/saulVModel.js');
|
|
43
|
+
var signalR = require('./packages/utils/signalR.js');
|
|
41
44
|
var dataSignature = require('./packages/utils/data-signature.js');
|
|
42
45
|
var index$4 = require('./packages/api/base/index.js');
|
|
43
46
|
var theme = require('./packages/utils/theme.js');
|
|
@@ -64,10 +67,10 @@ exports.mittBus = mitt.default;
|
|
|
64
67
|
exports.Watermark = watermark.default;
|
|
65
68
|
exports.commonFunction = commonFunction.default;
|
|
66
69
|
exports.other = other.default;
|
|
70
|
+
exports.initRouter = index$3.initRouter;
|
|
67
71
|
exports.AccountTypeEnum = index.AccountTypeEnum;
|
|
68
72
|
exports.HttpMethodEnum = index.HttpMethodEnum;
|
|
69
73
|
exports.JobCreateTypeEnum = index.JobCreateTypeEnum;
|
|
70
|
-
exports.initRouter = index$3.initRouter;
|
|
71
74
|
exports.getCountryCode = index$2.getCountryCode;
|
|
72
75
|
exports.i18n = index$2.i18n;
|
|
73
76
|
exports.iso_3166_1_CountryList = index$2.iso_3166_1_CountryList;
|
|
@@ -116,6 +119,9 @@ exports.judgementSameArr = arrayOperation.judgementSameArr;
|
|
|
116
119
|
exports.removeDuplicate = arrayOperation.removeDuplicate;
|
|
117
120
|
exports.configureRoutes = route.configureRoutes;
|
|
118
121
|
exports.setPathPrefix = route.setPathPrefix;
|
|
122
|
+
exports.destroyIdleTimeout = idleTimeout.destroyIdleTimeout;
|
|
123
|
+
exports.initIdleTimeout = idleTimeout.initIdleTimeout;
|
|
124
|
+
exports.updateIdleTimeout = idleTimeout.updateIdleTimeout;
|
|
119
125
|
exports.downloadByBase64 = download.downloadByBase64;
|
|
120
126
|
exports.downloadByData = download.downloadByData;
|
|
121
127
|
exports.downloadByOnlineUrl = download.downloadByOnlineUrl;
|
|
@@ -183,7 +189,9 @@ exports.verifyTextColor = toolsValidate.verifyTextColor;
|
|
|
183
189
|
exports.verifyUrl = toolsValidate.verifyUrl;
|
|
184
190
|
exports.loadSysInfo = sysInfo.loadSysInfo;
|
|
185
191
|
exports.updateFavicon = sysInfo.updateFavicon;
|
|
192
|
+
exports.router = createRouter.router;
|
|
186
193
|
exports.saulVModel = saulVModel.saulVModel;
|
|
194
|
+
exports.signalR = signalR.signalR;
|
|
187
195
|
exports.signatureByKSort = dataSignature.signatureByKSort;
|
|
188
196
|
exports.useApi = index$4.useApi;
|
|
189
197
|
exports.useBaseApi = index$4.useBaseApi;
|
|
@@ -6,6 +6,7 @@ var useVxeTableOptionsHook = require('./useVxeTableOptionsHook.js');
|
|
|
6
6
|
var sysInfo = require('./sysInfo.js');
|
|
7
7
|
var useInfo = require('./useInfo.js');
|
|
8
8
|
var dateTimeShortCust = require('./dateTimeShortCust.js');
|
|
9
|
+
var idleTimeout = require('./idleTimeout.js');
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
@@ -42,3 +43,6 @@ exports.userId = useInfo.userId;
|
|
|
42
43
|
exports.userName = useInfo.userName;
|
|
43
44
|
exports.userPhone = useInfo.userPhone;
|
|
44
45
|
exports.useDateTimeShortCust = dateTimeShortCust.useDateTimeShortCust;
|
|
46
|
+
exports.destroyIdleTimeout = idleTimeout.destroyIdleTimeout;
|
|
47
|
+
exports.initIdleTimeout = idleTimeout.initIdleTimeout;
|
|
48
|
+
exports.updateIdleTimeout = idleTimeout.updateIdleTimeout;
|
|
@@ -20,6 +20,7 @@ var saulVModel = require('./saulVModel.js');
|
|
|
20
20
|
var storage = require('./storage.js');
|
|
21
21
|
var theme = require('./theme.js');
|
|
22
22
|
var toolsValidate = require('./toolsValidate.js');
|
|
23
|
+
var signalR = require('./signalR.js');
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
|
|
@@ -98,3 +99,4 @@ exports.verifyPostalCode = toolsValidate.verifyPostalCode;
|
|
|
98
99
|
exports.verifyTelPhone = toolsValidate.verifyTelPhone;
|
|
99
100
|
exports.verifyTextColor = toolsValidate.verifyTextColor;
|
|
100
101
|
exports.verifyUrl = toolsValidate.verifyUrl;
|
|
102
|
+
exports.signalR = signalR.signalR;
|
package/lib/utils/index.d.ts
CHANGED
package/locale/en.js
CHANGED
package/locale/en.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.14 */(function(e,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.fmdeuiPlusLocaleEn=t())})(this,(function(){"use strict";var e={name:"en",plus:{datepicker:{date:"Please select date",dates:"Please select dates",week:"Please select week",month:"Please select month",months:"Please select months",year:"Please select year",years:"Please select years",startDatePlaceholder:"Please select start date",endDatePlaceholder:"Please select end date",datetime:"Please select datetime",startMonthPlaceholder:"Please select start month",endMonthPlaceholder:"Please select end month",startTimePlaceholder:"Please select start time",endTimePlaceholder:"Please select end time",shortcutsDate:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDaterange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"},shortcutsMonthrange:{thisMonth:"This month",thisYear:"This year",pastSixMonths:"Past six months"},shortcutsDatetime:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDatetimerange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"}},form:{pleaseEnter:"Please enter ",pleaseSelect:"Please select "},input:{placeholder:"Please enter ",appendTitle:"Yuan",validatePhone:"Please enter a valid phone number",validateIdCard:"Please enter a valid ID card number",validateInteger:"Please enter a valid integer",format:"Please enter a valid ",amount:"amount",numbers:"numbers",digitUppercase:"Please enter a valid amount format",validateError:"Please enter a valid format",escaped:{0:"Cent",1:"Penny",2:"Zero",3:"One",4:"Two",5:"Three",6:"Four",7:"Five",8:"Six",9:"Seven",10:"Eight",11:"Nine",12:"Yuan",13:"Ten thousand",14:"Ten million",15:"Ten billion",16:"Ten",17:"Hundred",18:"Thousand",19:"Short",20:"Whole"}},moduleForm:{save:"Save",back:"Back"},search:{searchText:"Search",resetText:"Reset",expand:"Expand",retract:"Retract",pleaseEnter:"Please enter ",pleaseSelect:"Please select ",popoverAttrs:{showTxt:"More",title:"All conditions",allTxt:"SelectAll",reverseTxt:"Reverse",clearTxt:"ClearAll"}},select:{selectAllTxt:"Select all"},selectIcon:{placeholder:"Please select icon",dialogTitle:"Please select icon",searchPlaceholder:"Search icon",emptyDescription:"No icon found"},copy:{copySuccess:"Copy success",copyFail:"Copy fail",invalidCopyContent:"Invalid copy content"},selectTable:{searchBtnTxt:"Search",radioTxt:"Radio",loadingTxt:"Loading...",copySuccess:"Copy success",copyFail:"Copy fail"},stepWizard:{lastBtnTitle:"Complete"},table:{columnBind:{btnTxt:"Column setting",title:"Column setting"},fistColumn:{label:"Number",radio:"Radio"},operator:{label:"Operation",more:"More",sum:"Sum",total:"Total",allSum:"All sum"},singleEdit:{tipText:"Click to edit"},pleaseEnter:"Please enter ",pleaseSelect:"Please select ",loadingTxt:"Loading...",dragTxt:"Drag",saveBtnTxt:"Save",density:"Density",default:"Default",loose:"Loose",compact:"Compact"},list:{idleTimeoutMessage:"Long time no operation, system logged out.",sysMessage:"System Message"}}};return e}));
|
package/locale/en.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.14 */var e={name:"en",plus:{datepicker:{date:"Please select date",dates:"Please select dates",week:"Please select week",month:"Please select month",months:"Please select months",year:"Please select year",years:"Please select years",startDatePlaceholder:"Please select start date",endDatePlaceholder:"Please select end date",datetime:"Please select datetime",startMonthPlaceholder:"Please select start month",endMonthPlaceholder:"Please select end month",startTimePlaceholder:"Please select start time",endTimePlaceholder:"Please select end time",shortcutsDate:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDaterange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"},shortcutsMonthrange:{thisMonth:"This month",thisYear:"This year",pastSixMonths:"Past six months"},shortcutsDatetime:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDatetimerange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"}},form:{pleaseEnter:"Please enter ",pleaseSelect:"Please select "},input:{placeholder:"Please enter ",appendTitle:"Yuan",validatePhone:"Please enter a valid phone number",validateIdCard:"Please enter a valid ID card number",validateInteger:"Please enter a valid integer",format:"Please enter a valid ",amount:"amount",numbers:"numbers",digitUppercase:"Please enter a valid amount format",validateError:"Please enter a valid format",escaped:{0:"Cent",1:"Penny",2:"Zero",3:"One",4:"Two",5:"Three",6:"Four",7:"Five",8:"Six",9:"Seven",10:"Eight",11:"Nine",12:"Yuan",13:"Ten thousand",14:"Ten million",15:"Ten billion",16:"Ten",17:"Hundred",18:"Thousand",19:"Short",20:"Whole"}},moduleForm:{save:"Save",back:"Back"},search:{searchText:"Search",resetText:"Reset",expand:"Expand",retract:"Retract",pleaseEnter:"Please enter ",pleaseSelect:"Please select ",popoverAttrs:{showTxt:"More",title:"All conditions",allTxt:"SelectAll",reverseTxt:"Reverse",clearTxt:"ClearAll"}},select:{selectAllTxt:"Select all"},selectIcon:{placeholder:"Please select icon",dialogTitle:"Please select icon",searchPlaceholder:"Search icon",emptyDescription:"No icon found"},copy:{copySuccess:"Copy success",copyFail:"Copy fail",invalidCopyContent:"Invalid copy content"},selectTable:{searchBtnTxt:"Search",radioTxt:"Radio",loadingTxt:"Loading...",copySuccess:"Copy success",copyFail:"Copy fail"},stepWizard:{lastBtnTitle:"Complete"},table:{columnBind:{btnTxt:"Column setting",title:"Column setting"},fistColumn:{label:"Number",radio:"Radio"},operator:{label:"Operation",more:"More",sum:"Sum",total:"Total",allSum:"All sum"},singleEdit:{tipText:"Click to edit"},pleaseEnter:"Please enter ",pleaseSelect:"Please select ",loadingTxt:"Loading...",dragTxt:"Drag",saveBtnTxt:"Save",density:"Density",default:"Default",loose:"Loose",compact:"Compact"},list:{idleTimeoutMessage:"Long time no operation, system logged out.",sysMessage:"System Message"}}};export{e as default};
|
package/locale/en.mjs
CHANGED
package/locale/zh-cn.js
CHANGED
package/locale/zh-cn.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.14 */(function(u,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e():typeof define=="function"&&define.amd?define(e):(u=typeof globalThis!="undefined"?globalThis:u||self,u.fmdeuiPlusLocaleZhCn=e())})(this,(function(){"use strict";var u={name:"zh-cn",plus:{datepicker:{date:"\u8BF7\u9009\u62E9\u65E5\u671F",dates:"\u8BF7\u9009\u62E9\u65E5\u671F",week:"\u8BF7\u9009\u62E9\u5468",month:"\u8BF7\u9009\u62E9\u6708\u4EFD",months:"\u8BF7\u9009\u62E9\u6708\u4EFD",year:"\u8BF7\u9009\u62E9\u5E74\u4EFD",years:"\u8BF7\u9009\u62E9\u5E74\u4EFD",startDatePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endDatePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",datetime:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",startMonthPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u6708\u4EFD",endMonthPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u6708\u4EFD",startTimePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",endTimePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",shortcutsDate:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDaterange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"},shortcutsMonthrange:{thisMonth:"\u672C\u6708",thisYear:"\u4ECA\u5E74\u81F3\u4ECA",pastSixMonths:"\u6700\u8FD1\u516D\u4E2A\u6708"},shortcutsDatetime:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDatetimerange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"}},form:{pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9"},input:{placeholder:"\u8BF7\u8F93\u5165",appendTitle:"\u5143",validatePhone:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801",validateIdCard:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801",validateInteger:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6574\u6570",format:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684",amount:"\u91D1\u989D",numbers:"\u6570\u5B57",digitUppercase:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u91D1\u989D\u683C\u5F0F",validateError:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u683C\u5F0F",escaped:{0:"\u89D2",1:"\u5206",2:"\u96F6",3:"\u58F9",4:"\u8D30",5:"\u53C1",6:"\u8086",7:"\u4F0D",8:"\u9646",9:"\u67D2",10:"\u634C",11:"\u7396",12:"\u5143",13:"\u4E07",14:"\u4EBF",15:"\u5146",16:"\u62FE",17:"\u4F70",18:"\u4EDF",19:"\u6B20",20:"\u6574"}},moduleForm:{save:"\u4FDD\u5B58",back:"\u8FD4\u56DE"},search:{searchText:"\u67E5\u8BE2",resetText:"\u91CD\u7F6E",expand:"\u5C55\u5F00",retract:"\u6536\u8D77",pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",popoverAttrs:{showTxt:"\u66F4\u591A",title:"\u6240\u6709\u6761\u4EF6",allTxt:"\u5168\u9009",reverseTxt:"\u53CD\u9009",clearTxt:"\u6E05\u7A7A"}},select:{selectAllTxt:"\u5168\u9009"},selectIcon:{placeholder:"\u8BF7\u9009\u62E9\u56FE\u6807",dialogTitle:"\u8BF7\u9009\u62E9\u56FE\u6807",searchPlaceholder:"\u641C\u7D22\u56FE\u6807",emptyDescription:"\u672A\u641C\u7D22\u5230\u60A8\u8981\u627E\u7684\u56FE\u6807"},copy:{copySuccess:"\u590D\u5236\u6210\u529F",copyFail:"\u590D\u5236\u5931\u8D25",invalidCopyContent:"\u65E0\u6548\u7684\u590D\u5236\u5185\u5BB9"},selectTable:{searchBtnTxt:"\u5173\u95ED\u4E0B\u62C9\u6846",radioTxt:"\u5355\u9009",loadingTxt:"\u52A0\u8F7D\u4E2D..."},stepWizard:{lastBtnTitle:"\u5B8C\u6210"},table:{columnBind:{btnTxt:"\u5217\u8BBE\u7F6E",title:"\u5217\u8BBE\u7F6E"},fistColumn:{label:"\u5E8F\u53F7",radio:"\u5355\u9009"},operator:{label:"\u64CD\u4F5C",more:"\u66F4\u591A",sum:"\u5F53\u9875\u5408\u8BA1",total:"\u5408\u8BA1",allSum:"\u5168\u90E8\u5408\u8BA1"},singleEdit:{tipText:"\u5355\u51FB\u53EF\u7F16\u8F91"},pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",loadingTxt:"\u52A0\u8F7D\u4E2D...",saveBtnTxt:"\u4FDD\u5B58",dragTxt:"\u62D6\u52A8",density:"\u5BC6\u5EA6",default:"\u9ED8\u8BA4",loose:"\u5BBD\u677E",compact:"\u7D27\u51D1"},list:{idleTimeoutMessage:"\u957F\u65F6\u95F4\u672A\u64CD\u4F5C\uFF0C\u5DF2\u9000\u51FA\u7CFB\u7EDF\u3002",sysMessage:"\u7CFB\u7EDF\u6D88\u606F"}}};return u}));
|
package/locale/zh-cn.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.14 */var u={name:"zh-cn",plus:{datepicker:{date:"\u8BF7\u9009\u62E9\u65E5\u671F",dates:"\u8BF7\u9009\u62E9\u65E5\u671F",week:"\u8BF7\u9009\u62E9\u5468",month:"\u8BF7\u9009\u62E9\u6708\u4EFD",months:"\u8BF7\u9009\u62E9\u6708\u4EFD",year:"\u8BF7\u9009\u62E9\u5E74\u4EFD",years:"\u8BF7\u9009\u62E9\u5E74\u4EFD",startDatePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endDatePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",datetime:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",startMonthPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u6708\u4EFD",endMonthPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u6708\u4EFD",startTimePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",endTimePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",shortcutsDate:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDaterange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"},shortcutsMonthrange:{thisMonth:"\u672C\u6708",thisYear:"\u4ECA\u5E74\u81F3\u4ECA",pastSixMonths:"\u6700\u8FD1\u516D\u4E2A\u6708"},shortcutsDatetime:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDatetimerange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"}},form:{pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9"},input:{placeholder:"\u8BF7\u8F93\u5165",appendTitle:"\u5143",validatePhone:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801",validateIdCard:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801",validateInteger:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6574\u6570",format:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684",amount:"\u91D1\u989D",numbers:"\u6570\u5B57",digitUppercase:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u91D1\u989D\u683C\u5F0F",validateError:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u683C\u5F0F",escaped:{0:"\u89D2",1:"\u5206",2:"\u96F6",3:"\u58F9",4:"\u8D30",5:"\u53C1",6:"\u8086",7:"\u4F0D",8:"\u9646",9:"\u67D2",10:"\u634C",11:"\u7396",12:"\u5143",13:"\u4E07",14:"\u4EBF",15:"\u5146",16:"\u62FE",17:"\u4F70",18:"\u4EDF",19:"\u6B20",20:"\u6574"}},moduleForm:{save:"\u4FDD\u5B58",back:"\u8FD4\u56DE"},search:{searchText:"\u67E5\u8BE2",resetText:"\u91CD\u7F6E",expand:"\u5C55\u5F00",retract:"\u6536\u8D77",pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",popoverAttrs:{showTxt:"\u66F4\u591A",title:"\u6240\u6709\u6761\u4EF6",allTxt:"\u5168\u9009",reverseTxt:"\u53CD\u9009",clearTxt:"\u6E05\u7A7A"}},select:{selectAllTxt:"\u5168\u9009"},selectIcon:{placeholder:"\u8BF7\u9009\u62E9\u56FE\u6807",dialogTitle:"\u8BF7\u9009\u62E9\u56FE\u6807",searchPlaceholder:"\u641C\u7D22\u56FE\u6807",emptyDescription:"\u672A\u641C\u7D22\u5230\u60A8\u8981\u627E\u7684\u56FE\u6807"},copy:{copySuccess:"\u590D\u5236\u6210\u529F",copyFail:"\u590D\u5236\u5931\u8D25",invalidCopyContent:"\u65E0\u6548\u7684\u590D\u5236\u5185\u5BB9"},selectTable:{searchBtnTxt:"\u5173\u95ED\u4E0B\u62C9\u6846",radioTxt:"\u5355\u9009",loadingTxt:"\u52A0\u8F7D\u4E2D..."},stepWizard:{lastBtnTitle:"\u5B8C\u6210"},table:{columnBind:{btnTxt:"\u5217\u8BBE\u7F6E",title:"\u5217\u8BBE\u7F6E"},fistColumn:{label:"\u5E8F\u53F7",radio:"\u5355\u9009"},operator:{label:"\u64CD\u4F5C",more:"\u66F4\u591A",sum:"\u5F53\u9875\u5408\u8BA1",total:"\u5408\u8BA1",allSum:"\u5168\u90E8\u5408\u8BA1"},singleEdit:{tipText:"\u5355\u51FB\u53EF\u7F16\u8F91"},pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",loadingTxt:"\u52A0\u8F7D\u4E2D...",saveBtnTxt:"\u4FDD\u5B58",dragTxt:"\u62D6\u52A8",density:"\u5BC6\u5EA6",default:"\u9ED8\u8BA4",loose:"\u5BBD\u677E",compact:"\u7D27\u51D1"},list:{idleTimeoutMessage:"\u957F\u65F6\u95F4\u672A\u64CD\u4F5C\uFF0C\u5DF2\u9000\u51FA\u7CFB\u7EDF\u3002",sysMessage:"\u7CFB\u7EDF\u6D88\u606F"}}};export{u as default};
|
package/locale/zh-cn.mjs
CHANGED
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|