@indfnd/common-mobile 1.0.59 → 1.0.61
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 +10 -0
- package/dist/ind-common-mobile.es.js +57 -24
- package/dist/ind-common-mobile.umd.cjs +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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.61](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.60...v1.0.61) (2026-03-12)
|
|
6
|
+
|
|
7
|
+
### [1.0.60](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.59...v1.0.60) (2026-03-12)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* 图片路径修改 ([170b3d3](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/170b3d37d48f5a44acca2d16f110b4f0c9aeeb17))
|
|
13
|
+
* 图片路径修改 ([22146a7](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/22146a700f36670785548592600b0095457f55f5))
|
|
14
|
+
|
|
5
15
|
### [1.0.59](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.58...v1.0.59) (2026-03-12)
|
|
6
16
|
|
|
7
17
|
### [1.0.58](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.57...v1.0.58) (2026-03-11)
|
|
@@ -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.60";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -1223,6 +1223,31 @@ function getIconByPositionId(options) {
|
|
|
1223
1223
|
return null;
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
|
+
function getImgByPermission(options) {
|
|
1227
|
+
try {
|
|
1228
|
+
const { permission: permission2, meta, config: config2, ossServerContext = "/user-manage-server" } = options || {};
|
|
1229
|
+
const { icon } = meta || {};
|
|
1230
|
+
if (!permission2 || !config2) {
|
|
1231
|
+
return "";
|
|
1232
|
+
}
|
|
1233
|
+
const urlByMobileConfig = getIconByPositionId({
|
|
1234
|
+
positionId: permission2,
|
|
1235
|
+
config: config2
|
|
1236
|
+
});
|
|
1237
|
+
if (urlByMobileConfig) {
|
|
1238
|
+
return urlByMobileConfig;
|
|
1239
|
+
}
|
|
1240
|
+
if (icon && icon.slice(0, 3) === "oss" && icon.length >= 4) {
|
|
1241
|
+
const newUri = icon.slice(4);
|
|
1242
|
+
return `${ossServerContext}/oss/file/get/${newUri}`;
|
|
1243
|
+
}
|
|
1244
|
+
const isHb2 = location.pathname.includes("scyxweb");
|
|
1245
|
+
return `${location.origin}${isHb2 ? "/hbwebchat/scyxweb" : ""}${icon || ""}`;
|
|
1246
|
+
} catch (e) {
|
|
1247
|
+
console.error("[getImgByPermission] \u83B7\u53D6\u56FE\u7247\u8DEF\u5F84\u5931\u8D25:", e);
|
|
1248
|
+
return "";
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1226
1251
|
const defaultSpan = 24;
|
|
1227
1252
|
const showMorePosition = 3;
|
|
1228
1253
|
var FormImpl = {
|
|
@@ -23955,7 +23980,7 @@ var render$i = function() {
|
|
|
23955
23980
|
var _h = _vm.$createElement;
|
|
23956
23981
|
var _c = _vm._self._c || _h;
|
|
23957
23982
|
return _c("div", { staticClass: "ind-panel" }, [_c("div", [_c("div", { staticClass: "ind-panel-title" }, [_vm._v(" " + _vm._s(_vm.title) + " ")])]), _c("van-grid", { attrs: { "border": false } }, _vm._l(_vm.myAppList, function(menu) {
|
|
23958
|
-
return _c("van-grid-item", { key: menu.meta.permissionId, attrs: { "to": menu.uri } }, [_c("div", { staticStyle: { "height": "100%" } }, [_c("div", { staticStyle: { "text-align": "center" } }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(menu.meta.icon) } })], 1), _c("div", { staticStyle: { "text-align": "center" } }, [_c("div", [_vm._v(_vm._s(menu.meta.title))])])])]);
|
|
23983
|
+
return _c("van-grid-item", { key: menu.meta.permissionId, attrs: { "to": menu.uri } }, [_c("div", { staticStyle: { "height": "100%" } }, [_c("div", { staticStyle: { "text-align": "center" } }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(menu.meta.icon, menu) } })], 1), _c("div", { staticStyle: { "text-align": "center" } }, [_c("div", [_vm._v(_vm._s(menu.meta.title))])])])]);
|
|
23959
23984
|
}), 1)], 1);
|
|
23960
23985
|
};
|
|
23961
23986
|
var staticRenderFns$i = [];
|
|
@@ -23971,9 +23996,12 @@ const __vue2_script$i = {
|
|
|
23971
23996
|
this.myAppList = this.$store.getters.getMyAppsList;
|
|
23972
23997
|
},
|
|
23973
23998
|
methods: {
|
|
23974
|
-
getImg(uri) {
|
|
23975
|
-
|
|
23976
|
-
|
|
23999
|
+
getImg(uri, item2) {
|
|
24000
|
+
return getImgByPermission({
|
|
24001
|
+
permission: item2 == null ? void 0 : item2.name,
|
|
24002
|
+
meta: { icon: uri },
|
|
24003
|
+
config: this.$config
|
|
24004
|
+
});
|
|
23977
24005
|
}
|
|
23978
24006
|
}
|
|
23979
24007
|
};
|
|
@@ -24011,12 +24039,12 @@ var render$h = function() {
|
|
|
24011
24039
|
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img", style: {
|
|
24012
24040
|
width: _vm.iconSize,
|
|
24013
24041
|
height: _vm.iconSize
|
|
24014
|
-
} }, [_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() {
|
|
24042
|
+
} }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon, _vm.item) } }), _c("van-badge", { staticClass: "ind-app-item-icon-imgbadge", attrs: { "color": "#999" }, scopedSlots: _vm._u([{ key: "content", fn: function() {
|
|
24015
24043
|
return [_c("van-icon", { staticStyle: { "line-height": "1.5" }, attrs: { "name": _vm.editStatus } })];
|
|
24016
24044
|
}, proxy: true }], null, false, 1274909998) })], 1)]) : _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img", style: {
|
|
24017
24045
|
width: _vm.iconSize,
|
|
24018
24046
|
height: _vm.iconSize
|
|
24019
|
-
} }, [_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) + " ")])]);
|
|
24047
|
+
} }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon, _vm.item) } })])]), _c("div", { class: ["ind-app-item-title", _vm.$config.ellipsis ? "ellipsis" : ""] }, [_vm._v(" " + _vm._s(_vm.item.meta.title) + " ")])]);
|
|
24020
24048
|
};
|
|
24021
24049
|
var staticRenderFns$h = [];
|
|
24022
24050
|
const __vue2_script$h = {
|
|
@@ -24037,14 +24065,13 @@ const __vue2_script$h = {
|
|
|
24037
24065
|
}
|
|
24038
24066
|
},
|
|
24039
24067
|
methods: {
|
|
24040
|
-
getImg(uri) {
|
|
24041
|
-
|
|
24042
|
-
|
|
24043
|
-
|
|
24044
|
-
|
|
24045
|
-
|
|
24046
|
-
|
|
24047
|
-
}
|
|
24068
|
+
getImg(uri, item2) {
|
|
24069
|
+
return getImgByPermission({
|
|
24070
|
+
permission: item2 == null ? void 0 : item2.name,
|
|
24071
|
+
meta: { icon: uri },
|
|
24072
|
+
config: this.$config,
|
|
24073
|
+
ossServerContext: this.ossServerContext
|
|
24074
|
+
});
|
|
24048
24075
|
},
|
|
24049
24076
|
ontouchstart(item2) {
|
|
24050
24077
|
item2.move = false;
|
|
@@ -28909,7 +28936,7 @@ var render$e = function() {
|
|
|
28909
28936
|
var _h = _vm.$createElement;
|
|
28910
28937
|
var _c = _vm._self._c || _h;
|
|
28911
28938
|
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(icon, index2) {
|
|
28912
|
-
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(icon.meta.icon) } })]);
|
|
28939
|
+
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(icon.meta.icon, icon) } })]);
|
|
28913
28940
|
}), _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) {
|
|
28914
28941
|
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) {
|
|
28915
28942
|
return _c("div", { key: itemIdx, staticClass: "ind-myApp-slim-content-content-item", style: {
|
|
@@ -28955,9 +28982,12 @@ const __vue2_script$e = {
|
|
|
28955
28982
|
}
|
|
28956
28983
|
},
|
|
28957
28984
|
methods: {
|
|
28958
|
-
getImg(uri) {
|
|
28959
|
-
|
|
28960
|
-
|
|
28985
|
+
getImg(uri, item2) {
|
|
28986
|
+
return getImgByPermission({
|
|
28987
|
+
permission: item2 == null ? void 0 : item2.name,
|
|
28988
|
+
meta: { icon: uri },
|
|
28989
|
+
config: this.$config
|
|
28990
|
+
});
|
|
28961
28991
|
},
|
|
28962
28992
|
edit() {
|
|
28963
28993
|
this.$emit("edit");
|
|
@@ -30055,7 +30085,7 @@ var render$9 = function() {
|
|
|
30055
30085
|
var _h = _vm.$createElement;
|
|
30056
30086
|
var _c = _vm._self._c || _h;
|
|
30057
30087
|
return _c("IndMCard", { attrs: { "showHeader": false, "innerPadding": "0px" } }, [_c("div", { staticClass: "ind-myApp-slim-new-content" }, [_c("div", { staticClass: "ind-myApp-slim-new-content-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("div", { staticClass: "ind-myApp-slim-new-content-center", on: { "click": _vm.open } }, [!_vm.expanded ? _c("div", { staticClass: "ind-myApp-slim-new-icon-group" }, _vm._l(_vm.displayedIcons, function(icon, index2) {
|
|
30058
|
-
return _c("div", { key: index2, staticClass: "ind-myApp-slim-new-icon" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%", "border-radius": "8px", "background-color": "#fff" }, attrs: { "src": _vm.getImg(icon.meta.icon) } })]);
|
|
30088
|
+
return _c("div", { key: index2, staticClass: "ind-myApp-slim-new-icon" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%", "border-radius": "8px", "background-color": "#fff" }, attrs: { "src": _vm.getImg(icon.meta.icon, icon) } })]);
|
|
30059
30089
|
}), 0) : _vm._e(), _vm.icons.length !== 0 && !_vm.expanded ? _c("Icon", { staticClass: "ind-myApp-slim-new-toggle-icon", attrs: { "type": "ios-arrow-forward" } }) : _vm._e(), _vm.icons.length !== 0 && _vm.expanded ? _c("Icon", { staticClass: "ind-myApp-slim-new-toggle-icon", attrs: { "type": "ios-arrow-down" } }) : _vm._e()], 1), _c("div", { staticClass: "ind-myApp-slim-new-content-button" }, [_c("div", { staticClass: "ind-myApp-slim-new-content-button-btn", on: { "click": _vm.edit } }, [_vm._v("\u7F16\u8F91")])])]), _vm.expanded ? _c("div", { staticStyle: { "width": "100%", "height": "auto" } }, [_c("van-swipe", { staticClass: "ind-myApp-slim-new-content-swipe", attrs: { "show-indicators": true, "loop": false } }, _vm._l(_vm.list, function(page, pageIdx) {
|
|
30060
30090
|
return _c("van-swipe-item", { key: pageIdx }, [_c("div", { style: { paddingBottom: _vm.list.length > 1 ? "30px" : "0" } }, [_c("div", { staticClass: "ind-myApp-slim-new-content-content" }, _vm._l(page, function(item2, itemIdx) {
|
|
30061
30091
|
return _c("div", { key: itemIdx, staticClass: "ind-myApp-slim-new-content-content-item", style: {
|
|
@@ -30101,9 +30131,12 @@ const __vue2_script$9 = {
|
|
|
30101
30131
|
}
|
|
30102
30132
|
},
|
|
30103
30133
|
methods: {
|
|
30104
|
-
getImg(uri) {
|
|
30105
|
-
|
|
30106
|
-
|
|
30134
|
+
getImg(uri, item2) {
|
|
30135
|
+
return getImgByPermission({
|
|
30136
|
+
permission: item2 == null ? void 0 : item2.name,
|
|
30137
|
+
meta: { icon: uri },
|
|
30138
|
+
config: this.$config
|
|
30139
|
+
});
|
|
30107
30140
|
},
|
|
30108
30141
|
edit() {
|
|
30109
30142
|
this.$emit("edit");
|
|
@@ -33814,4 +33847,4 @@ const API = {
|
|
|
33814
33847
|
doChangeTheme,
|
|
33815
33848
|
directives
|
|
33816
33849
|
};
|
|
33817
|
-
export { Apps, AppsEdit, AppsNew, basicLayout as BasicLayout, CHINESE_WEEKDAY_MAP, card as Card, cardItem as CardItem, datepicker as DatePicker, Debug, detailView as DetailView, EmptyLayout, ErrorContent, EventBus, form as Form, index as ImgLoad, configPlugin as IndConfigPlugin, routerPlugin as IndRouterPlugin, inputSelect as InputSelect, loadMore as LoadMore, loadingPanel as LoadingPanel, Login, MyApps, NotFound, pageView as PageView, popupView as PopupView, queryView as QueryView, search as Search, selectBtn as SelectBtn, selectPanel as SelectPanel, Setting, THEME_KEY, index$1 as UploadFile, User, user$1 as User1, addRouterGuards, appsItem as appItem, bindFocus, createMacroBasicRoutes, createMicroBasicRoutes, API as default, doChangeTheme, formatServerTime, generateConfigByXml, getBreadCrumbList, getDefaultTheme, getHomeRoute, getIconByPositionId, getMenuByRouter, getNewTagList, getNextRoute, getRouteTitleHandled, getStyle, getTagNavListFromLocalstorage, handleExpiredTime, install, permission, routeEqual, routeHasExist, routerOptions, scrollToCurInput, setTagNavListInLocalstorage, setTitle, showTitle, store, tabbar, transferIncrease, transferIndex };
|
|
33850
|
+
export { Apps, AppsEdit, AppsNew, basicLayout as BasicLayout, CHINESE_WEEKDAY_MAP, card as Card, cardItem as CardItem, datepicker as DatePicker, Debug, detailView as DetailView, EmptyLayout, ErrorContent, EventBus, form as Form, index as ImgLoad, configPlugin as IndConfigPlugin, routerPlugin as IndRouterPlugin, inputSelect as InputSelect, loadMore as LoadMore, loadingPanel as LoadingPanel, Login, MyApps, NotFound, pageView as PageView, popupView as PopupView, queryView as QueryView, search as Search, selectBtn as SelectBtn, selectPanel as SelectPanel, Setting, THEME_KEY, index$1 as UploadFile, User, user$1 as User1, addRouterGuards, appsItem as appItem, bindFocus, createMacroBasicRoutes, createMicroBasicRoutes, API as default, doChangeTheme, formatServerTime, generateConfigByXml, getBreadCrumbList, getDefaultTheme, getHomeRoute, getIconByPositionId, getImgByPermission, getMenuByRouter, getNewTagList, getNextRoute, getRouteTitleHandled, getStyle, getTagNavListFromLocalstorage, handleExpiredTime, install, permission, routeEqual, routeHasExist, routerOptions, scrollToCurInput, setTagNavListInLocalstorage, setTitle, showTitle, store, tabbar, transferIncrease, transferIndex };
|