@@ -8,10 +8,9 @@ import {
88 withExposingConfigs ,
99 withMethodExposing
1010} from "lowcoder-sdk" ;
11- import { baseSelectRefMethods , TourChildrenMap , TourPropertyView } from "./tourPropertyView" ;
12- import { TourInputCommonConfig } from "./tourInputConstants" ;
11+ import { TourChildrenMap , TourPropertyView } from "./tourPropertyView" ;
1312import { Tour , TourProps } from "antd" ;
14- import React , { Suspense , useContext } from "react" ;
13+ import React , { useContext } from "react" ;
1514import { EditorContext } from "@lowcoder-ee/comps/editorState" ;
1615import { GridItemComp } from "@lowcoder-ee/comps/comps/gridItemComp" ;
1716import { HookComp } from "@lowcoder-ee/comps/hooks/hookComp" ;
@@ -65,27 +64,24 @@ let TourBasicComp = (function() {
6564 } ) ;
6665
6766 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+ />
8178 ) ;
8279 } )
8380 . setPropertyViewFn ( ( children ) => < TourPropertyView { ...children } /> )
84- . setExposeMethodConfigs ( baseSelectRefMethods )
8581 . build ( ) ;
8682} ) ( ) ;
8783
88- TourBasicComp = withMethodExposing ( TourBasicComp , [
84+ export const TourComp = withMethodExposing ( TourBasicComp , [
8985 {
9086 method : {
9187 name : "startTour" ,
@@ -97,10 +93,3 @@ TourBasicComp = withMethodExposing(TourBasicComp, [
9793 }
9894 }
9995] ) ;
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