jiaqingjiayi-xiaochengxu/甲情_甲意/node_modules/antd-mini/less/Switch/props.d.ts

45 lines
941 B
TypeScript
Raw Normal View History

2024-11-15 03:51:28 +00:00
import { IBaseProps } from '../_util/base';
/**
* @description
*/
export interface ISwitchProps extends IBaseProps {
/**
* @description
*/
checked?: boolean;
/**
* @description
*/
loading?: boolean;
/**
* @description
*/
color?: string;
/**
* @description
*/
checkedText?: string;
/**
* @description
*/
uncheckedText?: string;
/**
* @default medium
* @description
*/
size?: 'medium' | 'small' | 'x-small';
/**
*
*/
disabled?: boolean;
/**
*
*/
defaultChecked?: boolean;
/**
* @description
*/
onChange?: (checked: boolean, e: Record<string, any>) => void;
}
export declare const SwitchDefaultProps: Partial<ISwitchProps>;