UNPKG

antd-mobile-alita

Version:

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

23 lines (22 loc) 649 B
import * as React from 'react'; import { SwitchPropsType } from './PropsType'; export interface SwitchProps extends SwitchPropsType { prefixCls?: string; className?: string; platform?: string; style?: React.CSSProperties; } export default class Switch extends React.Component<SwitchProps, any> { static defaultProps: { prefixCls: string; name: string; checked: boolean; disabled: boolean; onChange(): void; platform: string; onClick(): void; }; onChange: (e: React.ChangeEvent<HTMLInputElement>) => void; onClick: (e: any) => void; render(): JSX.Element; }