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

Commit4859b50

Browse files
committed
[FIX]:#1634 Step Control click
1 parent4193961 commit4859b50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎client/packages/lowcoder/src/comps/comps/selectInputComp/stepControl.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ let StepControlBasicComp = (function () {
151151
constonChange=(index:number)=>{
152152
if(props.selectable==false)return;
153153
constnewIndex=Math.max(0,index);
154+
if(props.options[newIndex]?.disabled){
155+
return;
156+
}
154157
setCurrent(newIndex);
155158
if(props.options[newIndex]?.value!==undefined){
156159
props.value.onChange(newIndex+1+"");// Convert back to 1-based index for display.
@@ -198,6 +201,7 @@ let StepControlBasicComp = (function () {
198201
title={option.label}
199202
subTitle={option.subTitle}
200203
description={option.description}
204+
disabled={option.disabled}
201205
status={option.statusas"error"|"finish"|"wait"|"process"|undefined}
202206
icon={props.showIcons&&hasIcon(option.icon)&&option.icon||undefined}
203207
/>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp