fix: replace hex with ColorFormat.hex (#42423)

This commit is contained in:
lijianan 2023-05-17 09:57:42 +08:00 committed by GitHub
parent 2274111367
commit d7de0d846e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
});