UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

21 lines (20 loc) 533 B
import React from 'react'; import type { SwitchProps } from './types'; interface SwitchState { isFocused: boolean; } export default class Switch extends React.PureComponent<SwitchProps, SwitchState> { static defaultProps: { trueValue: boolean; falseValue: boolean; }; state: { isFocused: boolean; }; constructor(props: SwitchProps); hanldeCheck(e: React.ChangeEvent<HTMLInputElement>): void; handleFocus(): void; handleBlur(): void; render(): JSX.Element; } export {};