UNPKG

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