mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
fix: replace hex with ColorFormat.hex (#42423)
This commit is contained in:
parent
2274111367
commit
d7de0d846e
@ -23,7 +23,7 @@ const selectOptions = [ColorFormat.hex, ColorFormat.hsb, ColorFormat.rgb].map((f
|
||||
|
||||
const ColorInput: FC<ColorInputProps> = (props) => {
|
||||
const { prefixCls, format, value, onFormatChange, onChange } = props;
|
||||
const [colorFormat, setColorFormat] = useMergedState('hex', {
|
||||
const [colorFormat, setColorFormat] = useMergedState(ColorFormat.hex, {
|
||||
value: format,
|
||||
onChange: onFormatChange,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user