UNPKG

dtd

Version:

根据数梦工场视觉规范打造的组件库,感谢react-components和ant design

25 lines (24 loc) 917 B
import * as React from 'react'; import * as PropTypes from 'prop-types'; import { RadioGroupProps, RadioGroupState } from './interface'; export default class RadioGroup extends React.Component<RadioGroupProps, RadioGroupState> { static defaultProps: { disabled: boolean; }; static childContextTypes: { radioGroup: PropTypes.Requireable<any>; }; constructor(props: RadioGroupProps); getChildContext(): { radioGroup: { onChange: (ev: React.ChangeEvent<HTMLInputElement>) => void; value: any; disabled: boolean | undefined; name: string | undefined; }; }; componentWillReceiveProps(nextProps: RadioGroupProps): void; shouldComponentUpdate(nextProps: RadioGroupProps, nextState: RadioGroupState): boolean; onRadioChange: (ev: React.ChangeEvent<HTMLInputElement>) => void; render(): JSX.Element; }