UNPKG

764 BTypeScriptView Raw
1import { ComponentType } from 'react'
2import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
4interface RadioGroupProps extends StandardProps, FormItemProps {
5 /** RadioGroup 中选中项发生改变时触发 change 事件,detail = {value:[选中的radio的value的数组]}
6 * @supported weapp, h5, tt
7 */
8 onChange?: CommonEventFunction
9}
10
11declare namespace RadioGroupProps {
12 interface onChangeEventDetail {
13 value: string[]
14 }
15}
16
17/** 单项选择器,内部由多个 Radio 组成。
18 * @classification forms
19 * @supported weapp, h5, rn, tt
20 * @see https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html
21 */
22declare const RadioGroup: ComponentType<RadioGroupProps>
23
24export { RadioGroup, RadioGroupProps }