1 | import { ComponentType } from 'react'
|
2 | import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
3 | interface 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 | }
|
14 | declare 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 | */
|
25 | declare const RadioGroup: ComponentType<RadioGroupProps>
|
26 | export { RadioGroup, RadioGroupProps }
|