@indfnd/common 1.1.21 → 1.1.23
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/CHANGELOG.md +14 -0
- package/dist/ind-common.es.js +13 -11
- package/dist/ind-common.umd.cjs +22 -22
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/src/styles/components/layout/basic-layout.less +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.23](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.22...v1.1.23) (2025-11-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 路由问题修复 ([93af1bf](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/93af1bff3fbd9bb15a833173c19f9d9f1a4851a3))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 帮助内容样式优化 ([2b74614](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/2b74614568bf785add5fd02aa204599918da8c11))
|
|
16
|
+
|
|
17
|
+
### [1.1.22](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.21...v1.1.22) (2025-11-20)
|
|
18
|
+
|
|
5
19
|
### [1.1.21](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.20...v1.1.21) (2025-11-20)
|
|
6
20
|
|
|
7
21
|
### [1.1.20](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.19...v1.1.20) (2025-11-20)
|
package/dist/ind-common.es.js
CHANGED
|
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
|
|
|
5460
5460
|
})(lodash, lodash.exports);
|
|
5461
5461
|
var _ = lodash.exports;
|
|
5462
5462
|
const name$1 = "@indfnd/common";
|
|
5463
|
-
const version = "1.1.
|
|
5463
|
+
const version = "1.1.22";
|
|
5464
5464
|
const author = "huxuetong";
|
|
5465
5465
|
const publishConfig = {
|
|
5466
5466
|
registry: "https://registry.npmjs.org/"
|
|
@@ -60722,7 +60722,7 @@ var render$E = function() {
|
|
|
60722
60722
|
_vm.show = false;
|
|
60723
60723
|
} }, model: { value: _vm.show, callback: function($$v) {
|
|
60724
60724
|
_vm.show = $$v;
|
|
60725
|
-
}, expression: "show" } }, [_vm.theContext != "" ? [_c("div", { domProps: { "innerHTML": _vm._s(_vm.theContext) } })] : [_vm.menuInfo.menuDesc ? _c("div", { staticClass: "ind-menu-help-panel" }, [_c("div", { staticClass: "ind-flex" }, [_c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u529F\u80FD\u8BF4\u660E\uFF1A")]), _c("div", { staticClass: "ind-menu-title-content" }, [_vm._v(" " + _vm._s(_vm.menuInfo.menuDesc) + " ")])]), _c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u6307\u6807\u5B9A\u4E49\uFF1A")]), _vm._l(_vm.menuInfo.indexList, function(item2, idx) {
|
|
60725
|
+
}, expression: "show" } }, [_vm.theContext != "" ? [_c("div", { staticClass: "ind-page-help-content-box", domProps: { "innerHTML": _vm._s(_vm.theContext) } })] : [_vm.menuInfo.menuDesc ? _c("div", { staticClass: "ind-menu-help-panel" }, [_c("div", { staticClass: "ind-flex" }, [_c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u529F\u80FD\u8BF4\u660E\uFF1A")]), _c("div", { staticClass: "ind-menu-title-content" }, [_vm._v(" " + _vm._s(_vm.menuInfo.menuDesc) + " ")])]), _c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u6307\u6807\u5B9A\u4E49\uFF1A")]), _vm._l(_vm.menuInfo.indexList, function(item2, idx) {
|
|
60726
60726
|
return _c("div", { key: "index" + idx, staticClass: "ind-menu-line-item" }, [_c("div", { staticClass: "ind-intent-1 ind-flex-no-shrink" }, [_vm._v(_vm._s(item2.indexName))]), _c("div", { staticClass: "ind-menu-desc-content" }, [_vm._v(" " + _vm._s(item2.indexRule) + " ")])]);
|
|
60727
60727
|
})], 2) : _c("div", { staticClass: "ind-empty" }, [_vm._v("\u6682\u65E0")])]], 2)], 1);
|
|
60728
60728
|
};
|
|
@@ -71794,7 +71794,7 @@ function permission2Router(list, microType) {
|
|
|
71794
71794
|
let tempList = [];
|
|
71795
71795
|
for (const item2 of list) {
|
|
71796
71796
|
tempList.push({
|
|
71797
|
-
path: dealRoutePath(item2.uri
|
|
71797
|
+
path: dealRoutePath(item2.uri),
|
|
71798
71798
|
uri: item2.uri,
|
|
71799
71799
|
name: item2.permissionValue,
|
|
71800
71800
|
meta: {
|
|
@@ -71826,7 +71826,7 @@ function listToMenuTree({ list, menuTree, pageNode, parentId, crumbs, root, micr
|
|
|
71826
71826
|
type,
|
|
71827
71827
|
name: name2,
|
|
71828
71828
|
pid,
|
|
71829
|
-
path: dealRoutePath(uri
|
|
71829
|
+
path: dealRoutePath(uri),
|
|
71830
71830
|
uri,
|
|
71831
71831
|
component: name2,
|
|
71832
71832
|
meta: {
|
|
@@ -71863,7 +71863,7 @@ function listToMenuTree({ list, menuTree, pageNode, parentId, crumbs, root, micr
|
|
|
71863
71863
|
type,
|
|
71864
71864
|
name: name2,
|
|
71865
71865
|
pid,
|
|
71866
|
-
path: dealRoutePath(uri
|
|
71866
|
+
path: dealRoutePath(uri),
|
|
71867
71867
|
uri,
|
|
71868
71868
|
component: name2,
|
|
71869
71869
|
meta: {
|
|
@@ -71889,10 +71889,6 @@ function dealRoutePath(uri, microType) {
|
|
|
71889
71889
|
if (!uri.startsWith("/")) {
|
|
71890
71890
|
uri = `/${uri}`;
|
|
71891
71891
|
}
|
|
71892
|
-
const routerBase = `/${config$1.routerBase}-${microType}`;
|
|
71893
|
-
if (uri.startsWith(routerBase)) {
|
|
71894
|
-
uri = uri.replace(routerBase, "");
|
|
71895
|
-
}
|
|
71896
71892
|
if (uri.includes("?")) {
|
|
71897
71893
|
uri = uri.split("?")[0];
|
|
71898
71894
|
}
|
|
@@ -71901,6 +71897,12 @@ function dealRoutePath(uri, microType) {
|
|
|
71901
71897
|
}
|
|
71902
71898
|
return uri;
|
|
71903
71899
|
}
|
|
71900
|
+
function dealRouterBase(path) {
|
|
71901
|
+
if (path.startsWith(`/${config$1.routerBase}`)) {
|
|
71902
|
+
path = path.replace(/^\/ind([^/]{1,})/, "");
|
|
71903
|
+
}
|
|
71904
|
+
return path;
|
|
71905
|
+
}
|
|
71904
71906
|
function generatorMenuTree(permissionList = []) {
|
|
71905
71907
|
permissionList = permissionList.filter((item2) => isMenuPermissionType(item2.type));
|
|
71906
71908
|
const menuTree = [];
|
|
@@ -71922,7 +71924,7 @@ function generator(menuData = []) {
|
|
|
71922
71924
|
item2.component = target2.component;
|
|
71923
71925
|
} else if (item2.path) {
|
|
71924
71926
|
if (window.loadComponentHandler) {
|
|
71925
|
-
item2.component = window.loadComponentHandler(item2.path, item2.name) || NotFound;
|
|
71927
|
+
item2.component = window.loadComponentHandler(dealRouterBase(item2.path), item2.name) || NotFound;
|
|
71926
71928
|
}
|
|
71927
71929
|
} else {
|
|
71928
71930
|
console.error(`\u627E\u4E0D\u5230\u7EC4\u4EF6\u5B9A\u4E49:${item2.component},\u8BF7\u6392\u67E5\u8D44\u6E90\u8DEF\u5F84\u914D\u7F6E\u662F\u5426\u6B63\u786E`);
|
|
@@ -71937,7 +71939,7 @@ function generator(menuData = []) {
|
|
|
71937
71939
|
}
|
|
71938
71940
|
function generatorRouteByPermission(item2) {
|
|
71939
71941
|
if (window.loadComponentHandler) {
|
|
71940
|
-
item2.component = window.loadComponentHandler(item2.path, item2.name) || NotFound;
|
|
71942
|
+
item2.component = window.loadComponentHandler(dealRouterBase(item2.path), item2.name) || NotFound;
|
|
71941
71943
|
} else {
|
|
71942
71944
|
console.error(`\u627E\u4E0D\u5230\u7EC4\u4EF6\u5B9A\u4E49:${item2.component},\u8BF7\u6392\u67E5\u8D44\u6E90\u8DEF\u5F84\u914D\u7F6E\u662F\u5426\u6B63\u786E`);
|
|
71943
71945
|
item2.component = NotFound;
|