Commit bfe5494d authored by 邓超's avatar 邓超

fix: 修改选择角度无效

parent 08219237
Pipeline #52642 passed with stages
...@@ -36,10 +36,11 @@ const ColorLinear = props => { ...@@ -36,10 +36,11 @@ const ColorLinear = props => {
} else { } else {
setColorValue(colorList[0]); setColorValue(colorList[0]);
} }
}, [colorList]); }, [colorList, angle]);
// 渐变角度切换 // 渐变角度切换
const onChange = e => { const onChange = e => {
console.log(e, 'eeeee');
setAngle(e); setAngle(e);
}; };
const addColor = () => { const addColor = () => {
...@@ -63,6 +64,7 @@ const ColorLinear = props => { ...@@ -63,6 +64,7 @@ const ColorLinear = props => {
onSubumit(colorValue); onSubumit(colorValue);
handleCancel(); handleCancel();
}; };
console.log(angle, 'angle');
return ( return (
<Modal <Modal
title="顶部颜色配置" title="顶部颜色配置"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment