提交
This commit is contained in:
44
甲情_甲意/miniprogram/node_modules/antd-mini/less/Switch/props.d.ts
generated
vendored
Normal file
44
甲情_甲意/miniprogram/node_modules/antd-mini/less/Switch/props.d.ts
generated
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
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>;
|
Reference in New Issue
Block a user