in src/setter/color-setter/index.tsx [66:92]
render() {
const { width, setterValue } = this.state;
const { onChange } = this.props;
const InputTarget = (
<Input
size="small"
className="lowcode-setter-color"
style={{ width: '100%' }}
innerBefore={<div className="color-box" style={{ backgroundColor: setterValue }} />}
value={setterValue}
onChange={onChange}
/>
);
return (
<Balloon
needAdjust
align="tr"
offset={[width, 0]}
style={{ padding: 0 }}
trigger={InputTarget}
triggerType="click"
closable={false}
>
<SketchPicker color={setterValue} onChange={this.handleChange} />
</Balloon>
);
}