antd-mobile
Version:
基于 React 的移动设计规范实现
20 lines (19 loc) • 573 B
TypeScript
import * as React from 'react';
import SwitchProps from './SwitchPropsType';
export default class AntmSwitch extends React.Component<SwitchProps, any> {
static propTypes: {
style: React.Requireable<any>;
checked: React.Requireable<any>;
disabled: React.Requireable<any>;
onChange: React.Requireable<any>;
};
static defaultProps: {
name: string;
checked: boolean;
disabled: boolean;
onChange(): void;
};
constructor(props: any);
onChange(value: any): void;
render(): JSX.Element;
}