@aimake/nanod
Version:
## 设计模式 NANO DESIGN 是面向于企业级中台化应用的解决方案。服务于 ToB 和 ToE 类型的单页应用,应用于各产品中从而产出了一套设计及前端规范。
31 lines (30 loc) • 1.15 kB
TypeScript
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { RadioGroupProps, RadioGroupState, RadioChangeEvent, RadioGroupButtonStyle } from './interface';
import { ConfigConsumerProps } from '../config-provider';
declare class RadioGroup extends React.Component<RadioGroupProps, RadioGroupState> {
static defaultProps: {
disabled: boolean;
buttonStyle: RadioGroupButtonStyle;
};
static childContextTypes: {
radioGroup: PropTypes.Requireable<any>;
};
static getDerivedStateFromProps(nextProps: RadioGroupProps): {
value: any;
} | null;
constructor(props: RadioGroupProps);
getChildContext(): {
radioGroup: {
onChange: (ev: RadioChangeEvent) => void;
value: any;
disabled: boolean | undefined;
name: string | undefined;
};
};
shouldComponentUpdate(nextProps: RadioGroupProps, nextState: RadioGroupState): boolean;
onRadioChange: (ev: RadioChangeEvent) => void;
renderGroup: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
render(): JSX.Element;
}
export default RadioGroup;