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

Commitbd028f3

Browse files
fix opacity not working
1 parent89aa5d0 commitbd028f3

File tree

1 file changed

+2
-3
lines changed
  • client/packages/lowcoder-design/src/components/colorSelect

1 file changed

+2
-3
lines changed

‎client/packages/lowcoder-design/src/components/colorSelect/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ interface ColorSelectProps {
2525

2626
exportconstColorSelect=(props:ColorSelectProps)=>{
2727
const{ color, trigger="click", dispatch, changeColor}=props;
28-
letpickerColor=useRef(color);
2928
const[visible,setVisible]=useState(false);
3029
const[selectedColor,setSelectedColor]=useState(color);
31-
const{ getGradientObject, valueToHex}=useColorPicker(selectedColor,setSelectedColor);
30+
const{ getGradientObject}=useColorPicker(selectedColor,setSelectedColor);
3231

3332
constpresetColors=useMemo(()=>{
3433
letcolors=props.presetColors||[];
@@ -48,7 +47,7 @@ export const ColorSelect = (props: ColorSelectProps) => {
4847
if(color!==selectedColor){
4948
constvalue=getGradientObject();
5049
if(!value?.isGradient){
51-
returnthrottleChange(valueToHex());
50+
returnthrottleChange(toHex(selectedColor));
5251
}
5352
throttleChange(selectedColor);
5453
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp