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

Commit3fbac74

Browse files
author
FalkWolsky
committed
Fixing Tutorial Documentation
1 parentbc8b41d commit3fbac74

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

‎client/VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.7
1+
2.2.0

‎client/packages/lowcoder/src/pages/ComponentDoc/examples/presentationComp/fileViewer.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function FileViewerExample() {
1818
blackListConfig={blackListConfig}
1919
hideSettings={true}
2020
config={{
21-
src:"https://majiang-files.oss-cn-hangzhou.aliyuncs.com/quick-tutorial.pdf",
21+
src:"https://pdfa.org/wp-content/uploads/2021/06/The-Low-Code-Revolution-and-PDF.pdf",
2222
}}
2323
compFactory={FileViewerComp}
2424
/>

‎client/packages/lowcoder/src/pages/tutorials/editorTutorials.tsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ export default function EditorTutorials() {
205205
useEffect(()=>{
206206
setRun(true);
207207
},[]);
208+
208209
constquerySize=editorState.getQueriesComp().getView().length;
209210
constuiCompSize=editorState.uiCompInfoList().length;
210211
useEffect(()=>{
@@ -222,7 +223,7 @@ export default function EditorTutorials() {
222223
// auto execute new query
223224
setTimeout(()=>{
224225
query?.dispatch(executeQueryAction({}));
225-
},1000);
226+
},1000);
226227
},[querySize]);
227228

228229
constopenTableData=()=>{
@@ -254,17 +255,19 @@ export default function EditorTutorials() {
254255
return;
255256
}
256257
if(index===0&&action===ACTIONS.NEXT){
257-
setStepIndex(nextIndex);
258258
setTimeout(()=>addTable(editorState),0);
259+
setStepIndex(nextIndex);
259260
}elseif(index===1&&action===ACTIONS.NEXT){
260261
// re-try to add table in case of the deletion in the prev step
261262
addTable(editorState);
262-
addQuery(editorState,datasourceInfos);
263263
// select table in advance
264264
editorState.setSelectedCompNames(newSet(["table1"]));
265+
// only works when addQuery is set in setTimeout
266+
setTimeout(()=>addQuery(editorState,datasourceInfos),500);
265267
setStepIndex(nextIndex);
266268
}elseif(index===2&&action===ACTIONS.NEXT){
267269
// change data
270+
editorState.setSelectedCompNames(newSet(["table1"]));
268271
openTableData();
269272
setStepIndex(nextIndex);
270273
}elseif(index===1&&action===ACTIONS.PREV){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp