@aimake/nanod
Version:
## 设计模式 NANO DESIGN 是面向于企业级中台化应用的解决方案。服务于 ToB 和 ToE 类型的单页应用,应用于各产品中从而产出了一套设计及前端规范。
29 lines (28 loc) • 722 B
TypeScript
import * as React from 'react';
export interface SwitchProps {
prefixCls?: string;
size?: 'small' | 'default';
className?: string;
checked?: boolean;
defaultChecked?: boolean;
onChange?: (checked: boolean) => any;
checkedChildren?: React.ReactNode;
unCheckedChildren?: React.ReactNode;
disabled?: boolean;
loading?: boolean;
}
export default class Switch extends React.Component<SwitchProps, {}> {
static defaultProps: {
prefixCls: string;
};
static propTypes: {
prefixCls: any;
size: any;
className: any;
};
private rcSwitch;
focus(): void;
blur(): void;
saveSwitch: (node: any) => void;
render(): JSX.Element;
}