@jdcfe/yep-react
Version:
一套移动端的React组件库
28 lines (27 loc) • 741 B
TypeScript
import * as React from 'react';
export interface SwitchProps {
prefixCls?: string;
className?: string;
style?: React.CSSProperties;
currentStatus?: boolean;
handleSwitch?: (checked: boolean) => void;
onClick?: (value: boolean) => void;
disabled?: boolean;
name?: string;
color?: string;
}
export default class Switch extends React.PureComponent<SwitchProps> {
static defaultProps: {
prefixCls: string;
style: {};
name: string;
currentStatus: boolean;
disabled: boolean;
onClick: () => void;
handleSwitch: () => void;
};
constructor(props: SwitchProps);
onChange(e: any): void;
onClick(e: any): void;
render(): JSX.Element;
}