@indfnd/common 1.0.71 → 1.0.75
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 +19 -0
- package/dist/ind-common.es.js +122 -9
- package/dist/ind-common.umd.cjs +42 -42
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/src/styles/components/layout/basic-layout.less +254 -29
- package/src/styles/components/layout/page-view.less +43 -0
- package/src/styles/variables/lambo-default.less +914 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.75](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.74...v1.0.75) (2024-12-20)
|
|
6
|
+
|
|
7
|
+
### [1.0.74](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.73...v1.0.74) (2024-12-20)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* 树选择点清除bug修复 ([4800c52](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/4800c522090209b23666448a369e1a65860dc974))
|
|
13
|
+
|
|
14
|
+
### [1.0.73](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.72...v1.0.73) (2024-12-20)
|
|
15
|
+
|
|
16
|
+
### [1.0.72](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.71...v1.0.72) (2024-12-20)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* 顶部导航样式优化 ([57e9fb6](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/57e9fb6255067fdc2abac998e479455d321729ca))
|
|
22
|
+
* 顶部导航样式优化 ([be875f5](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/be875f5e73b1cff2f6a5469425c1af539e641e09))
|
|
23
|
+
|
|
5
24
|
### [1.0.71](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.70...v1.0.71) (2024-12-14)
|
|
6
25
|
|
|
7
26
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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, Submenu, Badge, DropdownMenu, DropdownItem, Tag, Header, Layout, Content, Spin, Poptip as Poptip$1, CheckboxGroup, Checkbox, RadioGroup, Radio, Card, Message, LoadingBar } from "view-design";
|
|
2
2
|
import { isNil, putOssFileApi, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, getPreviewUrlApi, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, getLocalStorage, getSessionStorage, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, 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
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
@@ -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.
|
|
5463
|
+
const version = "1.0.74";
|
|
5464
5464
|
const author = "huxuetong";
|
|
5465
5465
|
const publishConfig = {
|
|
5466
5466
|
registry: "https://registry.npmjs.org/"
|
|
@@ -57573,26 +57573,138 @@ var render$U = function() {
|
|
|
57573
57573
|
var _vm = this;
|
|
57574
57574
|
var _h = _vm.$createElement;
|
|
57575
57575
|
var _c = _vm._self._c || _h;
|
|
57576
|
-
return _c("div", { staticClass: "custom-bread-crumb" }, [_c("Menu", { attrs: { "mode": "horizontal", "active-name": _vm.appInfo.appId }, on: { "on-select": _vm.handleAppMenu } }, _vm._l(_vm.
|
|
57577
|
-
return _c("MenuItem", { key: item2.appId, attrs: { "name": item2.appId } }, [_c("
|
|
57578
|
-
|
|
57576
|
+
return _c("div", { staticClass: "pro-layout-nav-wrapper custom-bread-crumb" }, [_c("Menu", { ref: "topNav", attrs: { "mode": "horizontal", "theme": "dark", "active-name": _vm.appInfo.appId }, on: { "on-select": _vm.handleAppMenu } }, [_vm._l(_vm.topMenList, function(item2) {
|
|
57577
|
+
return [!item2.children ? _c("MenuItem", { key: item2.appId, attrs: { "name": item2.appId } }, [_c("Icon", { directives: [{ name: "show", rawName: "v-show", value: _vm.systemInfo.navLogo === "1", expression: "systemInfo.navLogo === '1'" }], attrs: { "type": item2.icon, "size": 20 } }), _vm._v(_vm._s(item2.name) + " "), _c("div", { staticClass: "line" })], 1) : _c("Submenu", { key: item2.name, staticClass: "ibp-nav-sub-menu", attrs: { "name": item2.name } }, [_c("template", { slot: "title" }, [_vm._v(" " + _vm._s(item2.name) + " ")]), _vm._l(item2.children, function(itemL2) {
|
|
57578
|
+
return _c("MenuItem", { key: itemL2.appId, attrs: { "name": itemL2.appId } }, [_c("Icon", { directives: [{ name: "show", rawName: "v-show", value: _vm.systemInfo.navLogo === "1", expression: "systemInfo.navLogo === '1'" }], attrs: { "type": itemL2.icon, "size": 20 } }), _vm._v(_vm._s(itemL2.name))], 1);
|
|
57579
|
+
})], 2)];
|
|
57580
|
+
}), _vm.otherList.length > 0 ? _c("Submenu", { attrs: { "name": "other" } }, [_c("template", { slot: "title" }, [_vm._v(" ... ")]), _vm._l(_vm.otherList, function(item2) {
|
|
57581
|
+
return _c("MenuItem", { key: item2.appId, attrs: { "name": item2.appId } }, [_c("Icon", { directives: [{ name: "show", rawName: "v-show", value: _vm.systemInfo.navLogo === "1", expression: "systemInfo.navLogo === '1'" }], attrs: { "type": item2.icon, "size": 20 } }), _vm._v(_vm._s(item2.name) + " ")], 1);
|
|
57582
|
+
})], 2) : _vm._e()], 2)], 1);
|
|
57579
57583
|
};
|
|
57580
57584
|
var staticRenderFns$U = [];
|
|
57581
|
-
var
|
|
57585
|
+
var appMenu_vue_vue_type_style_index_0_lang = "";
|
|
57582
57586
|
const __vue2_script$V = {
|
|
57583
57587
|
name: "IndAppMenu",
|
|
57584
|
-
components: { Menu, MenuItem, Icons },
|
|
57588
|
+
components: { Menu, MenuItem, Icons, Submenu },
|
|
57585
57589
|
props: {
|
|
57586
57590
|
appList: { type: Array, default: () => [] }
|
|
57587
57591
|
},
|
|
57592
|
+
data() {
|
|
57593
|
+
return {
|
|
57594
|
+
systemInfo: {},
|
|
57595
|
+
navList: [],
|
|
57596
|
+
topMenList: [],
|
|
57597
|
+
otherList: [],
|
|
57598
|
+
topMenuNum: 99,
|
|
57599
|
+
lastTopMenuNum: -1,
|
|
57600
|
+
acceptAppId: ""
|
|
57601
|
+
};
|
|
57602
|
+
},
|
|
57588
57603
|
computed: {
|
|
57589
57604
|
appInfo() {
|
|
57590
57605
|
return this.$store.getters.getAppInfo;
|
|
57591
57606
|
}
|
|
57592
57607
|
},
|
|
57608
|
+
created() {
|
|
57609
|
+
this.getAppMenu();
|
|
57610
|
+
},
|
|
57611
|
+
mounted() {
|
|
57612
|
+
setTimeout(() => {
|
|
57613
|
+
this.calcTopMenus();
|
|
57614
|
+
}, 1e3);
|
|
57615
|
+
},
|
|
57616
|
+
watch: {
|
|
57617
|
+
appList: {
|
|
57618
|
+
handler() {
|
|
57619
|
+
this.getAppMenu();
|
|
57620
|
+
},
|
|
57621
|
+
deep: true
|
|
57622
|
+
}
|
|
57623
|
+
},
|
|
57593
57624
|
methods: {
|
|
57625
|
+
getAppMenu() {
|
|
57626
|
+
let data = _.cloneDeep(this.appList);
|
|
57627
|
+
console.log("appList changed", data);
|
|
57628
|
+
_.forEach(data, (app2) => {
|
|
57629
|
+
var _a;
|
|
57630
|
+
let extendProps = app2.extendProps;
|
|
57631
|
+
let extendPropsL2 = extendProps == null ? void 0 : extendProps.extendProps;
|
|
57632
|
+
app2.parentName = extendPropsL2 ? (_a = JSON.parse(extendPropsL2)) == null ? void 0 : _a.parentName : "";
|
|
57633
|
+
});
|
|
57634
|
+
console.log("data", data);
|
|
57635
|
+
if (_.some(data, (app2) => app2.parentName)) {
|
|
57636
|
+
console.log("render group");
|
|
57637
|
+
let rlt = _.reduce(
|
|
57638
|
+
data,
|
|
57639
|
+
(acc, cur) => {
|
|
57640
|
+
if (cur.parentName) {
|
|
57641
|
+
let curApp = _.find(acc, { name: cur.parentName });
|
|
57642
|
+
if (curApp) {
|
|
57643
|
+
curApp.children.push(cur);
|
|
57644
|
+
} else {
|
|
57645
|
+
acc.push({
|
|
57646
|
+
name: cur.parentName,
|
|
57647
|
+
children: [cur]
|
|
57648
|
+
});
|
|
57649
|
+
}
|
|
57650
|
+
} else {
|
|
57651
|
+
acc.push(cur);
|
|
57652
|
+
}
|
|
57653
|
+
return acc;
|
|
57654
|
+
},
|
|
57655
|
+
[]
|
|
57656
|
+
);
|
|
57657
|
+
this.navList = rlt;
|
|
57658
|
+
} else {
|
|
57659
|
+
this.navList = data;
|
|
57660
|
+
}
|
|
57661
|
+
this.lastTopMenuNum = this.topMenuNum;
|
|
57662
|
+
if (this.navList.length > this.topMenuNum) {
|
|
57663
|
+
let navList = _.cloneDeep(this.navList);
|
|
57664
|
+
this.topMenList = navList.splice(0, this.topMenuNum);
|
|
57665
|
+
this.otherList = navList;
|
|
57666
|
+
} else {
|
|
57667
|
+
this.topMenList = this.navList;
|
|
57668
|
+
this.otherList = [];
|
|
57669
|
+
}
|
|
57670
|
+
if (this.navList.length > 0) {
|
|
57671
|
+
let appId = this.navList[0].appId;
|
|
57672
|
+
for (let i = 0; i < this.navList.length; i++) {
|
|
57673
|
+
if (this.navList[i].selected == true) {
|
|
57674
|
+
appId = this.navList[i].appId;
|
|
57675
|
+
}
|
|
57676
|
+
}
|
|
57677
|
+
if (this.activeName) {
|
|
57678
|
+
appId = this.activeName;
|
|
57679
|
+
}
|
|
57680
|
+
this.handleAppMenu(appId);
|
|
57681
|
+
}
|
|
57682
|
+
},
|
|
57594
57683
|
handleAppMenu(appId) {
|
|
57595
57684
|
this.$store.commit("setAppInfo", appId);
|
|
57685
|
+
},
|
|
57686
|
+
calcTopMenus() {
|
|
57687
|
+
var _a;
|
|
57688
|
+
let docWidth = document.getElementsByTagName("body")[0].clientWidth;
|
|
57689
|
+
let triggerBoxWidth = document.getElementsByClassName("sys-name")[0].clientWidth;
|
|
57690
|
+
let logoBoxWidth = document.getElementsByClassName("custom-bread-crumb")[0].clientWidth;
|
|
57691
|
+
let toolsBoxWidth = document.getElementsByClassName("custom-content-con")[0].clientWidth;
|
|
57692
|
+
let othersWidth = 80;
|
|
57693
|
+
let remainSpace = docWidth - triggerBoxWidth - logoBoxWidth - toolsBoxWidth - othersWidth;
|
|
57694
|
+
let topMenuNumCalc = 0;
|
|
57695
|
+
let sumWidth = 0;
|
|
57696
|
+
(_a = document.querySelectorAll(".pro-layout-nav-wrapper>.ivu-menu>li")) == null ? void 0 : _a.forEach((dom) => {
|
|
57697
|
+
sumWidth += dom.clientWidth;
|
|
57698
|
+
if (sumWidth < remainSpace) {
|
|
57699
|
+
topMenuNumCalc++;
|
|
57700
|
+
}
|
|
57701
|
+
});
|
|
57702
|
+
console.log("topMenuNumCalc", topMenuNumCalc, "this.topMenuNum", this.topMenuNum);
|
|
57703
|
+
if (topMenuNumCalc && this.topMenuNum > topMenuNumCalc) {
|
|
57704
|
+
this.topMenuNum = topMenuNumCalc;
|
|
57705
|
+
console.log("this.topMenuNum", this.topMenuNum);
|
|
57706
|
+
this.getAppMenu();
|
|
57707
|
+
}
|
|
57596
57708
|
}
|
|
57597
57709
|
}
|
|
57598
57710
|
};
|
|
@@ -57603,7 +57715,7 @@ var __component__$V = /* @__PURE__ */ normalizeComponent(
|
|
|
57603
57715
|
staticRenderFns$U,
|
|
57604
57716
|
false,
|
|
57605
57717
|
__vue2_injectStyles$V,
|
|
57606
|
-
|
|
57718
|
+
null,
|
|
57607
57719
|
null,
|
|
57608
57720
|
null
|
|
57609
57721
|
);
|
|
@@ -60138,6 +60250,7 @@ const __vue2_script$y = {
|
|
|
60138
60250
|
this.searchValue = "";
|
|
60139
60251
|
this.$refs.tree.clearCheckedAndSelectedNodes();
|
|
60140
60252
|
this.selectedTitles = "";
|
|
60253
|
+
this.$emit("input", []);
|
|
60141
60254
|
},
|
|
60142
60255
|
updateSearchNum(data) {
|
|
60143
60256
|
this.searchNum = data;
|
|
@@ -60188,7 +60301,7 @@ var __component__$y = /* @__PURE__ */ normalizeComponent(
|
|
|
60188
60301
|
staticRenderFns$x,
|
|
60189
60302
|
false,
|
|
60190
60303
|
__vue2_injectStyles$y,
|
|
60191
|
-
"
|
|
60304
|
+
"2be5af4a",
|
|
60192
60305
|
null,
|
|
60193
60306
|
null
|
|
60194
60307
|
);
|