@indfnd/common-mobile 1.0.15 → 1.0.17

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 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
+ ### [1.0.17](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.16...v1.0.17) (2026-01-19)
6
+
7
+ ### [1.0.16](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.15...v1.0.16) (2026-01-16)
8
+
9
+
10
+ ### Features
11
+
12
+ * 新增移动端文件上传 ([f8880fc](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/f8880fc31f7c9233f35bbfe42a7c6b391beb557c))
13
+ * 新增移动端文件上传 ([6cc3e80](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/6cc3e80a159344194798e830bac515ddfa303743))
14
+ * 修复pageview分页 detialview距离底部距离 ([71ef809](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/71ef8091b56b0f05299e225c51be67420615173c))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * 修改文件上传组件 ([13be21f](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/13be21f075a923827cd090468047363c419b7402))
20
+
5
21
  ### [1.0.15](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.14...v1.0.15) (2026-01-16)
6
22
 
7
23
 
@@ -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.14";
6
+ const version$2 = "1.0.16";
7
7
  const author$1 = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
@@ -1778,7 +1778,7 @@ var FormImpl = {
1778
1778
  break;
1779
1779
  }
1780
1780
  case "fileUpload": {
1781
- itemInner = h("IndUploadFile", {
1781
+ itemInner = h("IndMUploadFile", {
1782
1782
  ref: d.formKey,
1783
1783
  props: {
1784
1784
  ...d.props || {},
@@ -2330,7 +2330,7 @@ var render$s = function() {
2330
2330
  var _vm = this;
2331
2331
  var _h = _vm.$createElement;
2332
2332
  var _c = _vm._self._c || _h;
2333
- return _c("IndLoadingPanel", { attrs: { "loading": _vm.loading } }, [_vm.curData && _vm.curData.length ? _c("van-list", { attrs: { "value": _vm.loading, "finished": _vm.finished, "offset": _vm.offset, "finished-text": _vm.finishedText, "immediateCheck": false }, on: { "load": _vm.handleLoadMore } }, [_vm._l(_vm.curData, function(item2) {
2333
+ return _c("IndLoadingPanel", { attrs: { "loading": _vm.loading } }, [_vm.curData && _vm.curData.length ? _c("van-list", { attrs: { "loading": _vm.loading, "value": _vm.loading, "finished": _vm.isFinished, "offset": _vm.offset, "finished-text": _vm.finishedText, "immediateCheck": false }, on: { "load": _vm.handleLoadMore } }, [_vm._l(_vm.curData, function(item2) {
2334
2334
  return [_vm._t("item", null, { "item": item2 })];
2335
2335
  })], 2) : _c("div", { staticClass: "ind-empty", staticStyle: { "height": "calc(100vh - 122px)" } })], 1);
2336
2336
  };
@@ -2342,6 +2342,10 @@ const __vue2_script$s = {
2342
2342
  type: Boolean,
2343
2343
  default: false
2344
2344
  },
2345
+ disablePage: {
2346
+ type: Boolean,
2347
+ default: true
2348
+ },
2345
2349
  datas: {
2346
2350
  type: Array,
2347
2351
  default: () => []
@@ -2364,20 +2368,6 @@ const __vue2_script$s = {
2364
2368
  currentPage: 1
2365
2369
  };
2366
2370
  },
2367
- computed: {
2368
- finished() {
2369
- if (this.enableLoadMore) {
2370
- console.log("finish\u8C03\u8BD5:", {
2371
- currentPage: this.currentPage,
2372
- curData: this.curData.length,
2373
- datas: this.datas.length,
2374
- finished: this.currentPage * this.pageLen >= this.datas.length
2375
- });
2376
- return this.currentPage * this.pageLen >= this.datas.length;
2377
- }
2378
- return this.isFinished;
2379
- }
2380
- },
2381
2371
  watch: {
2382
2372
  datas: {
2383
2373
  immediate: true,
@@ -2395,7 +2385,7 @@ const __vue2_script$s = {
2395
2385
  methods: {
2396
2386
  handleLoadMore() {
2397
2387
  if (this.enableLoadMore) {
2398
- if (this.finished)
2388
+ if (this.isFinished)
2399
2389
  return;
2400
2390
  this.currentPage++;
2401
2391
  const start4 = (this.currentPage - 1) * this.pageLen;
@@ -2406,13 +2396,13 @@ const __vue2_script$s = {
2406
2396
  currentPage: this.currentPage,
2407
2397
  curData: this.curData
2408
2398
  });
2409
- setTimeout(() => {
2410
- this.loading = false;
2411
- }, 200);
2412
- } else {
2413
- if (this.finished)
2399
+ } else if (this.disablePage === false) {
2400
+ if (this.isFinished)
2414
2401
  return;
2415
2402
  this.$emit("load-more");
2403
+ } else {
2404
+ if (this.isFinished)
2405
+ return;
2416
2406
  }
2417
2407
  }
2418
2408
  }
@@ -3257,7 +3247,7 @@ var render$o = function() {
3257
3247
  } }], null, true) })], 1)];
3258
3248
  }, { "table": cTable })] : _vm._e()], 2);
3259
3249
  }), 1)], 2), _vm._t("bottom", function() {
3260
- return [_vm.bottom || _vm.$slots.bottom ? _c("div", { staticClass: "ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between" }, [_c("IndButtonGroup", { attrs: { "split": "", "right": "" } }, [_c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.save } }, [_vm._v(" \u4FDD\u5B58 ")]), _c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.submit } }, [_vm._v(" \u63D0\u4EA4 ")])], 1)], 1) : _vm._e()];
3250
+ return [_vm.bottom || _vm.$slots.bottom ? _c("div", { ref: "bottomRef", staticClass: "ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between" }, [_c("IndButtonGroup", { attrs: { "split": "", "right": "" } }, [_c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.save } }, [_vm._v(" \u4FDD\u5B58 ")]), _c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.submit } }, [_vm._v(" \u63D0\u4EA4 ")])], 1)], 1) : _vm._e()];
3261
3251
  }), _c("IndMLoadingPanel", { attrs: { "loading": _vm.loadingComp || _vm.loading } }), _vm._t("default")], 2);
3262
3252
  };
3263
3253
  var staticRenderFns$o = [];
@@ -3320,8 +3310,8 @@ const __vue2_script$o = {
3320
3310
  this.initData();
3321
3311
  },
3322
3312
  mounted() {
3323
- var _a, _b, _c, _d;
3324
- this.bottomHeight = (((_d = (_c = (_b = (_a = this.$slots) == null ? void 0 : _a.bottom) == null ? void 0 : _b[0]) == null ? void 0 : _c.elm) == null ? void 0 : _d.clientHeight) || 0) + "px";
3313
+ var _a, _b, _c, _d, _e;
3314
+ this.bottomHeight = (((_d = (_c = (_b = (_a = this.$slots) == null ? void 0 : _a.bottom) == null ? void 0 : _b[0]) == null ? void 0 : _c.elm) == null ? void 0 : _d.clientHeight) || ((_e = this.$refs.bottomRef) == null ? void 0 : _e.clientHeight) || 0) + "px";
3325
3315
  },
3326
3316
  watch: {
3327
3317
  pageUnit: function() {
@@ -3361,6 +3351,11 @@ const __vue2_script$o = {
3361
3351
  }
3362
3352
  },
3363
3353
  methods: {
3354
+ reCalcBottomPadding() {
3355
+ var _a, _b, _c, _d, _e;
3356
+ this.bottomHeight = (((_d = (_c = (_b = (_a = this.$slots) == null ? void 0 : _a.bottom) == null ? void 0 : _b[0]) == null ? void 0 : _c.elm) == null ? void 0 : _d.clientHeight) || ((_e = this.$refs.bottomRef) == null ? void 0 : _e.clientHeight) || 0) + "px";
3357
+ console.log("reCalcBottomPadding", this.bottomHeight);
3358
+ },
3364
3359
  setPageData(src2) {
3365
3360
  let dataSrc = _.cloneDeep(src2);
3366
3361
  if (this.dataUnit == this.pageUnit) {
@@ -3516,6 +3511,9 @@ const __vue2_script$o = {
3516
3511
  if (resp == null ? void 0 : resp.data) {
3517
3512
  this.setPageData(resp == null ? void 0 : resp.data);
3518
3513
  }
3514
+ setTimeout(() => {
3515
+ this.reCalcBottomPadding();
3516
+ }, 0);
3519
3517
  }
3520
3518
  } catch (e) {
3521
3519
  console.log("initData e", e);
@@ -3589,17 +3587,17 @@ var render$n = function() {
3589
3587
  var _vm = this;
3590
3588
  var _h = _vm.$createElement;
3591
3589
  var _c = _vm._self._c || _h;
3592
- return _c("div", { staticClass: "ind-page-view ind-flex-column" }, [_c("IndMSearch", { attrs: { "value": _vm.searchForm, "showFilter": _vm.searchFormFields && _vm.searchFormFields.length > 0, "fieldList": _vm.searchFormFields, "searchVal": _vm.searchVal }, on: { "update:searchVal": function($event) {
3590
+ return _c("div", { staticClass: "ind-page-view ind-flex-column", style: { paddingBottom: _vm.bottomHeight } }, [_c("IndMSearch", { attrs: { "value": _vm.searchForm, "showFilter": _vm.searchFormFields && _vm.searchFormFields.length > 0, "fieldList": _vm.searchFormFields, "searchVal": _vm.searchVal }, on: { "update:searchVal": function($event) {
3593
3591
  _vm.searchVal = $event;
3594
3592
  }, "update:search-val": function($event) {
3595
3593
  _vm.searchVal = $event;
3596
- }, "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, "is-finished": _vm.isFinished, "loading": _vm.loadingComp }, on: { "load-more": _vm.loadMore }, scopedSlots: _vm._u([{ key: "item", fn: function(ref) {
3594
+ }, "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 || !_vm.disablePage ? "loadmore" : ""] }, [_c("IndMLoadMore", { attrs: { "enableLoadMore": _vm.enableLoadMore, "disablePage": _vm.disablePage, "pageLen": _vm.enableLoadMore || !_vm.disablePage ? 10 : 999999, "datas": _vm.displayRows, "is-finished": _vm.isFinished, "loading": _vm.loadingComp }, on: { "load-more": _vm.loadMore }, scopedSlots: _vm._u([{ key: "item", fn: function(ref) {
3597
3595
  var item2 = ref.item;
3598
3596
  return [_vm._t("item", function() {
3599
3597
  return [_c("IndMForm", { attrs: { "fieldList": _vm.formFieldList, "cardBtns": _vm.cardBtns, "value": item2, "formType": "card" } })];
3600
3598
  }, { "item": item2 })];
3601
3599
  } }], null, true) })], 1), _vm._t("bottom", function() {
3602
- return [_c("div", { staticClass: "ind-bottom-info ind-bottom-btn" }, [_c("div", { staticClass: "ind-flex" }, [_vm.bottomMsg ? [_vm._v(" " + _vm._s(_vm.bottomMsg) + " ")] : [_vm._v(" \u5171\xA0"), _c("span", { staticClass: "ind-orange ind-large" }, [_vm._v(_vm._s(_vm.total || _vm.displayRows.length || 0))]), _vm._v("\xA0\u6761\u6570\u636E ")]], 2), _vm.bottom || _vm.pageBtnText || _vm.btnText ? _c("div", { staticClass: "ind-flex ind-space-between ind-mt" }, [_c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": function($event) {
3600
+ return [_c("div", { ref: "bottomRef", staticClass: "ind-bottom-info ind-bottom-btn" }, [_c("div", { staticClass: "ind-flex" }, [_vm.bottomMsg ? [_vm._v(" " + _vm._s(_vm.bottomMsg) + " ")] : [_vm._v(" \u5171\xA0"), _c("span", { staticClass: "ind-orange ind-large" }, [_vm._v(_vm._s(_vm.total || _vm.displayRows.length || 0))]), _vm._v("\xA0\u6761\u6570\u636E ")]], 2), _vm.bottom || _vm.pageBtnText || _vm.btnText ? _c("div", { staticClass: "ind-flex ind-space-between ind-mt" }, [_c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": function($event) {
3603
3601
  return _vm.$emit("bottomClick");
3604
3602
  } } }, [_vm._v(" " + _vm._s(_vm.pageBtnText || _vm.btnText || "\u65B0\u589E") + " ")])], 1) : _vm._e()])];
3605
3603
  }), _c("IndMLoadingPanel", { attrs: { "loading": _vm.loadingComp || _vm.loading } }), _vm._t("default")], 2);
@@ -3644,12 +3642,13 @@ const __vue2_script$n = {
3644
3642
  limit: {
3645
3643
  type: Number,
3646
3644
  default: function() {
3647
- return this.disablePage ? 999999 : 10;
3645
+ return !this.disablePage || this.enableLoadMore ? 10 : 999999;
3648
3646
  }
3649
3647
  }
3650
3648
  },
3651
3649
  data() {
3652
3650
  return {
3651
+ bottomHeight: "0px",
3653
3652
  pagination: {
3654
3653
  offset: 0,
3655
3654
  limit: this.limit,
@@ -3675,6 +3674,10 @@ const __vue2_script$n = {
3675
3674
  this.initConfig();
3676
3675
  this.initData();
3677
3676
  },
3677
+ mounted() {
3678
+ var _a, _b, _c, _d, _e;
3679
+ this.bottomHeight = (((_d = (_c = (_b = (_a = this.$slots) == null ? void 0 : _a.bottom) == null ? void 0 : _b[0]) == null ? void 0 : _c.elm) == null ? void 0 : _d.clientHeight) || ((_e = this.$refs.bottomRef) == null ? void 0 : _e.clientHeight) || 0) + "px";
3680
+ },
3678
3681
  watch: {
3679
3682
  xmlInfo: function() {
3680
3683
  this.initConfig();
@@ -3908,9 +3911,13 @@ const __vue2_script$n = {
3908
3911
  if (!this.disablePage) {
3909
3912
  this.pagination.total = this.total;
3910
3913
  this.isFinished = this.pagination.limit >= this.pagination.total;
3914
+ } else if (this.enableLoadMore) {
3915
+ this.pagination.total = this.total;
3916
+ this.isFinished = this.pagination.offset + this.pagination.limit >= this.pagination.total;
3911
3917
  } else {
3912
3918
  this.isFinished = true;
3913
3919
  }
3920
+ console.log("this.isFinished", this.isFinished);
3914
3921
  } else if (this.dataUrl) {
3915
3922
  let resp;
3916
3923
  let params = {
@@ -22978,20 +22985,20 @@ const __vue2_script$e = {
22978
22985
  this.searchNum = data49;
22979
22986
  },
22980
22987
  updateSelectedTitles() {
22981
- var _a, _b, _c, _d;
22988
+ var _a, _b, _c, _d, _e, _f, _g, _h;
22982
22989
  let tempNodes = _.filter(this.value, (d) => {
22983
22990
  return !d.children || d.children.length == 0;
22984
22991
  });
22985
22992
  let textField = "title";
22986
- if ((_a = this.options) == null ? void 0 : _a.length) {
22987
- textField = "V";
22988
- } else if (((_b = this.columnsComp) == null ? void 0 : _b.length) > 1) {
22993
+ if (((_a = this.columnsComp) == null ? void 0 : _a.length) > 1) {
22989
22994
  textField = this.columnsComp[1].field;
22995
+ } else if ((_b = this.options) == null ? void 0 : _b.length) {
22996
+ textField = "V";
22990
22997
  }
22991
22998
  console.log("textField is", textField);
22992
- this.selectedTitles = (tempNodes == null ? void 0 : tempNodes.length) ? (tempNodes == null ? void 0 : tempNodes.length) == 1 ? ((_c = this.options) == null ? void 0 : _c.length) ? (_d = this.options.find((d) => {
22999
+ this.selectedTitles = (tempNodes == null ? void 0 : tempNodes.length) ? (tempNodes == null ? void 0 : tempNodes.length) == 1 ? ((_c = this.options) == null ? void 0 : _c.length) ? ((_d = this.options.find((d) => {
22993
23000
  return d.K == tempNodes[0].K;
22994
- })) == null ? void 0 : _d.V : tempNodes[0][textField] : "\u5171\u9009\u62E9" + ((tempNodes == null ? void 0 : tempNodes.length) || 0) + "\u4E2A" + this.title : "";
23001
+ })) == null ? void 0 : _d.V) || ((_e = tempNodes[0]) == null ? void 0 : _e.V) || ((_f = tempNodes[0]) == null ? void 0 : _f.title) : tempNodes[0][textField] || ((_g = tempNodes[0]) == null ? void 0 : _g.V) || ((_h = tempNodes[0]) == null ? void 0 : _h.title) : "\u5171\u9009\u62E9" + ((tempNodes == null ? void 0 : tempNodes.length) || 0) + "\u4E2A" + this.title : "";
22995
23002
  },
22996
23003
  setSelectedTitles(title4) {
22997
23004
  this.selectedTitles = title4;