@indfnd/common-mobile 0.0.23 → 0.0.26

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,24 @@
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.26](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.24...v0.0.26) (2024-05-29)
6
+
7
+
8
+ ### Features
9
+
10
+ * 键盘弹出处理 ([c4e9172](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/c4e9172f19c4a0207fd8c6b9dee624964a7049b4))
11
+ * popupview样式 ([e664f16](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/e664f1645c1610388493b0e8090196daf5aeddd4))
12
+
13
+ ### [0.0.25](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.24...v0.0.25) (2024-05-29)
14
+
15
+
16
+ ### Features
17
+
18
+ * 键盘弹出处理 ([c4e9172](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/c4e9172f19c4a0207fd8c6b9dee624964a7049b4))
19
+ * popupview样式 ([e664f16](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/e664f1645c1610388493b0e8090196daf5aeddd4))
20
+
21
+ ### [0.0.24](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.23...v0.0.24) (2024-05-27)
22
+
5
23
  ### [0.0.23](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.21...v0.0.23) (2024-05-27)
6
24
 
7
25
 
@@ -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 = "@indfnd/common-mobile";
5
- const version$1 = "0.0.22";
5
+ const version$1 = "0.0.25";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -6195,7 +6195,8 @@ function bindFocus(event) {
6195
6195
  }
6196
6196
  function scrollToCurInput() {
6197
6197
  setTimeout(() => {
6198
- window.curTarget.scrollIntoView({
6198
+ var _a;
6199
+ (_a = window == null ? void 0 : window.curTarget) == null ? void 0 : _a.scrollIntoView({
6199
6200
  block: "center",
6200
6201
  behavior: "smooth"
6201
6202
  });
@@ -43267,7 +43268,7 @@ const __vue2_script$m = {
43267
43268
  }
43268
43269
  },
43269
43270
  offset: { type: Number, default: 50 },
43270
- pageLen: { type: Number, default: 10 },
43271
+ pageLen: { type: Number, default: 999999 },
43271
43272
  finishedText: { type: String, default: "\u6CA1\u6709\u66F4\u591A\u4E86" }
43272
43273
  },
43273
43274
  data() {
@@ -44700,9 +44701,9 @@ var render$g = function() {
44700
44701
  var _c = _vm._self._c || _h;
44701
44702
  return _c("van-popup", { style: { width: "100%", height: "100vh" }, attrs: { "value": _vm.value, "position": "right", "get-container": "body" }, on: { "input": function($event) {
44702
44703
  return _vm.$emit("input", $event);
44703
- } } }, [_c("div", { staticClass: "height100 ind-basic-layout ind-flex-column" }, [_c("van-sticky", [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.title || _vm.$route.meta.title, "left-text": "", "left-arrow": "" }, on: { "click-left": function($event) {
44704
+ } } }, [_c("div", { staticClass: "height100 ind-basic-layout ind-flex-column", staticStyle: { "height": "100% !important" } }, [_c("van-sticky", [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.title || _vm.$route.meta.title, "left-text": "", "left-arrow": "" }, on: { "click-left": function($event) {
44704
44705
  return _vm.$emit("input", false);
44705
- } } })], 1), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow" }, [_vm._t("default")], 2)], 1)]);
44706
+ } } })], 1), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow", staticStyle: { "height": "100% !important", "overflow": "auto" } }, [_vm._t("default")], 2)], 1)]);
44706
44707
  };
44707
44708
  var staticRenderFns$g = [];
44708
44709
  const __vue2_script$g = {
@@ -69468,15 +69469,16 @@ const install = function(Vue2, opts = { theme: "" }) {
69468
69469
  Object.keys(directives).forEach((key) => {
69469
69470
  Vue2.directive(key, directives[key]);
69470
69471
  });
69472
+ window.lastInnerHeight = window.innerHeight;
69471
69473
  window.addEventListener("resize", function() {
69472
69474
  var screenHeight = window.innerHeight;
69473
- var viewportHeight = document.documentElement.clientHeight;
69474
- var keyboardRatio = screenHeight / viewportHeight;
69475
- if (keyboardRatio < 1) {
69475
+ if (screenHeight < window.lastInnerHeight) {
69476
69476
  console.log("\u952E\u76D8\u53EF\u80FD\u5C55\u5F00\u4E86");
69477
69477
  scrollToCurInput();
69478
+ window.lastInnerHeight = window.innerHeight;
69478
69479
  } else {
69479
69480
  console.log("\u952E\u76D8\u53EF\u80FD\u6536\u8D77\u4E86");
69481
+ window.lastInnerHeight = window.innerHeight;
69480
69482
  }
69481
69483
  });
69482
69484
  };