@indfnd/common-mobile 0.0.95 → 0.0.97
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-mobile.es.js +59 -30
- 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,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
|
+
### [0.0.97](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.96...v0.0.97) (2025-09-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 隐藏滚动条 ([74c3600](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/74c36002f49757350d7bc968dc25db43b196b4ce))
|
|
11
|
+
|
|
12
|
+
### [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)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* 修改 ([b368552](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/b368552352233db9fad90993f36d74c94985e47e))
|
|
18
|
+
* 修改 ([2b2dace](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/2b2dace9cbdf16176ea8ae7b57defef428d32df4))
|
|
19
|
+
|
|
5
20
|
### [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)
|
|
6
21
|
|
|
7
22
|
|
|
@@ -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.96";
|
|
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,7 @@ const __vue2_script$2 = {
|
|
|
68946
68944
|
name: "IndMApps",
|
|
68947
68945
|
data() {
|
|
68948
68946
|
return {
|
|
68947
|
+
activeTab: 0,
|
|
68949
68948
|
isHb: false,
|
|
68950
68949
|
show: false,
|
|
68951
68950
|
currentEditStatus: "off",
|
|
@@ -69038,6 +69037,26 @@ const __vue2_script$2 = {
|
|
|
69038
69037
|
}, 100);
|
|
69039
69038
|
},
|
|
69040
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
|
+
},
|
|
69041
69060
|
onSearch() {
|
|
69042
69061
|
if (!this.searchValue.trim()) {
|
|
69043
69062
|
this.show = false;
|
|
@@ -69256,7 +69275,7 @@ var render$1 = function() {
|
|
|
69256
69275
|
var _c = _vm._self._c || _h;
|
|
69257
69276
|
return _c("div", { staticClass: "custom-overlay", class: { show: _vm.loading }, on: { "click": function($event) {
|
|
69258
69277
|
$event.stopPropagation();
|
|
69259
|
-
} } }, [_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()]);
|
|
69260
69279
|
};
|
|
69261
69280
|
var staticRenderFns$1 = [];
|
|
69262
69281
|
const __vue2_script$1 = {
|
|
@@ -69281,7 +69300,7 @@ const __vue2_script$1 = {
|
|
|
69281
69300
|
if (fileId && fileId.trim() !== "") {
|
|
69282
69301
|
return `/user-manage-server/oss/file/get/${fileId}`;
|
|
69283
69302
|
}
|
|
69284
|
-
return
|
|
69303
|
+
return false;
|
|
69285
69304
|
},
|
|
69286
69305
|
getSafeConfigValue(path2) {
|
|
69287
69306
|
if (!this.$config)
|
|
@@ -71517,6 +71536,7 @@ const store = {
|
|
|
71517
71536
|
}
|
|
71518
71537
|
};
|
|
71519
71538
|
const install = function(Vue2, opts = { theme: "" }) {
|
|
71539
|
+
var _a;
|
|
71520
71540
|
if (install.installed)
|
|
71521
71541
|
return;
|
|
71522
71542
|
const theme = opts.theme || getDefaultTheme();
|
|
@@ -71527,13 +71547,22 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
71527
71547
|
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
|
|
71528
71548
|
});
|
|
71529
71549
|
}
|
|
71530
|
-
|
|
71531
|
-
`/user-manage-server/
|
|
71532
|
-
|
|
71533
|
-
|
|
71534
|
-
|
|
71535
|
-
|
|
71536
|
-
|
|
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
|
+
}
|
|
71537
71566
|
Object.keys(components).forEach((key) => {
|
|
71538
71567
|
Vue2.component(`IndM${key}`, components[key]);
|
|
71539
71568
|
});
|