@indfnd/common 1.0.76 → 1.0.78

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 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.0.78](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.77...v1.0.78) (2024-12-31)
6
+
7
+ ### [1.0.77](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.76...v1.0.77) (2024-12-23)
8
+
9
+
10
+ ### Features
11
+
12
+ * 挪lambodesign组件影响到了样式 ([2f55b9e](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/2f55b9e7231cdfc201cf6b271799b58d90cabc9d))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 树形组件默认值不展示 ([dc9792d](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/dc9792dd5580351ec2c4a1c820a1aaf02dd6deca))
18
+
5
19
  ### [1.0.76](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.75...v1.0.76) (2024-12-20)
6
20
 
7
21
  ### [1.0.75](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.74...v1.0.75) (2024-12-20)
@@ -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.0.75";
5463
+ const version = "1.0.77";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -60240,7 +60240,14 @@ const __vue2_script$y = {
60240
60240
  this.visible = false;
60241
60241
  },
60242
60242
  onCheckChange() {
60243
+ var _a, _b, _c, _d;
60243
60244
  console.log("onCheckChange trigger");
60245
+ let nodesChecked = this.getCheckedNodes();
60246
+ let nodeCheckedStr = (_b = (_a = _.orderBy(nodesChecked, ["id"], ["desc"])) == null ? void 0 : _a.map((d) => d.id)) == null ? void 0 : _b.join(",");
60247
+ let valueStr = (_d = (_c = _.orderBy(this.value, ["id"], ["desc"])) == null ? void 0 : _c.map((d) => d.id)) == null ? void 0 : _d.join(",");
60248
+ if (nodeCheckedStr == valueStr) {
60249
+ this.updateSelectedTitles();
60250
+ }
60244
60251
  },
60245
60252
  clearHighlightNodes() {
60246
60253
  this.$refs.tree.highlightNodes(null, this.updateSearchNum);
@@ -60301,7 +60308,7 @@ var __component__$y = /* @__PURE__ */ normalizeComponent(
60301
60308
  staticRenderFns$x,
60302
60309
  false,
60303
60310
  __vue2_injectStyles$y,
60304
- "2be5af4a",
60311
+ "f227829c",
60305
60312
  null,
60306
60313
  null
60307
60314
  );
@@ -67696,12 +67703,34 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
67696
67703
  window.apiErrorHandler = function(msg) {
67697
67704
  Message.error({ content: msg, duration: 10, closable: true });
67698
67705
  };
67706
+ window.getQueryVariable = function getQueryVariable2(variable) {
67707
+ var query = window.location.search.substring(1);
67708
+ var vars = query.split("&");
67709
+ for (let i = 0; i < vars.length; i++) {
67710
+ let pair = vars[i].split("=");
67711
+ if (pair[0] == variable) {
67712
+ return pair.slice(1).join("=");
67713
+ }
67714
+ }
67715
+ let routeHash = window.location.hash.substring(2);
67716
+ if (routeHash.includes("?")) {
67717
+ query = routeHash.split("?")[1];
67718
+ }
67719
+ vars = query.split("&");
67720
+ for (let i = 0; i < vars.length; i++) {
67721
+ let pair = vars[i].split("=");
67722
+ if (pair[0] == variable) {
67723
+ return pair.slice(1).join("=");
67724
+ }
67725
+ }
67726
+ return false;
67727
+ };
67699
67728
  router.beforeEach(async (to, from, next) => {
67700
67729
  LoadingBar.start();
67701
67730
  let token = getToken();
67702
67731
  let search = location.search;
67703
67732
  if (search) {
67704
- let rlt = /token=(.*)/.exec(search);
67733
+ let rlt = getQueryVariable("token");
67705
67734
  if (rlt && rlt.length > 1) {
67706
67735
  if (token !== rlt[1]) {
67707
67736
  token = rlt[1];