import { ComponentClass } from 'react' import { CommonEvent } from '@tarojs/components/types/common' import AtComponent from './base' export interface RadioOption { /** * 选项标识符,必须保证唯一 */ value/*;值*/: T /** * 选项标题 */ label/*;标签*/: string /** * 选项描述,显示在标题下方的文字 */ desc/*;描述*/?: string /** * 是否禁止点击 * @default false */ disabled/*;禁用*/?: boolean } export interface AtRadioProps extends AtComponent { /** * 输入框当前值,用户需要通过 onClick 事件来更新 value 值,必填 */ value/*;值*/: T /** * 选项列表 */ options/*;选项集*/: Array> /** * 是否显示下边框 */ border/*;边框*/?: true /** * 点击选项触发事件,开发者需要通过此事件来更新 value,onClick 函数必填 */ onClick/*;当点*/: (vaule: T, event: CommonEvent) => void } declare const AtRadio: ComponentClass> export default AtRadio