@fmdeui/fmui 1.0.9 → 1.0.10

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/index.mjs CHANGED
@@ -1,6 +1,5 @@
1
- /*! fmdeui-fmui v1.0.9 */
1
+ /*! fmdeui-fmui v1.0.10 */
2
2
  import { createPinia, defineStore, storeToRefs } from 'pinia';
3
- import mitt from 'mitt';
4
3
  import CryptoJS from 'crypto-js';
5
4
  import XLSXS from 'xlsx-js-style';
6
5
  import { ElLoading, ElMessage, localeContextKey, dayjs } from 'element-plus';
@@ -14,50 +13,14 @@ import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
14
13
  import VxeUI from 'vxe-pc-ui';
15
14
  import { createI18n, useI18n } from 'vue-i18n';
16
15
  import ExcelJS from 'exceljs';
17
- import { useClipboard, isClient, useResizeObserver } from '@vueuse/core';
18
16
  import { get, merge } from 'lodash-es';
17
+ import { isClient, useResizeObserver, useClipboard } from '@vueuse/core';
18
+ import mitt from 'mitt';
19
19
  import { createRouter, createWebHashHistory } from 'vue-router';
20
20
  import NProgress from 'nprogress';
21
21
 
22
22
  const pinia = createPinia();
23
23
 
24
- const emitter = mitt();
25
-
26
- const cssCdnUrlList = [
27
- // 调整为从本地引入,注释下面的 url
28
- // '//at.alicdn.com/t/c/font_2298093_rnp72ifj3ba.css',
29
- // '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
30
- ];
31
- const jsCdnUrlList = [];
32
- function setCssCdn() {
33
- if (cssCdnUrlList.length <= 0) return false;
34
- cssCdnUrlList.map((v) => {
35
- let link = document.createElement("link");
36
- link.rel = "stylesheet";
37
- link.href = v;
38
- link.crossOrigin = "anonymous";
39
- document.getElementsByTagName("head")[0].appendChild(link);
40
- });
41
- }
42
- function setJsCdn() {
43
- if (jsCdnUrlList.length <= 0) return false;
44
- jsCdnUrlList.map((v) => {
45
- let link = document.createElement("script");
46
- link.src = v;
47
- document.body.appendChild(link);
48
- });
49
- }
50
- const setIntroduction = {
51
- // 设置css
52
- cssCdn: () => {
53
- setCssCdn();
54
- },
55
- // 设置js
56
- jsCdn: () => {
57
- setJsCdn();
58
- }
59
- };
60
-
61
24
  function judgementSameArr(newArr, oldArr) {
62
25
  const news = removeDuplicate(newArr);
63
26
  const olds = removeDuplicate(oldArr);
@@ -18469,6 +18432,31 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
18469
18432
 
18470
18433
  const FButton = _sfc_main$d;
18471
18434
 
18435
+ const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
18436
+ const translate = (path, option, locale) => get(locale, path, path).replace(
18437
+ /\{(\w+)\}/g,
18438
+ (_, key) => {
18439
+ var _a;
18440
+ return `${(_a = option == null ? void 0 : option[key]) != null ? _a : `{${key}}`}`;
18441
+ }
18442
+ );
18443
+ const buildLocaleContext = (locale) => {
18444
+ const lang = computed(() => unref(locale).name);
18445
+ const localeRef = isRef(locale) ? locale : ref(locale);
18446
+ return {
18447
+ lang,
18448
+ locale: localeRef,
18449
+ t: buildTranslator(locale)
18450
+ };
18451
+ };
18452
+ const useLocale = (localeOverrides) => {
18453
+ const locale = localeOverrides || inject(localeContextKey, ref());
18454
+ return buildLocaleContext(computed(() => {
18455
+ var _a;
18456
+ return ((_a = locale == null ? void 0 : locale.value) == null ? void 0 : _a.plus) ? locale.value : plusZhCn;
18457
+ }));
18458
+ };
18459
+
18472
18460
  const useKeepALiveNames = defineStore("keepALiveNames", {
18473
18461
  state: () => ({
18474
18462
  keepAliveNames: [],
@@ -18546,202 +18534,6 @@ const useTagsViewRoutes = defineStore("tagsViewRoutes", {
18546
18534
  }
18547
18535
  });
18548
18536
 
18549
- const themeStore = useThemeConfig();
18550
- function commonFunction() {
18551
- const { t } = useI18n();
18552
- const { copy, isSupported } = useClipboard();
18553
- const percentFormat = (row, column, cellValue) => {
18554
- return cellValue ? `${cellValue}%` : "-";
18555
- };
18556
- const dateFormatYMD = (row, column, cellValue) => {
18557
- if (!cellValue) return "-";
18558
- return formatDate(new Date(cellValue), "YYYY-mm-dd");
18559
- };
18560
- const dateFormatYMDHMS = (row, column, cellValue) => {
18561
- if (!cellValue) return "-";
18562
- return formatDate(new Date(cellValue), "YYYY-mm-dd HH:MM:SS");
18563
- };
18564
- const dateFormatHMS = (row, column, cellValue) => {
18565
- if (!cellValue) return "-";
18566
- let time = 0;
18567
- if (typeof row === "number") time = row;
18568
- if (typeof cellValue === "number") time = cellValue;
18569
- return formatDate(new Date(time * 1e3), "HH:MM:SS");
18570
- };
18571
- const scaleFormat = (value = "0", scale = 4) => {
18572
- return Number.parseFloat(value).toFixed(scale);
18573
- };
18574
- const scale2Format = (value = "0") => {
18575
- return Number.parseFloat(value).toFixed(2);
18576
- };
18577
- const groupSeparator = (value, minimumFractionDigits = 2) => {
18578
- return value.toLocaleString("en-US", {
18579
- minimumFractionDigits,
18580
- maximumFractionDigits: 2
18581
- });
18582
- };
18583
- const copyText = (text) => {
18584
- return new Promise((resolve, reject) => {
18585
- try {
18586
- if (!isSupported.value) {
18587
- console.error("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u526A\u8D34\u677F API");
18588
- reject("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u526A\u8D34\u677F API");
18589
- } else {
18590
- copy(text);
18591
- ElMessage.success(t("message.layout.copyTextSuccess"));
18592
- resolve(text);
18593
- }
18594
- } catch (e) {
18595
- ElMessage.error(t("message.layout.copyTextError"));
18596
- reject(e);
18597
- }
18598
- });
18599
- };
18600
- const removeHtmlSub = (value) => {
18601
- var str = value.replace(/<[^>]+>/g, "");
18602
- if (str.length > 50) return str.substring(0, 50) + "......";
18603
- else return str;
18604
- };
18605
- const removeHtml = (value) => {
18606
- return value.replace(/<[^>]+>/g, "");
18607
- };
18608
- const getEnumDesc = (key, lstEnum) => {
18609
- var _a;
18610
- return (_a = lstEnum.find((x) => x.value == key)) == null ? void 0 : _a.describe;
18611
- };
18612
- const appendQueryParams = (url, params) => {
18613
- if (!params || Object.keys(params).length == 0) return url;
18614
- const queryString = Object.keys(params).map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`).join("&");
18615
- return `${url}${url.includes("?") ? "&" : "?"}${queryString}`;
18616
- };
18617
- const getNameAbbr = (text, callback) => {
18618
- if (!text) return ElMessage.error("\u83B7\u53D6\u7B80\u79F0\u6587\u672C\u4E0D\u80FD\u4E3A\u7A7A");
18619
- try {
18620
- return useBaseApi("sysCommon").post({ text }, "nameAbbr").then((res) => {
18621
- if (callback) callback(res.data.result);
18622
- return res.data.result;
18623
- });
18624
- } catch (e) {
18625
- ElMessage.error("\u83B7\u53D6\u5931\u8D25");
18626
- }
18627
- };
18628
- const handleConditionalClear = (condition, fieldValue, clearValue = void 0) => {
18629
- if (condition) {
18630
- return clearValue;
18631
- }
18632
- return fieldValue;
18633
- };
18634
- const getTimeRangePickerShortcuts = () => {
18635
- return [
18636
- {
18637
- text: "\u8FD1\u4E00\u5468",
18638
- value: () => {
18639
- const now = new Date(themeStore.themeConfig.serverTime);
18640
- const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
18641
- const start = new Date(now.getFullYear(), now.getMonth(), now.getDate() - 7);
18642
- return [start, end];
18643
- }
18644
- },
18645
- {
18646
- text: "\u8FD1\u4E00\u6708",
18647
- value: () => {
18648
- const now = new Date(themeStore.themeConfig.serverTime);
18649
- const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
18650
- const start = new Date(now.getFullYear(), now.getMonth() - 1, now.getDate());
18651
- return [start, end];
18652
- }
18653
- },
18654
- {
18655
- text: "\u8FD1\u4E09\u6708",
18656
- value: () => {
18657
- const now = new Date(themeStore.themeConfig.serverTime);
18658
- const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
18659
- const start = new Date(now.getFullYear(), now.getMonth() - 3, now.getDate());
18660
- return [start, end];
18661
- }
18662
- },
18663
- {
18664
- text: "\u8FD1\u534A\u5E74",
18665
- value: () => {
18666
- const now = new Date(themeStore.themeConfig.serverTime);
18667
- const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
18668
- const start = new Date(now.getFullYear(), now.getMonth() - 6, now.getDate());
18669
- return [start, end];
18670
- }
18671
- },
18672
- {
18673
- text: "\u672C\u5E74",
18674
- value: () => {
18675
- const now = new Date(themeStore.themeConfig.serverTime);
18676
- const end = new Date(now.getFullYear(), 11, 31, 23, 59, 59, 999);
18677
- const start = new Date(now.getFullYear(), 0, 1);
18678
- return [start, end];
18679
- }
18680
- },
18681
- {
18682
- text: "\u8FD1\u4E24\u5E74",
18683
- value: () => {
18684
- const now = new Date(themeStore.themeConfig.serverTime);
18685
- const end = new Date(now.getFullYear(), 11, 31, 23, 59, 59, 999);
18686
- const start = new Date(now.getFullYear() - 1, 0, 1);
18687
- return [start, end];
18688
- }
18689
- },
18690
- {
18691
- text: "\u8FD1\u4E09\u5E74",
18692
- value: () => {
18693
- const now = new Date(themeStore.themeConfig.serverTime);
18694
- const end = new Date(now.getFullYear(), 11, 31, 23, 59, 59, 999);
18695
- const start = new Date(now.getFullYear() - 2, 0, 1);
18696
- return [start, end];
18697
- }
18698
- }
18699
- ];
18700
- };
18701
- return {
18702
- percentFormat,
18703
- dateFormatYMD,
18704
- dateFormatYMDHMS,
18705
- dateFormatHMS,
18706
- scaleFormat,
18707
- scale2Format,
18708
- groupSeparator,
18709
- copyText,
18710
- removeHtmlSub,
18711
- removeHtml,
18712
- getEnumDesc,
18713
- appendQueryParams,
18714
- getNameAbbr,
18715
- handleConditionalClear,
18716
- getTimeRangePickerShortcuts
18717
- };
18718
- }
18719
-
18720
- const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
18721
- const translate = (path, option, locale) => get(locale, path, path).replace(
18722
- /\{(\w+)\}/g,
18723
- (_, key) => {
18724
- var _a;
18725
- return `${(_a = option == null ? void 0 : option[key]) != null ? _a : `{${key}}`}`;
18726
- }
18727
- );
18728
- const buildLocaleContext = (locale) => {
18729
- const lang = computed(() => unref(locale).name);
18730
- const localeRef = isRef(locale) ? locale : ref(locale);
18731
- return {
18732
- lang,
18733
- locale: localeRef,
18734
- t: buildTranslator(locale)
18735
- };
18736
- };
18737
- const useLocale = (localeOverrides) => {
18738
- const locale = localeOverrides || inject(localeContextKey, ref());
18739
- return buildLocaleContext(computed(() => {
18740
- var _a;
18741
- return ((_a = locale == null ? void 0 : locale.value) == null ? void 0 : _a.plus) ? locale.value : plusZhCn;
18742
- }));
18743
- };
18744
-
18745
18537
  function auth(value) {
18746
18538
  const stores = useUserInfo();
18747
18539
  return stores.userInfos.authApiList.some((v) => v === value);
@@ -19045,8 +18837,6 @@ const useDateTimeShortCust = () => {
19045
18837
  ];
19046
18838
  };
19047
18839
 
19048
- const commonFun = commonFunction();
19049
-
19050
18840
  const _hoisted_1$6 = { key: 0 };
19051
18841
  const _hoisted_2$3 = { key: 0 };
19052
18842
  var _sfc_main$c = /* @__PURE__ */ defineComponent({
@@ -22202,6 +21992,214 @@ const plugins = [
22202
21992
 
22203
21993
  var installer = makeInstaller([...plugins]);
22204
21994
 
21995
+ const cssCdnUrlList = [
21996
+ // 调整为从本地引入,注释下面的 url
21997
+ // '//at.alicdn.com/t/c/font_2298093_rnp72ifj3ba.css',
21998
+ // '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
21999
+ ];
22000
+ const jsCdnUrlList = [];
22001
+ function setCssCdn() {
22002
+ if (cssCdnUrlList.length <= 0) return false;
22003
+ cssCdnUrlList.map((v) => {
22004
+ let link = document.createElement("link");
22005
+ link.rel = "stylesheet";
22006
+ link.href = v;
22007
+ link.crossOrigin = "anonymous";
22008
+ document.getElementsByTagName("head")[0].appendChild(link);
22009
+ });
22010
+ }
22011
+ function setJsCdn() {
22012
+ if (jsCdnUrlList.length <= 0) return false;
22013
+ jsCdnUrlList.map((v) => {
22014
+ let link = document.createElement("script");
22015
+ link.src = v;
22016
+ document.body.appendChild(link);
22017
+ });
22018
+ }
22019
+ const setIntroduction = {
22020
+ // 设置css
22021
+ cssCdn: () => {
22022
+ setCssCdn();
22023
+ },
22024
+ // 设置js
22025
+ jsCdn: () => {
22026
+ setJsCdn();
22027
+ }
22028
+ };
22029
+
22030
+ const emitter = mitt();
22031
+
22032
+ const themeStore = useThemeConfig();
22033
+ function commonFunction() {
22034
+ const { t } = useI18n();
22035
+ const { copy, isSupported } = useClipboard();
22036
+ const percentFormat = (row, column, cellValue) => {
22037
+ return cellValue ? `${cellValue}%` : "-";
22038
+ };
22039
+ const dateFormatYMD = (row, column, cellValue) => {
22040
+ if (!cellValue) return "-";
22041
+ return formatDate(new Date(cellValue), "YYYY-mm-dd");
22042
+ };
22043
+ const dateFormatYMDHMS = (row, column, cellValue) => {
22044
+ if (!cellValue) return "-";
22045
+ return formatDate(new Date(cellValue), "YYYY-mm-dd HH:MM:SS");
22046
+ };
22047
+ const dateFormatHMS = (row, column, cellValue) => {
22048
+ if (!cellValue) return "-";
22049
+ let time = 0;
22050
+ if (typeof row === "number") time = row;
22051
+ if (typeof cellValue === "number") time = cellValue;
22052
+ return formatDate(new Date(time * 1e3), "HH:MM:SS");
22053
+ };
22054
+ const scaleFormat = (value = "0", scale = 4) => {
22055
+ return Number.parseFloat(value).toFixed(scale);
22056
+ };
22057
+ const scale2Format = (value = "0") => {
22058
+ return Number.parseFloat(value).toFixed(2);
22059
+ };
22060
+ const groupSeparator = (value, minimumFractionDigits = 2) => {
22061
+ return value.toLocaleString("en-US", {
22062
+ minimumFractionDigits,
22063
+ maximumFractionDigits: 2
22064
+ });
22065
+ };
22066
+ const copyText = (text) => {
22067
+ return new Promise((resolve, reject) => {
22068
+ try {
22069
+ if (!isSupported.value) {
22070
+ console.error("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u526A\u8D34\u677F API");
22071
+ reject("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u526A\u8D34\u677F API");
22072
+ } else {
22073
+ copy(text);
22074
+ ElMessage.success(t("message.layout.copyTextSuccess"));
22075
+ resolve(text);
22076
+ }
22077
+ } catch (e) {
22078
+ ElMessage.error(t("message.layout.copyTextError"));
22079
+ reject(e);
22080
+ }
22081
+ });
22082
+ };
22083
+ const removeHtmlSub = (value) => {
22084
+ var str = value.replace(/<[^>]+>/g, "");
22085
+ if (str.length > 50) return str.substring(0, 50) + "......";
22086
+ else return str;
22087
+ };
22088
+ const removeHtml = (value) => {
22089
+ return value.replace(/<[^>]+>/g, "");
22090
+ };
22091
+ const getEnumDesc = (key, lstEnum) => {
22092
+ var _a;
22093
+ return (_a = lstEnum.find((x) => x.value == key)) == null ? void 0 : _a.describe;
22094
+ };
22095
+ const appendQueryParams = (url, params) => {
22096
+ if (!params || Object.keys(params).length == 0) return url;
22097
+ const queryString = Object.keys(params).map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`).join("&");
22098
+ return `${url}${url.includes("?") ? "&" : "?"}${queryString}`;
22099
+ };
22100
+ const getNameAbbr = (text, callback) => {
22101
+ if (!text) return ElMessage.error("\u83B7\u53D6\u7B80\u79F0\u6587\u672C\u4E0D\u80FD\u4E3A\u7A7A");
22102
+ try {
22103
+ return useBaseApi("sysCommon").post({ text }, "nameAbbr").then((res) => {
22104
+ if (callback) callback(res.data.result);
22105
+ return res.data.result;
22106
+ });
22107
+ } catch (e) {
22108
+ ElMessage.error("\u83B7\u53D6\u5931\u8D25");
22109
+ }
22110
+ };
22111
+ const handleConditionalClear = (condition, fieldValue, clearValue = void 0) => {
22112
+ if (condition) {
22113
+ return clearValue;
22114
+ }
22115
+ return fieldValue;
22116
+ };
22117
+ const getTimeRangePickerShortcuts = () => {
22118
+ return [
22119
+ {
22120
+ text: "\u8FD1\u4E00\u5468",
22121
+ value: () => {
22122
+ const now = new Date(themeStore.themeConfig.serverTime);
22123
+ const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
22124
+ const start = new Date(now.getFullYear(), now.getMonth(), now.getDate() - 7);
22125
+ return [start, end];
22126
+ }
22127
+ },
22128
+ {
22129
+ text: "\u8FD1\u4E00\u6708",
22130
+ value: () => {
22131
+ const now = new Date(themeStore.themeConfig.serverTime);
22132
+ const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
22133
+ const start = new Date(now.getFullYear(), now.getMonth() - 1, now.getDate());
22134
+ return [start, end];
22135
+ }
22136
+ },
22137
+ {
22138
+ text: "\u8FD1\u4E09\u6708",
22139
+ value: () => {
22140
+ const now = new Date(themeStore.themeConfig.serverTime);
22141
+ const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
22142
+ const start = new Date(now.getFullYear(), now.getMonth() - 3, now.getDate());
22143
+ return [start, end];
22144
+ }
22145
+ },
22146
+ {
22147
+ text: "\u8FD1\u534A\u5E74",
22148
+ value: () => {
22149
+ const now = new Date(themeStore.themeConfig.serverTime);
22150
+ const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
22151
+ const start = new Date(now.getFullYear(), now.getMonth() - 6, now.getDate());
22152
+ return [start, end];
22153
+ }
22154
+ },
22155
+ {
22156
+ text: "\u672C\u5E74",
22157
+ value: () => {
22158
+ const now = new Date(themeStore.themeConfig.serverTime);
22159
+ const end = new Date(now.getFullYear(), 11, 31, 23, 59, 59, 999);
22160
+ const start = new Date(now.getFullYear(), 0, 1);
22161
+ return [start, end];
22162
+ }
22163
+ },
22164
+ {
22165
+ text: "\u8FD1\u4E24\u5E74",
22166
+ value: () => {
22167
+ const now = new Date(themeStore.themeConfig.serverTime);
22168
+ const end = new Date(now.getFullYear(), 11, 31, 23, 59, 59, 999);
22169
+ const start = new Date(now.getFullYear() - 1, 0, 1);
22170
+ return [start, end];
22171
+ }
22172
+ },
22173
+ {
22174
+ text: "\u8FD1\u4E09\u5E74",
22175
+ value: () => {
22176
+ const now = new Date(themeStore.themeConfig.serverTime);
22177
+ const end = new Date(now.getFullYear(), 11, 31, 23, 59, 59, 999);
22178
+ const start = new Date(now.getFullYear() - 2, 0, 1);
22179
+ return [start, end];
22180
+ }
22181
+ }
22182
+ ];
22183
+ };
22184
+ return {
22185
+ percentFormat,
22186
+ dateFormatYMD,
22187
+ dateFormatYMDHMS,
22188
+ dateFormatHMS,
22189
+ scaleFormat,
22190
+ scale2Format,
22191
+ groupSeparator,
22192
+ copyText,
22193
+ removeHtmlSub,
22194
+ removeHtml,
22195
+ getEnumDesc,
22196
+ appendQueryParams,
22197
+ getNameAbbr,
22198
+ handleConditionalClear,
22199
+ getTimeRangePickerShortcuts
22200
+ };
22201
+ }
22202
+
22205
22203
  let pathPrefix = "/@";
22206
22204
  function setPathPrefix(prefix) {
22207
22205
  pathPrefix = prefix;
@@ -22580,6 +22578,7 @@ function initRouter() {
22580
22578
 
22581
22579
  const version = "1.0.0";
22582
22580
 
22581
+ const commonFun = commonFunction();
22583
22582
  const install = installer.install;
22584
22583
 
22585
- export { AccountTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, Session, StringToObj, 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, posId, posName, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, roles, saulVModel, service, setDynamicViewsModules, setIntroduction, 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 };
22584
+ export { AccountTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, Session, StringToObj, 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, 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 };
@@ -1,29 +1,3 @@
1
- import { default as commonFunction } from './commonFunction';
2
- import { EmptyArrayType } from 'fmdeui-fmui';
3
- import { MessageHandler } from 'element-plus';
4
- declare const commonFun: {
5
- percentFormat: (row: EmptyArrayType, column: number, cellValue: string) => string;
6
- dateFormatYMD: (row: EmptyArrayType, column: number, cellValue: string) => string;
7
- dateFormatYMDHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
8
- dateFormatHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
9
- scaleFormat: (value?: string, scale?: number) => string;
10
- scale2Format: (value?: string) => string;
11
- groupSeparator: (value: number, minimumFractionDigits?: number) => string;
12
- copyText: (text: string) => Promise<unknown>;
13
- removeHtmlSub: (value: string) => string;
14
- removeHtml: (value: string) => string;
15
- getEnumDesc: (key: any, lstEnum: any) => any;
16
- appendQueryParams: (url: string, params: {
17
- [key: string]: any;
18
- }) => string;
19
- getNameAbbr: (text: string, callback?: (abbr: any) => void) => Promise<any> | MessageHandler | undefined;
20
- handleConditionalClear: (condition: boolean, fieldValue: any, clearValue?: any) => any;
21
- getTimeRangePickerShortcuts: () => {
22
- text: string;
23
- value: () => Date[];
24
- }[];
25
- };
26
- export { commonFunction, commonFun, };
27
1
  export * from './useLocale';
28
2
  export * from './authFunction';
29
3
  export * from './useVxeTableOptionsHook';
package/lib/index.d.ts CHANGED
@@ -1,4 +1,9 @@
1
1
  import { default as installer } from './defaults';
2
+ import { default as setIntroduction, setCssCdn, setJsCdn } from './utils/setIconfont';
3
+ import { default as emitter } from './utils/mitt';
4
+ import { default as commonFunction } from './hooks/commonFunction';
5
+ import { EmptyArrayType } from './types';
6
+ import { MessageHandler } from 'element-plus';
2
7
  import { App } from 'vue';
3
8
  export * from './types';
4
9
  export * from './api';
@@ -7,6 +12,29 @@ export * from './stores';
7
12
  export * from './hooks';
8
13
  export * from './router';
9
14
  export * from './locale';
15
+ declare const commonFun: {
16
+ percentFormat: (row: EmptyArrayType, column: number, cellValue: string) => string;
17
+ dateFormatYMD: (row: EmptyArrayType, column: number, cellValue: string) => string;
18
+ dateFormatYMDHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
19
+ dateFormatHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
20
+ scaleFormat: (value?: string, scale?: number) => string;
21
+ scale2Format: (value?: string) => string;
22
+ groupSeparator: (value: number, minimumFractionDigits?: number) => string;
23
+ copyText: (text: string) => Promise<unknown>;
24
+ removeHtmlSub: (value: string) => string;
25
+ removeHtml: (value: string) => string;
26
+ getEnumDesc: (key: any, lstEnum: any) => any;
27
+ appendQueryParams: (url: string, params: {
28
+ [key: string]: any;
29
+ }) => string;
30
+ getNameAbbr: (text: string, callback?: (abbr: any) => void) => Promise<any> | MessageHandler | undefined;
31
+ handleConditionalClear: (condition: boolean, fieldValue: any, clearValue?: any) => any;
32
+ getTimeRangePickerShortcuts: () => {
33
+ text: string;
34
+ value: () => Date[];
35
+ }[];
36
+ };
37
+ export { setIntroduction, emitter as mittBus, commonFunction, commonFun, setCssCdn, setJsCdn };
10
38
  export { version } from './version';
11
39
  export declare const install: (app: App) => void;
12
40
  export default installer;