@fmdeui/fmui 1.0.20 → 1.0.21
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 -1
- package/es/packages/router/index.mjs +1 -1
- package/es/router/index.d.ts +2 -2
- package/index.js +5 -5
- package/index.min.js +4 -4
- package/index.min.mjs +3 -3
- package/index.mjs +2 -2
- package/lib/index.js +4 -0
- package/lib/packages/router/index.js +4 -0
- package/lib/router/index.d.ts +2 -2
- 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 → es}/defaults.css +0 -0
- /package/{es → lib}/make-installer.css +0 -0
package/es/index.mjs
CHANGED
|
@@ -20,7 +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 { configureRoutes, setPathPrefix } from './packages/router/route.mjs';
|
|
23
|
+
export { configureRoutes, setPathPrefix, staticRoutes } from './packages/router/route.mjs';
|
|
24
24
|
export { destroyIdleTimeout, initIdleTimeout, updateIdleTimeout } from './packages/hooks/idleTimeout.mjs';
|
|
25
25
|
export { downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, getFileName, openWindow } from './packages/utils/download.mjs';
|
|
26
26
|
export { default as en } from './packages/locale/lang/en.mjs';
|
|
@@ -2,7 +2,7 @@ import { storeToRefs } from 'pinia';
|
|
|
2
2
|
import { useRoutesList } from '../stores/routesList.mjs';
|
|
3
3
|
import { useThemeConfig } from '../stores/themeConfig.mjs';
|
|
4
4
|
import { Session, Local } from '../utils/storage.mjs';
|
|
5
|
-
export { configureRoutes, setPathPrefix } from './route.mjs';
|
|
5
|
+
export { configureRoutes, setPathPrefix, staticRoutes } from './route.mjs';
|
|
6
6
|
import { initFrontEndControlRoutes } from './frontEnd.mjs';
|
|
7
7
|
import { initBackEndControlRoutes } from './backEnd.mjs';
|
|
8
8
|
export { setDynamicViewsModules } from './backEnd.mjs';
|
package/es/router/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { configureRoutes, setPathPrefix } from './route';
|
|
1
|
+
import { configureRoutes, setPathPrefix, staticRoutes } from './route';
|
|
2
2
|
import { initFrontEndControlRoutes } from './frontEnd';
|
|
3
3
|
import { initBackEndControlRoutes, setDynamicViewsModules } from './backEnd';
|
|
4
4
|
import { router } from './createRouter';
|
|
@@ -9,4 +9,4 @@ import { Router } from 'vue-router';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function initRouter(): Router;
|
|
11
11
|
export default router;
|
|
12
|
-
export { configureRoutes, setPathPrefix, setDynamicViewsModules, initBackEndControlRoutes, initFrontEndControlRoutes };
|
|
12
|
+
export { configureRoutes, staticRoutes, setPathPrefix, setDynamicViewsModules, initBackEndControlRoutes, initFrontEndControlRoutes };
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.21 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('pinia'), require('crypto-js'), require('xlsx-js-style'), require('element-plus'), require('vue'), require('@element-plus/icons-vue'), require('axios'), require('js-cookie'), require('@microsoft/signalr'), require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('vue-i18n'), require('exceljs'), require('lodash-es'), require('@vueuse/core'), require('mitt'), require('vue-router'), require('nprogress')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'pinia', 'crypto-js', 'xlsx-js-style', 'element-plus', 'vue', '@element-plus/icons-vue', 'axios', 'js-cookie', '@microsoft/signalr', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'vue-i18n', 'exceljs', 'lodash-es', '@vueuse/core', 'mitt', 'vue-router', 'nprogress'], factory) :
|
|
@@ -22596,7 +22596,7 @@
|
|
|
22596
22596
|
}
|
|
22597
22597
|
}
|
|
22598
22598
|
];
|
|
22599
|
-
|
|
22599
|
+
exports.staticRoutes = [
|
|
22600
22600
|
{
|
|
22601
22601
|
path: "/login",
|
|
22602
22602
|
name: "login",
|
|
@@ -22637,9 +22637,9 @@
|
|
|
22637
22637
|
}
|
|
22638
22638
|
if (options.staticRoutes) {
|
|
22639
22639
|
if (options.merge) {
|
|
22640
|
-
staticRoutes = [...staticRoutes, ...options.staticRoutes];
|
|
22640
|
+
exports.staticRoutes = [...exports.staticRoutes, ...options.staticRoutes];
|
|
22641
22641
|
} else {
|
|
22642
|
-
staticRoutes = options.staticRoutes;
|
|
22642
|
+
exports.staticRoutes = options.staticRoutes;
|
|
22643
22643
|
}
|
|
22644
22644
|
}
|
|
22645
22645
|
if (options.notFoundAndNoPower) {
|
|
@@ -22695,7 +22695,7 @@
|
|
|
22695
22695
|
* 2、backEnd.ts(后端控制路由)、frontEnd.ts(前端控制路由) 中也需要加 notFoundAndNoPower 404、401 界面。
|
|
22696
22696
|
* 防止 404、401 不在 layout 布局中,不设置的话,404、401 界面将全屏显示
|
|
22697
22697
|
*/
|
|
22698
|
-
routes: [...notFoundAndNoPower, ...staticRoutes]
|
|
22698
|
+
routes: [...notFoundAndNoPower, ...exports.staticRoutes]
|
|
22699
22699
|
});
|
|
22700
22700
|
|
|
22701
22701
|
async function initFrontEndControlRoutes() {
|