@indfnd/common 1.0.38 → 1.0.40
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 +15 -0
- package/dist/ind-common.es.js +22 -14
- package/dist/ind-common.umd.cjs +17 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
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.0.40](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.39...v1.0.40) (2024-08-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 菜单复用的标题处理,不使用uri进行tag内的匹配 ([2e57915](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/2e57915c2091906f30f0ee0e2b0bf7b3a3344c51))
|
|
11
|
+
* 动态路由组织逻辑修改,将原始uri存入路由表meta中 ([9604a01](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/9604a01f414ed1a21a1b37cd282286a0283d16f5))
|
|
12
|
+
|
|
13
|
+
### [1.0.39](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.38...v1.0.39) (2024-08-02)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* 菜单复用的标题处理,不使用uri进行tag内的匹配 ([1bcc7e4](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/1bcc7e4bcfaf4007c5a9333edb62aaf1c1b6a8c6))
|
|
19
|
+
|
|
5
20
|
### [1.0.38](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.37...v1.0.38) (2024-08-01)
|
|
6
21
|
|
|
7
22
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Drawer$1, Dropdown as Dropdown$1, Modal as Modal$1, Form, FormItem, Select as Select$1, Option, Row, Col, Menu, MenuItem, Badge, DropdownMenu, DropdownItem, Submenu, Tag, Header, Layout, Content, Spin, Poptip as Poptip$1, CheckboxGroup, Checkbox, RadioGroup, Radio, Card, Message, LoadingBar } from "view-design";
|
|
2
|
-
import { isNil, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL,
|
|
2
|
+
import { isNil, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, getLocalStorage, getSessionStorage, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, listComTreeApi, listUserTreeApi, UC_ENUM, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
const name$1 = "@indfnd/common";
|
|
5
|
-
const version = "1.0.
|
|
5
|
+
const version = "1.0.39";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -59460,22 +59460,21 @@ const __vue2_script$B = {
|
|
|
59460
59460
|
if (top == self) {
|
|
59461
59461
|
this.title = this.$route.meta.title;
|
|
59462
59462
|
} else {
|
|
59463
|
-
|
|
59464
|
-
|
|
59465
|
-
|
|
59463
|
+
const tagList = getLocalStorage("ibp-sc-tagNavList") || [];
|
|
59464
|
+
const activeName = getSessionStorage("activeName") || "";
|
|
59465
|
+
const activeNameTag = _.find(tagList, { name: activeName }) || {};
|
|
59466
|
+
const activeUri = activeNameTag.uri;
|
|
59467
|
+
const routeUri = this.$route.meta.data.uri;
|
|
59468
|
+
if (activeUri === routeUri) {
|
|
59469
|
+
this.title = activeName;
|
|
59470
|
+
} else {
|
|
59471
|
+
this.title = this.$route.meta.title;
|
|
59466
59472
|
}
|
|
59467
|
-
let curTag = _.find(tagList, (d) => {
|
|
59468
|
-
return d.uri == this.$route.path;
|
|
59469
|
-
});
|
|
59470
|
-
this.title = curTag == null ? void 0 : curTag.name;
|
|
59471
59473
|
}
|
|
59472
59474
|
}
|
|
59473
59475
|
},
|
|
59474
59476
|
mounted() {
|
|
59475
59477
|
this.calcTitle();
|
|
59476
|
-
},
|
|
59477
|
-
activited() {
|
|
59478
|
-
this.calcTitle();
|
|
59479
59478
|
}
|
|
59480
59479
|
};
|
|
59481
59480
|
const __cssModules$B = {};
|
|
@@ -66936,7 +66935,15 @@ function listToMenuTree({ list, menuTree, pageNode, parentId, crumbs, root, micr
|
|
|
66936
66935
|
path: dealRoutePath(uri, microType),
|
|
66937
66936
|
uri,
|
|
66938
66937
|
component: name2,
|
|
66939
|
-
meta: {
|
|
66938
|
+
meta: {
|
|
66939
|
+
appId,
|
|
66940
|
+
permissionId,
|
|
66941
|
+
title,
|
|
66942
|
+
icon,
|
|
66943
|
+
crumbs: [...crumbs],
|
|
66944
|
+
activeName: name2,
|
|
66945
|
+
data: item2
|
|
66946
|
+
},
|
|
66940
66947
|
children: []
|
|
66941
66948
|
};
|
|
66942
66949
|
node.meta.crumbs.push({ icon, name: name2, title, type });
|
|
@@ -66972,7 +66979,8 @@ function listToMenuTree({ list, menuTree, pageNode, parentId, crumbs, root, micr
|
|
|
66972
66979
|
hideInMenu: true,
|
|
66973
66980
|
notCache: true,
|
|
66974
66981
|
crumbs: [...crumbs],
|
|
66975
|
-
type
|
|
66982
|
+
type,
|
|
66983
|
+
data: item2
|
|
66976
66984
|
}
|
|
66977
66985
|
};
|
|
66978
66986
|
child.meta.crumbs.push({ icon, name: name2, title, type });
|