import { CSSProperties, FC } from 'react'; import { Color, ColorChangeHandler, SketchPicker } from 'react-color'; export interface ColorPickerProps { /** * 样式设置 */ style?: CSSProperties; /** * 颜色值 * * @default "#fff" */ value?: Color; /** * 宽度信息 * * @default "250px" */ width?: string; /** * 改变颜色触发的事件 */ onChange?: ColorChangeHandler; } declare const InternalColorPicker: FC; declare type InternalColorPickerType = typeof InternalColorPicker; interface ColorPickerInterface extends InternalColorPickerType { Panel: typeof SketchPicker; } declare const ColorPicker: ColorPickerInterface; export default ColorPicker;