@indfnd/common-mobile 0.0.30 → 0.0.32
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-mobile.es.js +34 -7
- package/dist/ind-common-mobile.umd.cjs +19 -19
- package/dist/styles/index.css +1 -1
- package/package.json +2 -2
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
|
+
### [0.0.32](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.31...v0.0.32) (2024-06-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 滚动加载问题处理 ([47709b8](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/47709b8f5d3062d7141fc74dc1a488839a8460fa))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 更新依赖 ([e58c4b0](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/e58c4b0ec4fad547936df0a876b1c2a4ef436d8e))
|
|
16
|
+
|
|
17
|
+
### [0.0.31](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.30...v0.0.31) (2024-06-16)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* 支持滚动加载 ([108e33e](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/108e33ecb53bd5376d16c770d259a7fdeb2e46cf))
|
|
23
|
+
|
|
5
24
|
### [0.0.30](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.29...v0.0.30) (2024-06-16)
|
|
6
25
|
|
|
7
26
|
|
|
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, getHalfYear, formatDate, useConfig, getL
|
|
|
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.31";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -52,7 +52,7 @@ const dependencies$1 = {
|
|
|
52
52
|
"xlsx-populate": "^1.11.0"
|
|
53
53
|
};
|
|
54
54
|
const devDependencies$1 = {
|
|
55
|
-
"@indfnd/utils": "^0.1.
|
|
55
|
+
"@indfnd/utils": "^0.1.11",
|
|
56
56
|
eslint: "^3.19.0",
|
|
57
57
|
"eslint-config-prettier": "^8.5.0",
|
|
58
58
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -43259,6 +43259,7 @@ var staticRenderFns$m = [];
|
|
|
43259
43259
|
const __vue2_script$m = {
|
|
43260
43260
|
name: "IndMLoadMore",
|
|
43261
43261
|
props: {
|
|
43262
|
+
enableLoadMore: Boolean,
|
|
43262
43263
|
dataUrl: String,
|
|
43263
43264
|
params: Object,
|
|
43264
43265
|
datas: {
|
|
@@ -44521,7 +44522,7 @@ var render$h = function() {
|
|
|
44521
44522
|
_vm.searchVal = $event;
|
|
44522
44523
|
}, "update:search-val": function($event) {
|
|
44523
44524
|
_vm.searchVal = $event;
|
|
44524
|
-
}, "doSearch": _vm.doSearch, "doSearchFilter": _vm.doSearchFilter } }), _vm.topMsg ? _c("van-notice-bar", { staticClass: "ind-flex-no-shrink", attrs: { "mode": "closeable" } }, [_vm._v(_vm._s(_vm.topMsg))]) : _vm._e(), _c("div", {
|
|
44525
|
+
}, "doSearch": _vm.doSearch, "doSearchFilter": _vm.doSearchFilter } }), _vm.topMsg ? _c("van-notice-bar", { staticClass: "ind-flex-no-shrink", attrs: { "mode": "closeable" } }, [_vm._v(_vm._s(_vm.topMsg))]) : _vm._e(), _c("div", { class: ["ind-page", _vm.enableLoadMore ? "loadmore" : ""] }, [_c("IndMLoadMore", { attrs: { "enableLoadMore": _vm.enableLoadMore, "pageLen": _vm.enableLoadMore ? 10 : 999999, "datas": _vm.displayRows, "dataUrl": _vm.dataUrl, "params": _vm.searchForm }, scopedSlots: _vm._u([{ key: "item", fn: function(ref) {
|
|
44525
44526
|
var item2 = ref.item;
|
|
44526
44527
|
return [_vm._t("item", function() {
|
|
44527
44528
|
return [_c("IndMForm", { attrs: { "fieldList": _vm.formFieldList, "cardBtns": _vm.cardBtns, "value": item2, "formType": "card" } })];
|
|
@@ -44557,7 +44558,8 @@ const __vue2_script$h = {
|
|
|
44557
44558
|
searchFields: Array,
|
|
44558
44559
|
searchForm: Object,
|
|
44559
44560
|
apiParams: Object,
|
|
44560
|
-
cardFields: Array
|
|
44561
|
+
cardFields: Array,
|
|
44562
|
+
enableLoadMore: Boolean
|
|
44561
44563
|
},
|
|
44562
44564
|
data() {
|
|
44563
44565
|
return {
|
|
@@ -68240,7 +68242,7 @@ var render$3 = function() {
|
|
|
68240
68242
|
var _vm = this;
|
|
68241
68243
|
var _h = _vm.$createElement;
|
|
68242
68244
|
var _c = _vm._self._c || _h;
|
|
68243
|
-
return _c("div", { staticClass: "height100" }, [_c("van-sticky", [_c("van-nav-bar", { attrs: { "placeholder": true, "safe-area-inset-top": true, "title": _vm.title } })], 1), _c("div", { staticClass: "app-page" }, [_c("van-sticky", { staticClass: "myapp-sticky", attrs: { "offset-top":
|
|
68245
|
+
return _c("div", { staticClass: "height100" }, [_c("van-sticky", [_c("van-nav-bar", { attrs: { "placeholder": true, "safe-area-inset-top": true, "title": _vm.title } })], 1), _c("div", { staticClass: "app-page" }, [_c("van-sticky", { staticClass: "myapp-sticky", attrs: { "offset-top": 68 } }, [_c("div", { ref: "myapp", staticClass: "myapp", style: { width: "-webkit-fill-available" } }, [_c("div", { staticClass: "ind-panel" }, [_c("div", [_c("div", { staticClass: "ind-panel-title" }, [_vm._v(" \u6211\u7684\u5E94\u7528 "), _c("van-button", { staticClass: "edit-btn", attrs: { "size": "small", "type": "info", "text": this.editButtonName }, on: { "click": _vm.toggleEdit } })], 1)]), _c("draggable", { staticClass: "wrapper", attrs: { "options": { disabled: _vm.disableDraggable } }, model: { value: _vm.my_apps, callback: function($$v) {
|
|
68244
68246
|
_vm.my_apps = $$v;
|
|
68245
68247
|
}, expression: "my_apps" } }, [_c("transition-group", { staticClass: "my-app-list", staticStyle: { "display": "flex", "flex-wrap": "wrap" } }, _vm._l(_vm.my_apps, function(item2, idx) {
|
|
68246
68248
|
return _c("apps-item", { key: idx, staticClass: "item", staticStyle: { "width": "25%", "padding": "16px 8px", "box-sizing": "border-box" }, attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } });
|
|
@@ -68295,7 +68297,7 @@ const __vue2_script$3 = {
|
|
|
68295
68297
|
},
|
|
68296
68298
|
my_apps() {
|
|
68297
68299
|
setTimeout(() => {
|
|
68298
|
-
this.offsetTop = this.$refs.myapp.clientHeight +
|
|
68300
|
+
this.offsetTop = this.$refs.myapp.clientHeight + 68;
|
|
68299
68301
|
}, 200);
|
|
68300
68302
|
}
|
|
68301
68303
|
},
|
|
@@ -68311,7 +68313,7 @@ const __vue2_script$3 = {
|
|
|
68311
68313
|
this.processState(this.my_apps, temps);
|
|
68312
68314
|
console.log(this.apps_menus);
|
|
68313
68315
|
setTimeout(() => {
|
|
68314
|
-
this.offsetTop = this.$refs.myapp.clientHeight +
|
|
68316
|
+
this.offsetTop = this.$refs.myapp.clientHeight + 68 + 10;
|
|
68315
68317
|
}, 100);
|
|
68316
68318
|
},
|
|
68317
68319
|
methods: {
|
|
@@ -70120,6 +70122,31 @@ axios$1.isAxiosError = isAxiosError;
|
|
|
70120
70122
|
axios$2.exports = axios$1;
|
|
70121
70123
|
axios$2.exports.default = axios$1;
|
|
70122
70124
|
var axios = axios$2.exports;
|
|
70125
|
+
const Cookie = {
|
|
70126
|
+
set: function(key, value17, exdays) {
|
|
70127
|
+
if (key.indexOf("=") !== -1) {
|
|
70128
|
+
throw new Error("Cookie\u4E0D\u652F\u6301key\u4E2D\u4F7F\u7528\u7B49\u53F7\u3010=\u3011, key:" + key);
|
|
70129
|
+
}
|
|
70130
|
+
let exdate = new Date();
|
|
70131
|
+
exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1e3 * exdays);
|
|
70132
|
+
window.document.cookie = key + "=" + value17 + ";path=/;expires=" + exdate.toGMTString();
|
|
70133
|
+
},
|
|
70134
|
+
get: function(key) {
|
|
70135
|
+
if (document.cookie.length > 0) {
|
|
70136
|
+
var arr = document.cookie.split("; ");
|
|
70137
|
+
for (let i = 0; i < arr.length; i++) {
|
|
70138
|
+
let arr2 = arr[i].split("=");
|
|
70139
|
+
if (arr2[0] === key) {
|
|
70140
|
+
var value17 = arr2[1];
|
|
70141
|
+
for (let j = 2; j < arr2.length; j++) {
|
|
70142
|
+
value17 += "=" + arr2[j];
|
|
70143
|
+
}
|
|
70144
|
+
return value17;
|
|
70145
|
+
}
|
|
70146
|
+
}
|
|
70147
|
+
}
|
|
70148
|
+
}
|
|
70149
|
+
};
|
|
70123
70150
|
async function renderRoutes({ router, store: store2, microType, allowPermissionList, routerOptionsBak }) {
|
|
70124
70151
|
await store2.dispatch("getUserInfo");
|
|
70125
70152
|
await store2.dispatch("getAppListData");
|