diff --git a/typescripts/after_detailer/after_detailer.tsx b/typescripts/after_detailer/after_detailer.tsx index 88768516..a7150cc9 100644 --- a/typescripts/after_detailer/after_detailer.tsx +++ b/typescripts/after_detailer/after_detailer.tsx @@ -155,7 +155,6 @@ export class AfterDetailerComponent extends React.Component<{ { { // const [sliderValue,setSliderValue] = useState(0) state = { output_value: this.props.output_value || 0, slider_value: 0 } @@ -164,6 +165,7 @@ export class SpSliderWithLabel extends React.Component<{ show-value="false" // id="slControlNetWeight_0" class="slControlNetWeight_" + disabled={this.props.disabled ? true : void 0} min={this.in_min} max={this.in_max} value={this.state.slider_value} @@ -197,7 +199,8 @@ export class SpMenu extends React.Component<{ title?: string style?: CSSProperties items?: string[] - disabled?: boolean[] + disabled?: boolean + disabled_items?: boolean[] label_item?: string onChange?: any selected_index?: number @@ -238,6 +241,7 @@ export class SpMenu extends React.Component<{ title={this.props.title} size={this.props.size || 'm'} style={this.props.style} + disabled={this.props.disabled ? 'disabled' : undefined} // style={{ width: '199px', marginRight: '5px' }} > @@ -263,7 +267,7 @@ export class SpMenu extends React.Component<{ : undefined } disabled={ - this.props.disabled?.[index] + this.props.disabled_items?.[index] ? 'disabled' : undefined }