@umijs/plugins 4.0.0-canary.20221216.1 → 4.0.0-canary.20221221.1
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/dist/mf.js +1 -1
- package/libs/qiankun/master/MicroApp.tsx +6 -3
- package/package.json +3 -3
package/dist/mf.js
CHANGED
|
@@ -262,16 +262,19 @@ export const MicroApp = forwardRef(
|
|
|
262
262
|
? (loading) => <MicroAppLoader loading={loading} />
|
|
263
263
|
: null);
|
|
264
264
|
|
|
265
|
+
const microAppWrapperClassName = wrapperClassName ? `${wrapperClassName} qiankun-micro-app-wrapper` : 'qiankun-micro-app-wrapper';
|
|
266
|
+
const microAppClassName = className ? `${className} qiankun-micro-app-container` : 'qiankun-micro-app-container';
|
|
267
|
+
|
|
265
268
|
return Boolean(microAppLoader) || Boolean(microAppErrorBoundary) ? (
|
|
266
|
-
<div style={{ position: 'relative' }} className={
|
|
269
|
+
<div style={{ position: 'relative' }} className={microAppWrapperClassName}>
|
|
267
270
|
{Boolean(microAppLoader) && microAppLoader(loading)}
|
|
268
271
|
{Boolean(microAppErrorBoundary) &&
|
|
269
272
|
Boolean(error) &&
|
|
270
273
|
microAppErrorBoundary(error)}
|
|
271
|
-
<div ref={containerRef} className={
|
|
274
|
+
<div ref={containerRef} className={microAppClassName} />
|
|
272
275
|
</div>
|
|
273
276
|
) : (
|
|
274
|
-
<div ref={containerRef} className={
|
|
277
|
+
<div ref={containerRef} className={microAppClassName} />
|
|
275
278
|
);
|
|
276
279
|
},
|
|
277
280
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/plugins",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.20221221.1",
|
|
4
4
|
"description": "@umijs/plugins",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/plugins#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@ant-design/antd-theme-variable": "^1.0.0",
|
|
28
28
|
"@ant-design/icons": "^4.7.0",
|
|
29
29
|
"@ant-design/pro-components": "^2.0.1",
|
|
30
|
-
"@umijs/bundler-utils": "4.0.0-canary.
|
|
30
|
+
"@umijs/bundler-utils": "4.0.0-canary.20221221.1",
|
|
31
31
|
"@umijs/valtio": "^1.0.2",
|
|
32
32
|
"antd-dayjs-webpack-plugin": "^1.0.6",
|
|
33
33
|
"axios": "^0.27.2",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"antd": "^4.24.1",
|
|
53
|
-
"umi": "4.0.0-canary.
|
|
53
|
+
"umi": "4.0.0-canary.20221221.1"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|