@nocobase/client-v2 2.3.0-beta.28 → 2.3.0-beta.29
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/client-v2",
|
|
3
|
-
"version": "2.3.0-beta.
|
|
3
|
+
"version": "2.3.0-beta.29",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"@formily/antd-v5": "1.2.3",
|
|
28
28
|
"@formily/react": "^2.2.27",
|
|
29
29
|
"@formily/shared": "^2.2.27",
|
|
30
|
-
"@nocobase/evaluators": "2.3.0-beta.
|
|
31
|
-
"@nocobase/flow-engine": "2.3.0-beta.
|
|
32
|
-
"@nocobase/sdk": "2.3.0-beta.
|
|
33
|
-
"@nocobase/shared": "2.3.0-beta.
|
|
34
|
-
"@nocobase/utils": "2.3.0-beta.
|
|
30
|
+
"@nocobase/evaluators": "2.3.0-beta.29",
|
|
31
|
+
"@nocobase/flow-engine": "2.3.0-beta.29",
|
|
32
|
+
"@nocobase/sdk": "2.3.0-beta.29",
|
|
33
|
+
"@nocobase/shared": "2.3.0-beta.29",
|
|
34
|
+
"@nocobase/utils": "2.3.0-beta.29",
|
|
35
35
|
"ahooks": "^3.7.2",
|
|
36
36
|
"antd": "5.24.2",
|
|
37
37
|
"antd-style": "3.7.1",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"react-router-dom": "^6.30.1",
|
|
50
50
|
"zxing-wasm": "^3.1.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "c9ff70b7ce11e2a13c5896a90434d578df637fb7"
|
|
53
53
|
}
|
package/src/flow/FlowPage.tsx
CHANGED
|
@@ -164,7 +164,13 @@ export const FlowPage = observer((props: FlowPageProps & Record<string, unknown>
|
|
|
164
164
|
return <SkeletonFallback style={{ margin: ctx?.isMobileLayout ? 8 : ctx?.themeToken.marginBlock }} />;
|
|
165
165
|
}
|
|
166
166
|
const page = <InternalFlowPage uid={model.uid} {...rest} />;
|
|
167
|
-
return isRoute ?
|
|
167
|
+
return isRoute ? (
|
|
168
|
+
<RouteContent className="nb-flow-route-page" pending={needsConfirmation}>
|
|
169
|
+
{page}
|
|
170
|
+
</RouteContent>
|
|
171
|
+
) : (
|
|
172
|
+
page
|
|
173
|
+
);
|
|
168
174
|
});
|
|
169
175
|
|
|
170
176
|
FlowPage.displayName = 'FlowPage';
|
|
@@ -32,10 +32,14 @@ export function useRouteContentRequest(
|
|
|
32
32
|
return { model: current?.model, error, loading, needsConfirmation };
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export function RouteContent({
|
|
35
|
+
export function RouteContent({
|
|
36
|
+
pending,
|
|
37
|
+
className,
|
|
38
|
+
children,
|
|
39
|
+
}: React.PropsWithChildren<{ pending: boolean; className?: string }>) {
|
|
36
40
|
// React 18 forwards inert as a string attribute. Keep the same DOM and component state during initialization.
|
|
37
41
|
return (
|
|
38
|
-
<div style={{ display: 'contents' }} {...(pending ? { inert: '' } : {})}>
|
|
42
|
+
<div className={className} style={{ display: 'contents' }} {...(pending ? { inert: '' } : {})}>
|
|
39
43
|
{children}
|
|
40
44
|
</div>
|
|
41
45
|
);
|