@@ -8,10 +8,9 @@ import {
8
8
withExposingConfigs ,
9
9
withMethodExposing
10
10
} from "lowcoder-sdk" ;
11
- import { baseSelectRefMethods , TourChildrenMap , TourPropertyView } from "./tourPropertyView" ;
12
- import { TourInputCommonConfig } from "./tourInputConstants" ;
11
+ import { TourChildrenMap , TourPropertyView } from "./tourPropertyView" ;
13
12
import { Tour , TourProps } from "antd" ;
14
- import React , { Suspense , useContext } from "react" ;
13
+ import React , { useContext } from "react" ;
15
14
import { EditorContext } from "@lowcoder-ee/comps/editorState" ;
16
15
import { GridItemComp } from "@lowcoder-ee/comps/comps/gridItemComp" ;
17
16
import { HookComp } from "@lowcoder-ee/comps/hooks/hookComp" ;
@@ -65,27 +64,24 @@ let TourBasicComp = (function() {
65
64
} ) ;
66
65
67
66
return (
68
- < Suspense fallback = { < div > loading</ div > } >
69
- < Tour
70
- steps = { steps }
71
- open = { props . open . value }
72
- onClose = { ( ) => props . open . onChange ( false ) }
73
- indicatorsRender = { ( current , total ) => props . indicatorsRender ( current , total ) }
74
- disabledInteraction = { props . disabledInteraction }
75
- arrow = { props . arrow }
76
- placement = { props . placement === "" ? undefined : props . placement }
77
- type = { props . type === "" ? undefined : props . type }
78
- mask = { props . mask }
79
- />
80
- </ Suspense >
67
+ < Tour
68
+ steps = { steps }
69
+ open = { props . open . value }
70
+ onClose = { ( ) => props . open . onChange ( false ) }
71
+ // indicatorsRender={(current, total) => props.indicatorsRender(current, total)} // todo enable later
72
+ disabledInteraction = { props . disabledInteraction }
73
+ arrow = { props . arrow }
74
+ placement = { props . placement === "" ? undefined : props . placement }
75
+ type = { props . type === "" ? undefined : props . type }
76
+ mask = { props . mask }
77
+ />
81
78
) ;
82
79
} )
83
80
. setPropertyViewFn ( ( children ) => < TourPropertyView { ...children } /> )
84
- . setExposeMethodConfigs ( baseSelectRefMethods )
85
81
. build ( ) ;
86
82
} ) ( ) ;
87
83
88
- TourBasicComp = withMethodExposing ( TourBasicComp , [
84
+ export const TourComp = withMethodExposing ( TourBasicComp , [
89
85
{
90
86
method : {
91
87
name : "startTour" ,
@@ -97,10 +93,3 @@ TourBasicComp = withMethodExposing(TourBasicComp, [
97
93
}
98
94
}
99
95
] ) ;
100
-
101
- export const TourComp = withExposingConfigs ( TourBasicComp , [
102
- new NameConfig ( "value" , trans ( "selectInput.valueDesc" ) ) ,
103
- new NameConfig ( "inputValue" , trans ( "select.inputValueDesc" ) ) ,
104
- ...TourInputCommonConfig ,
105
- ...CommonNameConfig
106
- ] ) ;
0 commit comments