choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
25 lines (24 loc) • 1 kB
TypeScript
import React, { Component } from 'react';
import { RadioChangeEvent, RadioGroupProps, RadioGroupState } from './interface';
import { ConfigContextValue } from '../config-provider/ConfigContext';
export default class RadioGroup extends Component<RadioGroupProps, RadioGroupState> {
static displayName: string;
static get contextType(): React.Context<ConfigContextValue>;
static defaultProps: {
disabled: boolean;
};
context: ConfigContextValue;
constructor(props: RadioGroupProps, context: ConfigContextValue);
getContextValue(): {
radioGroup: {
onChange: (ev: RadioChangeEvent) => void;
value: any;
disabled: boolean | undefined;
name: string | undefined;
};
};
componentWillReceiveProps(nextProps: RadioGroupProps): void;
shouldComponentUpdate(nextProps: RadioGroupProps, nextState: RadioGroupState): boolean;
onRadioChange: (ev: RadioChangeEvent) => void;
render(): JSX.Element;
}