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

50 lines
850 B
TypeScript
Raw Normal View History

2024-11-10 07:01:22 +00:00
import { IBaseProps } from '../_base';
/**
* @description
*/
export interface ISwitchProps extends IBaseProps {
/**
* @description
*/
checked?: boolean;
/**
* @description
*/
loading?: boolean;
/**
* @description
*/
color?: string;
/**
* @description
*/
checkedText?: string;
/**
* @description
*/
uncheckedText?: string;
/**
* @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>;