@@ -8,7 +8,7 @@ import { StepOptionControl } from "comps/controls/optionsControl";
8
8
import { styleControl } from "comps/controls/styleControl" ;
9
9
import { StepsStyle , StepsStyleType } from "comps/controls/styleControlConstants" ;
10
10
import styled , { css } from "styled-components" ;
11
- import { UICompBuilder } from "../../generators" ;
11
+ import { UICompBuilder , withDefault } from "../../generators" ;
12
12
import { CommonNameConfig , NameConfig , withExposingConfigs } from "../../generators/withExposing" ;
13
13
import { selectDivRefMethods , } from "./selectInputConstants" ;
14
14
import { Section , sectionNames } from "lowcoder-design" ;
@@ -87,7 +87,6 @@ const StepsChildrenMap = {
87
87
direction : dropdownControl ( directionOptions , "horizontal" ) ,
88
88
showDots : BoolControl ,
89
89
showIcons : BoolControl ,
90
- label : LabelControl ,
91
90
labelPlacement : dropdownControl ( directionOptions , "horizontal" ) ,
92
91
disabled : BoolCodeControl ,
93
92
onEvent : ChangeEventHandlerControl ,
@@ -128,48 +127,47 @@ let StepControlBasicComp = (function () {
128
127
129
128
` ;
130
129
131
- return props . label ( {
132
- children : (
133
- < StepsWrapper ref = { props . viewRef } >
134
- < ConfigProvider
135
- theme = { {
136
- components : {
137
- Steps : {
138
- colorPrimary : '#00b96b' ,
139
- algorithm : true ,
140
- }
141
- } ,
142
- } }
143
- >
144
- < Steps
145
- initial = { Number ( props . initialValue . value ) - 1 }
146
- current = { current }
147
- onChange = { ( current ) => {
148
- onChange ( current ) ;
149
- } }
150
- percent = { 60 }
151
- status = { props . stepsStatus . value as "error" | "finish" | "process" | "wait" }
152
- type = { props . displayType }
153
- size = { props . size }
154
- labelPlacement = { props . labelPlacement }
155
- progressDot = { props . showDots }
156
- direction = { props . direction }
157
- >
158
- { props . options . map ( ( option , index ) => (
159
- < Steps . Step
160
- key = { index }
161
- title = { option . label }
162
- subTitle = { option . subTitle }
163
- description = { option . description }
164
- status = { option . status as "error" | "finish" | "wait" | "process" | undefined }
165
- icon = { props . showIcons && hasIcon ( option . icon ) && option . icon || undefined }
166
- />
167
- ) ) }
168
- </ Steps >
169
- </ ConfigProvider >
170
- </ StepsWrapper >
171
- ) ,
172
- } ) ;
130
+ return (
131
+ < StepsWrapper ref = { props . viewRef } >
132
+ < ConfigProvider
133
+ theme = { {
134
+ components : {
135
+ Steps : {
136
+ colorPrimary : '#00b96b' ,
137
+ algorithm : true ,
138
+ }
139
+ } ,
140
+ } }
141
+ >
142
+ < Steps
143
+ initial = { Number ( props . initialValue . value ) - 1 }
144
+ current = { current }
145
+ onChange = { ( current ) => {
146
+ onChange ( current ) ;
147
+ } }
148
+ percent = { 60 }
149
+ status = { props . stepsStatus . value as "error" | "finish" | "process" | "wait" }
150
+ type = { props . displayType }
151
+ size = { props . size }
152
+ labelPlacement = { props . labelPlacement }
153
+ progressDot = { props . showDots }
154
+ direction = { props . direction }
155
+ >
156
+ { props . options . map ( ( option , index ) => (
157
+ < Steps . Step
158
+ key = { index }
159
+ title = { option . label }
160
+ subTitle = { option . subTitle }
161
+ description = { option . description }
162
+ status = { option . status as "error" | "finish" | "wait" | "process" | undefined }
163
+ icon = { props . showIcons && hasIcon ( option . icon ) && option . icon || undefined }
164
+ />
165
+ ) ) }
166
+ </ Steps >
167
+ </ ConfigProvider >
168
+ </ StepsWrapper >
169
+ ) ;
170
+
173
171
} )
174
172
. setPropertyViewFn ( ( children ) => (
175
173
< >
@@ -188,10 +186,6 @@ let StepControlBasicComp = (function () {
188
186
</ Section > </ >
189
187
) }
190
188
191
- { [ "layout" , "both" ] . includes ( useContext ( EditorContext ) . editorModeStatus ) && (
192
- children . label . getPropertyView ( )
193
- ) }
194
-
195
189
{ [ "layout" , "both" ] . includes ( useContext ( EditorContext ) . editorModeStatus ) && (
196
190
< Section name = { sectionNames . layout } >
197
191
{ children . size . propertyView ( {
0 commit comments