super-page-runtime 2.1.30 → 2.1.35

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.
@@ -14,8 +14,8 @@ declare const _default: import('vue').DefineComponent<{
14
14
  type: NumberConstructor;
15
15
  required: false;
16
16
  };
17
- dataIds: {
18
- type: StringConstructor;
17
+ dataId: {
18
+ type: NumberConstructor;
19
19
  required: false;
20
20
  };
21
21
  pageDesign: {
@@ -64,8 +64,8 @@ declare const _default: import('vue').DefineComponent<{
64
64
  type: NumberConstructor;
65
65
  required: false;
66
66
  };
67
- dataIds: {
68
- type: StringConstructor;
67
+ dataId: {
68
+ type: NumberConstructor;
69
69
  required: false;
70
70
  };
71
71
  pageDesign: {
@@ -19,6 +19,7 @@ import { useRoute, useRouter } from "vue-router";
19
19
  import { jumpToPage } from "agilebuilder-ui/src/utils/jump-page-utils";
20
20
  import { setSessionCache } from "agilebuilder-ui/src/utils/auth";
21
21
  import { deepCopy, isNumber } from "../utils/common-util.js";
22
+ import { isMobileBrowser } from "agilebuilder-ui/src/utils/common-util";
22
23
  const _hoisted_1 = { class: "app-container" };
23
24
  const _sfc_main = /* @__PURE__ */ defineComponent({
24
25
  __name: "super-page",
@@ -39,8 +40,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
40
  required: false
40
41
  },
41
42
  //表单数据ID
42
- dataIds: {
43
- type: String,
43
+ dataId: {
44
+ type: Number,
44
45
  required: false
45
46
  },
46
47
  //测试对象
@@ -245,7 +246,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
245
246
  let myContentHeight = props.contentHeight;
246
247
  if (!myContentHeight) {
247
248
  const rect = parentNode.getBoundingClientRect();
248
- myContentHeight = window.innerHeight - rect.y - 40;
249
+ const isMobile = isMobileBrowser();
250
+ console.log("setContextStyle-----isMobile=", isMobile);
251
+ if (!isMobile) {
252
+ myContentHeight = window.innerHeight - rect.y - 40;
253
+ } else {
254
+ myContentHeight = window.innerHeight - 78;
255
+ }
249
256
  }
250
257
  let heightStyle = myContentHeight;
251
258
  if (isNumber(myContentHeight)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.1.30",
3
+ "version": "2.1.35",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -48,7 +48,7 @@
48
48
  "@vitejs/plugin-vue-jsx": "^3.1.0",
49
49
  "@vue/eslint-config-prettier": "^8.0.0",
50
50
  "@vue/test-utils": "^2.4.4",
51
- "agilebuilder-ui": "1.0.68",
51
+ "agilebuilder-ui": "1.0.70",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",