@aimake/nanod
Version:
## 设计模式 NANO DESIGN 是面向于企业级中台化应用的解决方案。服务于 ToB 和 ToE 类型的单页应用,应用于各产品中从而产出了一套设计及前端规范。
25 lines (24 loc) • 876 B
TypeScript
import * as React from 'react';
import * as PropTypes from 'prop-types';
import RadioGroup from './group';
import RadioButton from './radioButton';
import { RadioProps, RadioGroupContext } from './interface';
import { ConfigConsumerProps } from '../config-provider';
export default class Radio extends React.Component<RadioProps, {}> {
static Group: typeof RadioGroup;
static Button: typeof RadioButton;
static defaultProps: {
type: string;
};
static contextTypes: {
radioGroup: PropTypes.Requireable<any>;
};
context: any;
private rcCheckbox;
shouldComponentUpdate(nextProps: RadioProps, nextState: {}, nextContext: RadioGroupContext): boolean;
focus(): void;
blur(): void;
saveCheckbox: (node: any) => void;
renderRadio: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
render(): JSX.Element;
}