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

45 lines
941 B
TypeScript
Raw Normal View History

2024-12-01 11:56:54 +00:00
import { IBaseProps } from '../_util/base';
2024-11-10 07:01:22 +00:00
/**
* @description
*/
export interface ISwitchProps extends IBaseProps {
2024-12-01 11:56:54 +00:00
/**
* @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;
2024-11-10 07:01:22 +00:00
}
export declare const SwitchDefaultProps: Partial<ISwitchProps>;