@blocklet/payment-react 1.13.308 → 1.13.310
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/es/payment/error.js +1 -1
- package/lib/payment/error.js +1 -1
- package/package.json +3 -3
- package/src/payment/error.tsx +1 -1
package/es/payment/error.js
CHANGED
package/lib/payment/error.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-react",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.310",
|
|
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.
|
|
94
|
+
"@blocklet/payment-types": "1.13.310",
|
|
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": "
|
|
123
|
+
"gitHead": "38732143f6ea8e55bc6c77053af4daec73141502"
|
|
124
124
|
}
|
package/src/payment/error.tsx
CHANGED
|
@@ -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: '
|
|
16
|
+
return { height: '100vh' }; // 独立模式下,高度为100vh
|
|
17
17
|
default:
|
|
18
18
|
return { height: 'auto', minHeight: 200 }; // 默认情况下,高度根据内容自动调整
|
|
19
19
|
}
|