UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

24 lines (23 loc) 814 B
import { Component } from 'react'; import PropTypes from 'prop-types'; import RadioGroup from './group'; import RadioButton from './radioButton'; import { RadioChangeEvent, RadioGroupContext, RadioProps } from './interface'; export default class Radio extends Component<RadioProps, {}> { static displayName: string; static Group: typeof RadioGroup; static Button: typeof RadioButton; static defaultProps: { type: string; }; static contextTypes: { radioGroup: PropTypes.Requireable<any>; }; private rcCheckbox; shouldComponentUpdate(nextProps: RadioProps, nextState: {}, nextContext: RadioGroupContext): boolean; saveCheckbox: (node: any) => void; onChange: (e: RadioChangeEvent) => void; focus(): void; blur(): void; render(): JSX.Element; }