@indfnd/common-mobile 0.0.94 → 0.0.96
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-mobile.es.js +79 -33
- package/dist/ind-common-mobile.umd.cjs +5 -5
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
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
|
+
### [0.0.96](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.95...v0.0.96) (2025-09-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 修改 ([b368552](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/b368552352233db9fad90993f36d74c94985e47e))
|
|
11
|
+
* 修改 ([2b2dace](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/2b2dace9cbdf16176ea8ae7b57defef428d32df4))
|
|
12
|
+
|
|
13
|
+
### [0.0.95](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.94...v0.0.95) (2025-09-11)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* 修改 ([de9abe1](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/de9abe1bf0344fd46446d3b88f51b1336dbeb173))
|
|
19
|
+
* 修改 ([630cc0a](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/630cc0ab9561564f5e9ec294fd301b5a16e4ac7c))
|
|
20
|
+
|
|
5
21
|
### [0.0.94](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.93...v0.0.94) (2025-09-09)
|
|
6
22
|
|
|
7
23
|
|
|
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
2
2
|
import Vue$1 from "vue";
|
|
3
3
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
4
4
|
const name$1 = "@indfnd/common-mobile";
|
|
5
|
-
const version$2 = "0.0.
|
|
5
|
+
const version$2 = "0.0.95";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -64028,7 +64028,7 @@ var render$5 = function() {
|
|
|
64028
64028
|
return _vm.ontouchend(_vm.item);
|
|
64029
64029
|
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticStyle: { "text-align": "center" } }, [_c("van-badge", { attrs: { "color": "#999" }, scopedSlots: _vm._u([{ key: "content", fn: function() {
|
|
64030
64030
|
return [_c("van-icon", { staticStyle: { "line-height": "1.5" }, attrs: { "name": _vm.editStatus } })];
|
|
64031
|
-
}, proxy: true }], null, false, 1274909998) }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1)], 1) : _c("div", { staticStyle: { "text-align": "center" } }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1), _c("div", { staticStyle: { "text-align": "center" } }, [_c("div", { staticStyle: { "font-size": "12px" } }, [_vm._v(_vm._s(_vm.item.meta.title))])])]);
|
|
64031
|
+
}, proxy: true }], null, false, 1274909998) }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1)], 1) : _c("div", { staticStyle: { "text-align": "center" } }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1), _c("div", { staticStyle: { "text-align": "center" } }, [_c("div", { staticStyle: { "font-size": "12px", "display": "-webkit-box", "-webkit-box-orient": "vertical", "-webkit-line-clamp": "2", "overflow": "hidden", "text-overflow": "ellipsis", "line-height": "1.2", "max-height": "2.4em" } }, [_vm._v(" " + _vm._s(_vm.item.meta.title) + " ")])])]);
|
|
64032
64032
|
};
|
|
64033
64033
|
var staticRenderFns$5 = [];
|
|
64034
64034
|
const __vue2_script$5 = {
|
|
@@ -68920,25 +68920,23 @@ var render$2 = function() {
|
|
|
68920
68920
|
_vm.show = $$v;
|
|
68921
68921
|
}, expression: "show" } }, [_c("div", { staticClass: "search-results-container" }, _vm._l(_vm.searchApp, function(item2, idx) {
|
|
68922
68922
|
return _c("apps-item", { key: idx, staticClass: "search-result-item", attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } });
|
|
68923
|
-
}), 1)]), _c("div", { staticClass: "myApp-container" }, [_c("div", { staticClass: "myApp-inner" }, [_c("div", { staticClass: "myApp-container-top" }, [_c("div", { staticClass: "my-apps-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("van-button", { staticClass: "edit-btn", attrs: { "size": "small", "type": "info", "text": _vm.editButtonName }, on: { "click": _vm.toggleEdit } })], 1), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.my_apps.length > 0, expression: "my_apps.length > 0" }], staticClass: "
|
|
68924
|
-
return _c("
|
|
68925
|
-
}),
|
|
68926
|
-
_vm.active
|
|
68927
|
-
|
|
68928
|
-
|
|
68929
|
-
|
|
68930
|
-
|
|
68931
|
-
return
|
|
68932
|
-
|
|
68933
|
-
|
|
68934
|
-
|
|
68935
|
-
return _c("div", { key:
|
|
68936
|
-
return _c("
|
|
68937
|
-
|
|
68938
|
-
|
|
68939
|
-
|
|
68940
|
-
}), 0)])]);
|
|
68941
|
-
}), 1), _c("tabbar")], 1)], 1);
|
|
68923
|
+
}), 1)]), _c("div", { staticClass: "myApp-container" }, [_c("div", { staticClass: "myApp-inner" }, [_c("div", { staticClass: "myApp-container-top" }, [_c("div", { staticClass: "my-apps-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("van-button", { staticClass: "edit-btn", attrs: { "size": "small", "type": "info", "text": _vm.editButtonName }, on: { "click": _vm.toggleEdit } })], 1), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.my_apps.length > 0, expression: "my_apps.length > 0" }], staticClass: "appsssss-container" }, _vm._l(_vm.my_apps, function(item2, idx) {
|
|
68924
|
+
return _c("div", { key: idx, staticClass: "appsssss-item" }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } })], 1);
|
|
68925
|
+
}), 0)])]), _c("div", { staticClass: "customnnnmmmm-tabs-container" }, [_c("div", { staticClass: "customnnnmmmm-tabs-header-wrapper" }, [_c("div", { ref: "tabsHeader", staticClass: "customnnnmmmm-tabs-header" }, _vm._l(_vm.apps_menus, function(tab, idx) {
|
|
68926
|
+
return _c("div", { key: "tab" + idx, staticClass: "customnnnmmmm-tab-item", class: { active: _vm.active === idx }, on: { "click": function($event) {
|
|
68927
|
+
return _vm.handleTabClick(idx);
|
|
68928
|
+
} } }, [_c("div", { staticClass: "customnnnmmmm-tab-item-top", class: { active: _vm.active === idx } }, [_vm._v(" " + _vm._s(tab.meta.title) + " ")]), _c("div", { staticClass: "customnnnmmmm-tab-item-bottom", class: { active: _vm.active === idx } })]);
|
|
68929
|
+
}), 0)]), _c("div", { staticClass: "custom-tabs-content" }, [_c("div", { staticClass: "custom-sidebar" }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
|
|
68930
|
+
return _c("div", { key: index2, class: ["sidebar-item", { active: _vm.activeKey === index2 }], on: { "click": function($event) {
|
|
68931
|
+
return _vm.handleSidebarClick(index2);
|
|
68932
|
+
} } }, [_c("span", { staticClass: "sidebar-text" }, [_vm._v(_vm._s(item2.meta.title))])]);
|
|
68933
|
+
}), 0), _c("div", { ref: "scrollContainer", staticClass: "apps-container", staticStyle: { "padding-top": "0px" }, style: { height: _vm.my_apps.length > 0 ? "calc(-135px + 80%)" : "80%" }, on: { "scroll": _vm.handleRightScroll } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
|
|
68934
|
+
return _c("div", { key: index2, staticClass: "menu-section", attrs: { "id": "section-" + _vm.active + "-" + index2, "data-index": index2 } }, [_c("div", { staticClass: "divider-container" }, [_c("van-divider", { staticClass: "custom-divider" }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")])], 1), _c("div", { staticClass: "menu-section-content" }, _vm._l((((_vm.apps_menus[_vm.active] || {}).children || [])[index2] || {}).children || [], function(subItem, subIndex) {
|
|
68935
|
+
return _c("div", { key: "level3-" + subIndex, class: ["app-item-wrapper", { "full-width": subItem.children }] }, [!subItem.children ? _c("apps-item", { attrs: { "item": subItem, "state": subItem.state, "title": subItem.meta.title, "editStatus": _vm.currentEditStatus == "on" ? "plus" : "off" }, on: { "touchend": _vm.addToMyAppsClick } }) : _vm._e(), subItem.children ? _c("div", { staticClass: "category-header" }, [_c("div", { staticClass: "category-indicator" }), _c("div", { staticClass: "category-title" }, [_vm._v(_vm._s(subItem.meta.title))])]) : _vm._e(), subItem.children ? _c("van-grid", { attrs: { "border": false, "clickable": "", "gutter": 0, "column-num": 3 } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children[index2] && _vm.apps_menus[_vm.active].children[index2].children[subIndex] && _vm.apps_menus[_vm.active].children[index2].children[subIndex].children || [], function(menu) {
|
|
68936
|
+
return _c("van-grid-item", { key: menu.meta.permissionId, staticClass: "menu" }, [_c("apps-item", { attrs: { "item": menu, "state": menu.state, "title": menu.meta.title, "editStatus": _vm.currentEditStatus == "on" ? "plus" : "off" }, on: { "touchend": _vm.addToMyAppsClick } })], 1);
|
|
68937
|
+
}), 1) : _vm._e()], 1);
|
|
68938
|
+
}), 0)]);
|
|
68939
|
+
}), 0)])]), _c("tabbar")], 1)], 1);
|
|
68942
68940
|
};
|
|
68943
68941
|
var staticRenderFns$2 = [];
|
|
68944
68942
|
const __vue2_script$2 = {
|
|
@@ -68946,6 +68944,8 @@ const __vue2_script$2 = {
|
|
|
68946
68944
|
name: "IndMApps",
|
|
68947
68945
|
data() {
|
|
68948
68946
|
return {
|
|
68947
|
+
activeTab: 0,
|
|
68948
|
+
isHb: false,
|
|
68949
68949
|
show: false,
|
|
68950
68950
|
currentEditStatus: "off",
|
|
68951
68951
|
searchValue: "",
|
|
@@ -68961,7 +68961,8 @@ const __vue2_script$2 = {
|
|
|
68961
68961
|
addToMyAppsClick: this.routeTo,
|
|
68962
68962
|
offsetTop: "246px",
|
|
68963
68963
|
maxApps: 8,
|
|
68964
|
-
searchApp: []
|
|
68964
|
+
searchApp: [],
|
|
68965
|
+
tabActiveKeys: {}
|
|
68965
68966
|
};
|
|
68966
68967
|
},
|
|
68967
68968
|
watch: {
|
|
@@ -68989,6 +68990,16 @@ const __vue2_script$2 = {
|
|
|
68989
68990
|
var _a;
|
|
68990
68991
|
this.offsetTop = ((_a = this.$refs.myapp) == null ? void 0 : _a.clientHeight) + 48 || 246;
|
|
68991
68992
|
}, 200);
|
|
68993
|
+
},
|
|
68994
|
+
active(newVal, oldVal) {
|
|
68995
|
+
this.$set(this.tabActiveKeys, oldVal, this.activeKey);
|
|
68996
|
+
this.activeKey = this.tabActiveKeys[newVal] || 0;
|
|
68997
|
+
this.$nextTick(() => {
|
|
68998
|
+
const scrollContainer = Array.isArray(this.$refs.scrollContainer) ? this.$refs.scrollContainer[0] : this.$refs.scrollContainer;
|
|
68999
|
+
if (scrollContainer) {
|
|
69000
|
+
scrollContainer.scrollTop = 0;
|
|
69001
|
+
}
|
|
69002
|
+
});
|
|
68992
69003
|
}
|
|
68993
69004
|
},
|
|
68994
69005
|
updated() {
|
|
@@ -68996,6 +69007,7 @@ const __vue2_script$2 = {
|
|
|
68996
69007
|
},
|
|
68997
69008
|
mounted() {
|
|
68998
69009
|
var _a;
|
|
69010
|
+
this.isHb = location.pathname.includes("scyxweb");
|
|
68999
69011
|
this.$nextTick(() => {
|
|
69000
69012
|
console.log(this.$refs.scrollContainer);
|
|
69001
69013
|
});
|
|
@@ -69015,12 +69027,36 @@ const __vue2_script$2 = {
|
|
|
69015
69027
|
this.title = temps[0].meta.title;
|
|
69016
69028
|
this.processState(this.my_apps, temps);
|
|
69017
69029
|
this.appsMenusExtended(this.apps_menus);
|
|
69030
|
+
this.tabActiveKeys = {};
|
|
69031
|
+
this.apps_menus.forEach((_2, index2) => {
|
|
69032
|
+
this.$set(this.tabActiveKeys, index2, 0);
|
|
69033
|
+
});
|
|
69018
69034
|
setTimeout(() => {
|
|
69019
69035
|
var _a2;
|
|
69020
69036
|
this.offsetTop = ((_a2 = this.$refs.myapp) == null ? void 0 : _a2.clientHeight) + 58 || 256;
|
|
69021
69037
|
}, 100);
|
|
69022
69038
|
},
|
|
69023
69039
|
methods: {
|
|
69040
|
+
handleTabClick(index2) {
|
|
69041
|
+
if (this.active === index2)
|
|
69042
|
+
return;
|
|
69043
|
+
this.active = index2;
|
|
69044
|
+
this.$emit("tab-click", index2);
|
|
69045
|
+
this.scrollTabIntoView(index2);
|
|
69046
|
+
},
|
|
69047
|
+
scrollTabIntoView(index2) {
|
|
69048
|
+
this.$nextTick(() => {
|
|
69049
|
+
const container = this.$refs.tabsHeader;
|
|
69050
|
+
const tab = container.children[index2];
|
|
69051
|
+
if (tab) {
|
|
69052
|
+
tab.scrollIntoView({
|
|
69053
|
+
behavior: "smooth",
|
|
69054
|
+
block: "nearest",
|
|
69055
|
+
inline: "center"
|
|
69056
|
+
});
|
|
69057
|
+
}
|
|
69058
|
+
});
|
|
69059
|
+
},
|
|
69024
69060
|
onSearch() {
|
|
69025
69061
|
if (!this.searchValue.trim()) {
|
|
69026
69062
|
this.show = false;
|
|
@@ -69136,7 +69172,7 @@ const __vue2_script$2 = {
|
|
|
69136
69172
|
nodes.forEach((node) => {
|
|
69137
69173
|
if (!node)
|
|
69138
69174
|
return;
|
|
69139
|
-
if (node.type === 2) {
|
|
69175
|
+
if (node.type === 2 && this.isHb) {
|
|
69140
69176
|
this.completeNode(node);
|
|
69141
69177
|
}
|
|
69142
69178
|
if (node.children && node.children.length > 0) {
|
|
@@ -69239,7 +69275,7 @@ var render$1 = function() {
|
|
|
69239
69275
|
var _c = _vm._self._c || _h;
|
|
69240
69276
|
return _c("div", { staticClass: "custom-overlay", class: { show: _vm.loading }, on: { "click": function($event) {
|
|
69241
69277
|
$event.stopPropagation();
|
|
69242
|
-
} } }, [_vm.isFullScreenLoading ? _c("div", { staticClass: "ind-loading-wrapper-global" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%" }, attrs: { "src": _vm.loadingImageUrl(true), "alt": "" } }), _c("div", { staticClass: "ind-loading-wrapper-text" }, [_vm._v(" " + _vm._s(_vm.text || "\u7CFB\u7EDF\u52A0\u8F7D\u4E2D...") + " ")])]) : _c("div", { staticClass: "ind-loading-wrapper-local" }, [_c("div", { staticClass: "ind-loading-block ind-vcenter" }, [_c("div", { staticClass: "ind-loading-block-center" }, [_c("img", { attrs: { "src": _vm.loadingImageUrl(false), "alt": "" } }), _c("div", { staticClass: "ind-loading-block-text" }, [_vm._v(_vm._s(_vm.text || "\u52A0\u8F7D\u4E2D..."))])])])])]);
|
|
69278
|
+
} } }, [_vm.isFullScreenLoading && _vm.loadingImageUrl(true) ? _c("div", { staticClass: "ind-loading-wrapper-global" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%" }, attrs: { "src": _vm.loadingImageUrl(true), "alt": "" } }), _c("div", { staticClass: "ind-loading-wrapper-text" }, [_vm._v(" " + _vm._s(_vm.text || "\u7CFB\u7EDF\u52A0\u8F7D\u4E2D...") + " ")])]) : !_vm.isFullScreenLoading && _vm.loadingImageUrl(false) ? _c("div", { staticClass: "ind-loading-wrapper-local" }, [_c("div", { staticClass: "ind-loading-block ind-vcenter" }, [_c("div", { staticClass: "ind-loading-block-center" }, [_c("img", { attrs: { "src": _vm.loadingImageUrl(false), "alt": "" } }), _c("div", { staticClass: "ind-loading-block-text" }, [_vm._v(_vm._s(_vm.text || "\u52A0\u8F7D\u4E2D..."))])])])]) : !_vm.loadingImageUrl(false) ? _c("div", { staticClass: "ind-loading-wrapper-local" }, [_c("div", { staticClass: "ind-loading-block ind-vcenter" }, [_c("div", { staticClass: "ind-loading-block-center" }, [_c("div", { staticClass: "img-divv" }, [_c("van-loading")], 1), _c("div", { staticClass: "ind-loading-block-text" }, [_vm._v(_vm._s(_vm.text || "\u52A0\u8F7D\u4E2D..."))])])])]) : _vm._e()]);
|
|
69243
69279
|
};
|
|
69244
69280
|
var staticRenderFns$1 = [];
|
|
69245
69281
|
const __vue2_script$1 = {
|
|
@@ -69261,10 +69297,10 @@ const __vue2_script$1 = {
|
|
|
69261
69297
|
loadingImageUrl(isGlobal) {
|
|
69262
69298
|
const configPath = isGlobal ? "systemDefaultConfig.globalLoading" : "systemDefaultConfig.localLoading";
|
|
69263
69299
|
const fileId = this.getSafeConfigValue(configPath);
|
|
69264
|
-
if (fileId) {
|
|
69300
|
+
if (fileId && fileId.trim() !== "") {
|
|
69265
69301
|
return `/user-manage-server/oss/file/get/${fileId}`;
|
|
69266
69302
|
}
|
|
69267
|
-
return
|
|
69303
|
+
return false;
|
|
69268
69304
|
},
|
|
69269
69305
|
getSafeConfigValue(path2) {
|
|
69270
69306
|
if (!this.$config)
|
|
@@ -71500,6 +71536,7 @@ const store = {
|
|
|
71500
71536
|
}
|
|
71501
71537
|
};
|
|
71502
71538
|
const install = function(Vue2, opts = { theme: "" }) {
|
|
71539
|
+
var _a;
|
|
71503
71540
|
if (install.installed)
|
|
71504
71541
|
return;
|
|
71505
71542
|
const theme = opts.theme || getDefaultTheme();
|
|
@@ -71510,13 +71547,22 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
71510
71547
|
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
|
|
71511
71548
|
});
|
|
71512
71549
|
}
|
|
71513
|
-
|
|
71514
|
-
`/user-manage-server/
|
|
71515
|
-
|
|
71516
|
-
|
|
71517
|
-
|
|
71518
|
-
|
|
71519
|
-
|
|
71550
|
+
if (!((_a = Vue2.prototype.$config) == null ? void 0 : _a.systemDefaultConfig)) {
|
|
71551
|
+
axios$3.get(`/user-manage-server/anon/system/qrySystemConfig`).then((response) => {
|
|
71552
|
+
var _a2;
|
|
71553
|
+
try {
|
|
71554
|
+
const ret = JSON.parse(((_a2 = response == null ? void 0 : response.data) == null ? void 0 : _a2.settingInfo) || "{}");
|
|
71555
|
+
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, ret);
|
|
71556
|
+
console.log("\u7CFB\u7EDF\u914D\u7F6E\u5DF2\u52A0\u8F7D", Vue2.prototype.$config);
|
|
71557
|
+
} catch (error) {
|
|
71558
|
+
console.error("\u89E3\u6790 settingInfo \u5931\u8D25:", error);
|
|
71559
|
+
}
|
|
71560
|
+
}).catch((error) => {
|
|
71561
|
+
console.error("\u8BF7\u6C42\u5931\u8D25:", error);
|
|
71562
|
+
});
|
|
71563
|
+
} else {
|
|
71564
|
+
console.log("\u4F7F\u7528\u5DF2\u7F13\u5B58\u7684\u914D\u7F6E", Vue2.prototype.$config);
|
|
71565
|
+
}
|
|
71520
71566
|
Object.keys(components).forEach((key) => {
|
|
71521
71567
|
Vue2.component(`IndM${key}`, components[key]);
|
|
71522
71568
|
});
|