UNPKG

@cocoy/kit-components

Version:

一些前端组件

35 lines (34 loc) 1.33 kB
import type { MouseEvent } from 'react'; import type { FormItemProps } from 'antd'; type Theme = 'btn' | 'nav' | 'tag'; type MangoControlRadioValue = string | number; type MangoControlRadioItemType = { label: string; value: MangoControlRadioValue; icon?: ReactNode; className?: string; [key: string]: any; }; export type MangoControlRadioProps = PropsWithChildren<{ options: MangoControlRadioItemType[]; value?: MangoControlRadioValue; onChange?: (value: MangoControlRadioValue, item?: MangoControlRadioItemType, e?: MouseEvent<HTMLElement>) => void; beforeChange?: (value: MangoControlRadioValue, item?: MangoControlRadioItemType, e?: MouseEvent<HTMLElement>) => Promise<any>; containerClassName?: string; itemClassName?: string; itemSelectedClassName?: string; tagClassName?: string; itemWidth?: number | string; itemHeight?: number | string; theme?: Theme; id?: string; extraRender?: ReactNode; extraRawFieldProps?: Record<string, any>; }>; export declare const MangoControlRadio: FC<MangoControlRadioProps>; export type MangoFormRadioProps = MangoControlRadioProps & FormItemProps & { extraFormFieldProps?: FormItemProps; extraRawFieldProps?: Record<string, any>; }; export declare const MangoFormRadio: FC<MangoFormRadioProps>; export {};