@indfnd/common-mobile 1.0.9 → 1.0.10
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 +7 -0
- package/dist/ind-common-mobile.es.js +51 -12
- package/dist/ind-common-mobile.umd.cjs +7 -7
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.10](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.9...v1.0.10) (2025-12-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 修改 ([279056f](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/279056f37b6a3ecee0c0559402bb7a133b974a9d))
|
|
11
|
+
|
|
5
12
|
### [1.0.9](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.8...v1.0.9) (2025-12-30)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
5
5
|
const name$1 = "@indfnd/common-mobile";
|
|
6
|
-
const version$2 = "1.0.
|
|
6
|
+
const version$2 = "1.0.9";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -23258,9 +23258,9 @@ var render$8 = function() {
|
|
|
23258
23258
|
return _vm.ontouchend(_vm.item);
|
|
23259
23259
|
}, "click": function($event) {
|
|
23260
23260
|
return _vm.ontouchend(_vm.item);
|
|
23261
|
-
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img" }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon)
|
|
23261
|
+
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img" }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon) } }), _c("van-badge", { staticClass: "ind-app-item-icon-imgbadge", attrs: { "color": "#999" }, scopedSlots: _vm._u([{ key: "content", fn: function() {
|
|
23262
23262
|
return [_c("van-icon", { staticStyle: { "line-height": "1.5" }, attrs: { "name": _vm.editStatus } })];
|
|
23263
|
-
}, proxy: true }], null, false, 1274909998) })], 1)]) : _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img" }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon)
|
|
23263
|
+
}, proxy: true }], null, false, 1274909998) })], 1)]) : _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img" }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon) } })])]), _c("div", { class: ["ind-app-item-title", _vm.$config.ellipsis ? "ellipsis" : ""] }, [_vm._v(" " + _vm._s(_vm.item.meta.title) + " ")])]);
|
|
23264
23264
|
};
|
|
23265
23265
|
var staticRenderFns$8 = [];
|
|
23266
23266
|
const __vue2_script$8 = {
|
|
@@ -23276,7 +23276,6 @@ const __vue2_script$8 = {
|
|
|
23276
23276
|
computed: {},
|
|
23277
23277
|
methods: {
|
|
23278
23278
|
getImg(uri) {
|
|
23279
|
-
console.log(location.origin + uri);
|
|
23280
23279
|
const isHb2 = location.pathname.includes("scyxweb");
|
|
23281
23280
|
return `${location.origin}${isHb2 ? "/hbwebchat/scyxweb" : ""}${uri}`;
|
|
23282
23281
|
},
|
|
@@ -28143,7 +28142,7 @@ var render$5 = function() {
|
|
|
28143
28142
|
var _h = _vm.$createElement;
|
|
28144
28143
|
var _c = _vm._self._c || _h;
|
|
28145
28144
|
return _c("div", { staticClass: "ind-myApp-slim" }, [_c("div", { staticClass: "ind-myApp-slim-content" }, [_c("div", { staticClass: "ind-myApp-slim-content-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("div", { staticClass: "ind-myApp-slim-content-center", on: { "click": _vm.open } }, [!_vm.expanded ? _c("div", { staticClass: "ind-myApp-slim-icon-group" }, [_vm._l(_vm.displayedIcons, function(icon2, index2) {
|
|
28146
|
-
return _c("div", { key: index2, staticClass: "ind-myApp-slim-icon" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%", "border-radius": "50%" }, attrs: { "src": _vm.getImg(icon2.meta.icon)
|
|
28145
|
+
return _c("div", { key: index2, staticClass: "ind-myApp-slim-icon" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%", "border-radius": "50%", "background-color": "#fff" }, attrs: { "src": _vm.getImg(icon2.meta.icon) } })]);
|
|
28147
28146
|
}), _vm.showMoreIcon ? _c("div", { staticClass: "ind-myApp-slim-icon" }, [_vm._v(" " + _vm._s("...") + " ")]) : _vm._e()], 2) : _vm._e(), _vm.icons.length !== 0 ? _c("van-icon", { staticClass: "ind-myApp-slim-toggle-icon", class: { "ind-myApp-slim-rotate-down": _vm.expanded }, attrs: { "name": "arrow" } }) : _vm._e()], 1), _c("div", { staticClass: "ind-myApp-slim-content-button" }, [_c("div", { staticClass: "ind-myApp-slim-content-button-btn", on: { "click": _vm.edit } }, [_vm._v("\u7F16\u8F91")])])]), _vm.expanded ? _c("div", { staticStyle: { "width": "100%", "height": "auto", "background-color": "#fff" } }, [_c("van-swipe", { attrs: { "show-indicators": true, "loop": false, "indicator-color": "#005aaf" } }, _vm._l(_vm.list, function(page, pageIdx) {
|
|
28148
28147
|
return _c("van-swipe-item", { key: pageIdx }, [_c("div", { style: { paddingBottom: _vm.list.length > 1 ? "30px" : "0" } }, [_c("div", { staticClass: "ind-myApp-slim-content-content" }, _vm._l(page, function(item2, itemIdx) {
|
|
28149
28148
|
return _c("div", { key: itemIdx, staticClass: "ind-myApp-slim-content-content-item" }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
@@ -28187,7 +28186,6 @@ const __vue2_script$5 = {
|
|
|
28187
28186
|
},
|
|
28188
28187
|
methods: {
|
|
28189
28188
|
getImg(uri) {
|
|
28190
|
-
console.log(location.origin + uri);
|
|
28191
28189
|
const isHb2 = location.pathname.includes("scyxweb");
|
|
28192
28190
|
return `${location.origin}${isHb2 ? "/hbwebchat/scyxweb" : ""}${uri}`;
|
|
28193
28191
|
},
|
|
@@ -28252,12 +28250,32 @@ var render$4 = function() {
|
|
|
28252
28250
|
}), 0)]), _c("div", { staticClass: "ind-m-custom-tabs-content" }, [_c("div", { staticClass: "ind-m-custom-sidebar" }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
|
|
28253
28251
|
return _c("div", { key: index2, class: ["ind-m-sidebar-item", { active: _vm.activeKey === index2 }], on: { "click": function($event) {
|
|
28254
28252
|
return _vm.handleSidebarClick(index2);
|
|
28255
|
-
} } }, [_c("span", {
|
|
28256
|
-
}), 0), _c("div", { ref: "scrollContainer", staticClass: "ind-m-apps-container", staticStyle: { "padding-top": "0px", "padding-bottom": "
|
|
28257
|
-
return _c("div", { key: index2, staticClass: "ind-m-menu-section", attrs: { "id": "section-" + _vm.active + "-" + index2, "data-index": index2 } }, [_c("div", { staticClass: "ind-m-divider-container" }, [_c("van-divider", { staticClass: "ind-m-custom-divider" }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")])], 1), _c("div", {
|
|
28258
|
-
|
|
28259
|
-
|
|
28260
|
-
|
|
28253
|
+
} } }, [_c("span", { class: ["ind-m-sidebar-text", { active: _vm.activeKey === index2 }] }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")])]);
|
|
28254
|
+
}), 0), _c("div", { ref: "scrollContainer", staticClass: "ind-m-apps-container", staticStyle: { "padding-top": "0px", "padding-bottom": "300px", "height": "100%" } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
|
|
28255
|
+
return _c("div", { key: index2, staticClass: "ind-m-menu-section", attrs: { "id": "section-" + _vm.active + "-" + index2, "data-index": index2 } }, [_c("div", { staticClass: "ind-m-divider-container" }, [_c("van-divider", { staticClass: "ind-m-custom-divider" }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")])], 1), _c("div", { style: {
|
|
28256
|
+
display: "flex",
|
|
28257
|
+
flexWrap: "wrap",
|
|
28258
|
+
flexDirection: _vm.getTreeTotalDepth(item2) > 2 ? "column" : "row"
|
|
28259
|
+
} }, _vm._l((((_vm.apps_menus[_vm.active] || {}).children || [])[index2] || {}).children || [], function(subItem, subIndex) {
|
|
28260
|
+
return _c("div", { key: "level3-" + subIndex, style: {
|
|
28261
|
+
width: _vm.getTreeTotalDepth(item2) > 2 ? "100%" : "calc(100% / 3)",
|
|
28262
|
+
height: "100%",
|
|
28263
|
+
backgroundColor: "#fff",
|
|
28264
|
+
display: "flex",
|
|
28265
|
+
alignItems: _vm.getTreeTotalDepth(item2) > 2 ? null : "center",
|
|
28266
|
+
justifyContent: "center",
|
|
28267
|
+
flexDirection: _vm.getTreeTotalDepth(item2) > 2 ? "column" : "row",
|
|
28268
|
+
marginBottom: _vm.getTreeTotalDepth(item2) > 2 ? "20px" : "0px"
|
|
28269
|
+
} }, [!subItem.children ? _c("apps-item", { attrs: { "item": subItem, "state": subItem.state, "title": subItem.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } }) : _vm._e(), subItem.children ? _c("div", { staticClass: "ind-m-category-header" }, [_c("div", { staticClass: "ind-m-category-indicator" }), _c("div", { staticClass: "ind-m-category-title" }, [_vm._v(_vm._s(subItem.meta.title))])]) : _vm._e(), subItem.children ? _c("div", { style: { display: "flex", flexWrap: "wrap" } }, _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) {
|
|
28270
|
+
return _c("div", { key: menu.meta.permissionId, style: {
|
|
28271
|
+
width: "calc(100% / 3)",
|
|
28272
|
+
height: "100%",
|
|
28273
|
+
backgroundColor: "#fff",
|
|
28274
|
+
display: "flex",
|
|
28275
|
+
alignItems: "center",
|
|
28276
|
+
justifyContent: "center"
|
|
28277
|
+
} }, [_c("apps-item", { attrs: { "item": menu, "state": menu.state, "title": menu.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
28278
|
+
}), 0) : _vm._e()], 1);
|
|
28261
28279
|
}), 0)]);
|
|
28262
28280
|
}), 0)])]), _c("tabbar")], 1)], 1);
|
|
28263
28281
|
};
|
|
@@ -28344,6 +28362,18 @@ const __vue2_script$4 = {
|
|
|
28344
28362
|
}
|
|
28345
28363
|
},
|
|
28346
28364
|
methods: {
|
|
28365
|
+
getTreeTotalDepth(node) {
|
|
28366
|
+
if (!node)
|
|
28367
|
+
return 0;
|
|
28368
|
+
if (!node.children || node.children.length === 0)
|
|
28369
|
+
return 1;
|
|
28370
|
+
let maxDepth = 0;
|
|
28371
|
+
for (const child of node.children) {
|
|
28372
|
+
const childDepth = this.getTreeTotalDepth(child);
|
|
28373
|
+
maxDepth = Math.max(maxDepth, childDepth);
|
|
28374
|
+
}
|
|
28375
|
+
return maxDepth + 1;
|
|
28376
|
+
},
|
|
28347
28377
|
edit() {
|
|
28348
28378
|
this.$router.push({
|
|
28349
28379
|
name: "myApp"
|
|
@@ -28728,6 +28758,15 @@ const __vue2_script$3 = {
|
|
|
28728
28758
|
scrollToContent(index2) {
|
|
28729
28759
|
this.$nextTick(() => {
|
|
28730
28760
|
const container = document.querySelector(".ind-my-app-container");
|
|
28761
|
+
if (!container)
|
|
28762
|
+
return;
|
|
28763
|
+
if (index2 < 0 || index2 >= container.children.length) {
|
|
28764
|
+
container.scrollTo({
|
|
28765
|
+
top: 0,
|
|
28766
|
+
behavior: "smooth"
|
|
28767
|
+
});
|
|
28768
|
+
return;
|
|
28769
|
+
}
|
|
28731
28770
|
const targetSection = container.children[index2];
|
|
28732
28771
|
if (targetSection) {
|
|
28733
28772
|
const scrollPosition = targetSection.offsetTop - 3;
|