UNPKG

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