Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4871649

Browse files
committed
Fixed an issue miss loading-indicator.
1 parentab549e4 commit4871649

File tree

6 files changed

+20
-5
lines changed

6 files changed

+20
-5
lines changed

‎client/packages/lowcoder/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
display: flex;
2929
pointer-events: none;
3030
flex-direction: column;
31+
top:0;
32+
z-index:10000;
3133
}
3234
#loadingsvg {
3335
animation: breath1s linear infinite;

‎client/packages/lowcoder/src/comps/comps/rootComp.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { ExternalEditorContext } from "util/context/ExternalEditorContext";
3434
import{useUserViewMode}from"util/hooks";
3535
importReactfrom"react";
3636
import{isEqual}from"lodash";
37-
37+
import{LoadingBarHideTrigger}from"@lowcoder-ee/util/hideLoading";
3838
constEditorView=lazy(
3939
()=>import("pages/editor/editorView"),
4040
);
@@ -138,6 +138,7 @@ const RootView = React.memo((props: RootViewProps) => {
138138
<divkey={key}>{comp.children.queries.children[key].getView()}</div>
139139
))}
140140
<Suspensefallback={!readOnly||isUserViewMode ?SuspenseFallback :null}>
141+
<LoadingBarHideTrigger/>
141142
<EditorViewuiComp={comp.children.ui}preloadComp={comp.children.preload}/>
142143
</Suspense>
143144
</EditorContext.Provider>

‎client/packages/lowcoder/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (!window.ResizeObserver) {
2424
window.ResizeObserver=ResizeObserver;
2525
}
2626

27-
functionhideLoading(){
27+
exportfunctionhideLoading(){
2828
// hide loading
2929
constnode=document.getElementById("loading");
3030
if(node){
@@ -42,7 +42,7 @@ debug(`REACT_APP_LOG_LEVEL:, ${REACT_APP_LOG_LEVEL}`);
4242

4343
try{
4444
bootstrap();
45-
hideLoading();
45+
//hideLoading();
4646
}catch(e){
4747
log.error(e);
4848
}

‎client/packages/lowcoder/src/pages/ApplicationV2/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import AppEditor from "../editor/AppEditor";
7373
import{fetchDeploymentIdAction}from"@lowcoder-ee/redux/reduxActions/configActions";
7474
import{getDeploymentId}from"@lowcoder-ee/redux/selectors/configSelectors";
7575
import{SimpleSubscriptionContextProvider}from'@lowcoder-ee/util/context/SimpleSubscriptionContext';
76-
76+
import{LoadingBarHideTrigger}from"@lowcoder-ee/util/hideLoading";
7777
constTabLabel=styled.div`
7878
font-weight: 500;
7979
`;
@@ -222,6 +222,7 @@ export default function ApplicationHome() {
222222

223223
return(
224224
<DivStyled>
225+
<LoadingBarHideTrigger/>
225226
<SimpleSubscriptionContextProvider>
226227
<Layout
227228
sections={[

‎client/packages/lowcoder/src/pages/userAuth/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { fetchConfigAction } from "redux/reduxActions/configActions";
1111
import{fetchUserAction}from"redux/reduxActions/userActions";
1212
importLoginAdminfrom"./loginAdmin";
1313
import_from"lodash";
14-
14+
import{LoadingBarHideTrigger}from"@lowcoder-ee/util/hideLoading";
1515
exportdefaultfunctionUserAuth(){
1616
constdispatch=useDispatch();
1717
constlocation=useLocation<AuthLocationState>();
@@ -50,6 +50,7 @@ export default function UserAuth() {
5050
fetchUserAfterAuthSuccess,
5151
}}
5252
>
53+
<LoadingBarHideTrigger/>
5354
<Switchlocation={location}>
5455
<Redirectexactfrom={USER_AUTH_URL}to={AUTH_LOGIN_URL}/>
5556
<Routeexactpath={ADMIN_AUTH_URL}component={LoginAdmin}/>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import{useEffect}from"react";
2+
import{hideLoading}from"@lowcoder-ee/index";
3+
4+
exportconstLoadingBarHideTrigger=function(props:any){
5+
useEffect(()=>{
6+
setTimeout(()=>hideLoading(),300);
7+
},[]);
8+
9+
return<></>
10+
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp