//@ts-ignore import opacityImage from "./opacity.png"; import {classnames, ExtractPropTypes, getComponentCls, PropType} from "@peryl/react-compose"; export function renderColorButton({ size, value }: { size: string, value: any }) { return ( {value} ); } export const ColorPanelPublicPropOptions = { modelValue: { type: String }, // 当前颜色值 enableAlpha: { type: Boolean }, // 是否启用透明度 format: { type: String as PropType<'hex' | 'rgb'> }, // 格式类型:hex、rgb defaultColor: { type: String }, // 默认颜色 disableSvPanel: { type: Boolean }, } as const; export type iColorPublicPropsType = ExtractPropTypes