UNPKG

antd-mobile

Version:

基于 React 的移动设计规范实现

22 lines (21 loc) 648 B
import * as React from 'react'; import SwitchProps from './SwitchPropsType'; export default class Switch extends React.Component<SwitchProps, any> { static propTypes: { prefixCls: React.Requireable<any>; style: React.Requireable<any>; name: React.Requireable<any>; checked: React.Requireable<any>; disabled: React.Requireable<any>; onChange: React.Requireable<any>; }; static defaultProps: { prefixCls: string; name: string; checked: boolean; disabled: boolean; onChange(): void; }; onChange: (e: any) => void; render(): JSX.Element; }