jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/es/Switch/props.d.ts
2024-11-10 15:01:22 +08:00

50 lines
850 B
TypeScript

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>;