@blocklet/payment-react 1.13.307 → 1.13.309

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.
@@ -3,7 +3,7 @@ import { Button, Link, Stack, Typography } from "@mui/material";
3
3
  function getHeightStyle(mode) {
4
4
  switch (mode) {
5
5
  case "standalone":
6
- return { height: "100%" };
6
+ return { height: "100vh" };
7
7
  default:
8
8
  return { height: "auto", minHeight: 200 };
9
9
  }
@@ -10,7 +10,7 @@ function getHeightStyle(mode) {
10
10
  switch (mode) {
11
11
  case "standalone":
12
12
  return {
13
- height: "100%"
13
+ height: "100vh"
14
14
  };
15
15
  default:
16
16
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-react",
3
- "version": "1.13.307",
3
+ "version": "1.13.309",
4
4
  "description": "Reusable react components for payment kit v2",
5
5
  "keywords": [
6
6
  "react",
@@ -91,7 +91,7 @@
91
91
  "@babel/core": "^7.24.7",
92
92
  "@babel/preset-env": "^7.24.7",
93
93
  "@babel/preset-react": "^7.24.7",
94
- "@blocklet/payment-types": "1.13.307",
94
+ "@blocklet/payment-types": "1.13.309",
95
95
  "@storybook/addon-essentials": "^7.6.19",
96
96
  "@storybook/addon-interactions": "^7.6.19",
97
97
  "@storybook/addon-links": "^7.6.19",
@@ -120,5 +120,5 @@
120
120
  "vite-plugin-babel": "^1.2.0",
121
121
  "vite-plugin-node-polyfills": "^0.21.0"
122
122
  },
123
- "gitHead": "2882cb539e9696522679d4d9ac5091ef3395d31c"
123
+ "gitHead": "bb892b5514943397caa1d96f9c6b355fcf7a0e71"
124
124
  }
@@ -13,7 +13,7 @@ type Props = {
13
13
  function getHeightStyle(mode: ModeType | undefined): any {
14
14
  switch (mode) {
15
15
  case 'standalone':
16
- return { height: '100%' }; // 独立模式下,高度为100vh
16
+ return { height: '100vh' }; // 独立模式下,高度为100vh
17
17
  default:
18
18
  return { height: 'auto', minHeight: 200 }; // 默认情况下,高度根据内容自动调整
19
19
  }