@indfnd/common 1.1.20 → 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 +16 -0
- package/dist/ind-common.es.js +14 -17
- 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,22 @@
|
|
|
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
|
+
|
|
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)
|
|
20
|
+
|
|
5
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)
|
|
6
22
|
|
|
7
23
|
|
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
|
};
|
|
@@ -71784,12 +71784,7 @@ function getPermissionType(type) {
|
|
|
71784
71784
|
return Object.keys(PERMISSION_TYPE).find((key) => PERMISSION_TYPE[key] === type);
|
|
71785
71785
|
}
|
|
71786
71786
|
function filterMicroPermissionList(microType, permissionList = []) {
|
|
71787
|
-
|
|
71788
|
-
return permissionList;
|
|
71789
|
-
return permissionList.filter((item2) => {
|
|
71790
|
-
const itemName = item2 && item2.permissionValue || "";
|
|
71791
|
-
return itemName.startsWith(microType) || itemName.startsWith(`${config$1.routerBase}-${microType}`);
|
|
71792
|
-
});
|
|
71787
|
+
return permissionList;
|
|
71793
71788
|
}
|
|
71794
71789
|
function permission2Router(list, microType) {
|
|
71795
71790
|
console.log("permission2Router params", list, microType);
|
|
@@ -71799,7 +71794,7 @@ function permission2Router(list, microType) {
|
|
|
71799
71794
|
let tempList = [];
|
|
71800
71795
|
for (const item2 of list) {
|
|
71801
71796
|
tempList.push({
|
|
71802
|
-
path: dealRoutePath(item2.uri
|
|
71797
|
+
path: dealRoutePath(item2.uri),
|
|
71803
71798
|
uri: item2.uri,
|
|
71804
71799
|
name: item2.permissionValue,
|
|
71805
71800
|
meta: {
|
|
@@ -71831,7 +71826,7 @@ function listToMenuTree({ list, menuTree, pageNode, parentId, crumbs, root, micr
|
|
|
71831
71826
|
type,
|
|
71832
71827
|
name: name2,
|
|
71833
71828
|
pid,
|
|
71834
|
-
path: dealRoutePath(uri
|
|
71829
|
+
path: dealRoutePath(uri),
|
|
71835
71830
|
uri,
|
|
71836
71831
|
component: name2,
|
|
71837
71832
|
meta: {
|
|
@@ -71868,7 +71863,7 @@ function listToMenuTree({ list, menuTree, pageNode, parentId, crumbs, root, micr
|
|
|
71868
71863
|
type,
|
|
71869
71864
|
name: name2,
|
|
71870
71865
|
pid,
|
|
71871
|
-
path: dealRoutePath(uri
|
|
71866
|
+
path: dealRoutePath(uri),
|
|
71872
71867
|
uri,
|
|
71873
71868
|
component: name2,
|
|
71874
71869
|
meta: {
|
|
@@ -71894,10 +71889,6 @@ function dealRoutePath(uri, microType) {
|
|
|
71894
71889
|
if (!uri.startsWith("/")) {
|
|
71895
71890
|
uri = `/${uri}`;
|
|
71896
71891
|
}
|
|
71897
|
-
const routerBase = `/${config$1.routerBase}-${microType}`;
|
|
71898
|
-
if (uri.startsWith(routerBase)) {
|
|
71899
|
-
uri = uri.replace(routerBase, "");
|
|
71900
|
-
}
|
|
71901
71892
|
if (uri.includes("?")) {
|
|
71902
71893
|
uri = uri.split("?")[0];
|
|
71903
71894
|
}
|
|
@@ -71906,6 +71897,12 @@ function dealRoutePath(uri, microType) {
|
|
|
71906
71897
|
}
|
|
71907
71898
|
return uri;
|
|
71908
71899
|
}
|
|
71900
|
+
function dealRouterBase(path) {
|
|
71901
|
+
if (path.startsWith(`/${config$1.routerBase}`)) {
|
|
71902
|
+
path = path.replace(/^\/ind([^/]{1,})/, "");
|
|
71903
|
+
}
|
|
71904
|
+
return path;
|
|
71905
|
+
}
|
|
71909
71906
|
function generatorMenuTree(permissionList = []) {
|
|
71910
71907
|
permissionList = permissionList.filter((item2) => isMenuPermissionType(item2.type));
|
|
71911
71908
|
const menuTree = [];
|
|
@@ -71927,7 +71924,7 @@ function generator(menuData = []) {
|
|
|
71927
71924
|
item2.component = target2.component;
|
|
71928
71925
|
} else if (item2.path) {
|
|
71929
71926
|
if (window.loadComponentHandler) {
|
|
71930
|
-
item2.component = window.loadComponentHandler(item2.path, item2.name) || NotFound;
|
|
71927
|
+
item2.component = window.loadComponentHandler(dealRouterBase(item2.path), item2.name) || NotFound;
|
|
71931
71928
|
}
|
|
71932
71929
|
} else {
|
|
71933
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`);
|
|
@@ -71942,7 +71939,7 @@ function generator(menuData = []) {
|
|
|
71942
71939
|
}
|
|
71943
71940
|
function generatorRouteByPermission(item2) {
|
|
71944
71941
|
if (window.loadComponentHandler) {
|
|
71945
|
-
item2.component = window.loadComponentHandler(item2.path, item2.name) || NotFound;
|
|
71942
|
+
item2.component = window.loadComponentHandler(dealRouterBase(item2.path), item2.name) || NotFound;
|
|
71946
71943
|
} else {
|
|
71947
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`);
|
|
71948
71945
|
item2.component = NotFound;
|