import React from 'react'; import './index.scss'; export interface RadioType { label: string; value: string; } export type RadioGroupItemType = 'button' | 'text'; export interface RadioGroupProps { /** * 选项 */ options: Array; /** * 默认值 */ defaultValue?: string; /** * 是否换行 */ isWrap?: boolean; /** * 选中颜色 */ selectColor?: string; /** * 选中的文字颜色 */ selectTextColor?: string; /** * 未选中颜色 */ unSelectColor?: string; /** * 未选中的文字颜色 */ unSelectTextColor?: string; /** * 改变事件 * @param value */ onChange?: (value: string) => void; /** * 类型 */ type?: RadioGroupItemType; /** * 名称 */ name?: string; } declare const RadioGroup: React.FC; export default RadioGroup;