UNPKG

antd-fx67ll-test

Version:

这是一个测试着玩的私服antd项目,完全照抄v4.16.6的antd源码,请勿使用,仅做发布测试(因每次发布必须要升版本,如发现版本出入请忽略,与官方无关)

27 lines (26 loc) 932 B
import * as React from 'react'; export declare type SwitchSize = 'small' | 'default'; export declare type SwitchChangeEventHandler = (checked: boolean, event: MouseEvent) => void; export declare type SwitchClickEventHandler = SwitchChangeEventHandler; export interface SwitchProps { prefixCls?: string; size?: SwitchSize; className?: string; checked?: boolean; defaultChecked?: boolean; onChange?: SwitchChangeEventHandler; onClick?: SwitchClickEventHandler; checkedChildren?: React.ReactNode; unCheckedChildren?: React.ReactNode; disabled?: boolean; loading?: boolean; autoFocus?: boolean; style?: React.CSSProperties; title?: string; tabIndex?: number; } interface CompoundedComponent extends React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLElement>> { __ANT_SWITCH: boolean; } declare const Switch: CompoundedComponent; export default Switch;